Page 1 of 1

Font embedding

Posted: Wed Nov 20, 2013 6:01 am
by kfritz
First of all, congrats to the new design of the forum!

I found nothing in the docs about embedding an own font. How do I embed the font - only copy the .ttf to the font folder or should I convert the .ttf to .woff files? And how do I this for mobile devices (Phonegap/Mobile Client)?

Thanks,
Karl

Re: Font embedding

Posted: Wed Nov 20, 2013 10:15 am
by Scott Klement
Karl,

I think you'd need to do this through CSS. Put your font file on your HTTP server, and create a new CSS class that downloads the desired font into the browser. When working in PUI, instead of referring to the font in the widget properties, use the CSS class to select the font.

Details on how to code CSS so that it downloads a font can be found here:
http://www.w3schools.com/css/css3_fonts.asp

Does that help?

Re: Font embedding

Posted: Wed Nov 20, 2013 11:12 am
by kfritz
Thanks Scott,

I'll give it a try.