load custom font into html (webview) - metro app

raijazz

New Member
I'm working on a metro app: c# and xaml.The app loads a html file (stored in a directory) into a webview with its css file. I want to use a custom font: how can I accompish that?I've tried\[code\]@font-face { font-family: 'Geeza_Pro'; src: url('ms-appx-web:///Fonts/Geeza_Pro.ttf') format('truetype'); }#div_name{ font-size:30px; font-family: "Geeza_Pro";}\[/code\]and \[code\]@font-face { font-family: 'Geeza_Pro'; src: url('Fonts/Geeza_Pro.ttf') format('truetype'); }#div_name{ font-size:30px; font-family: "Geeza_Pro";\[/code\]but is doesn't work!
 
Back
Top