Author View Webfont

Oxygen general issues.
patrick
Posts: 96
Joined: Mon May 09, 2011 11:54 am

Author View Webfont

Post by patrick »

Hi,

is it possible to use an not installed font in the author view (e.g. through webfont with @font-face in css)?

I tried it but an error occurs...
Beschreibung: [CSS]:Problems occured during new fonts installation: bad pfa font

Thanks
Patrick
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Author View Webfont

Post by Radu »

Hi Patrick,

Yes, the Author CSS support allows loading dynamic fonts:

http://www.oxygenxml.com/doc/ug-oxygen/ ... media.html

But being a Java application we rely on the capability of the Java font libraries to load a certain font.
For example loading true type fonts works. Some "otf" fonts may also be loaded successfully.
But as far as I know WOFF font files cannot be loaded directly by the Java libraries. Maybe you could try to convert them to TTF and load them as such.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
patrick
Posts: 96
Joined: Mon May 09, 2011 11:54 am

Re: Author View Webfont

Post by patrick »

Thank you!

If I use a ttf, it works.
Post Reply