Adding custom font in Author view

Oxygen general issues.
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

Adding custom font in Author view

Post by Vincent »

Hi,
Today I come with a little issue :)

I would like to use a custom font in the Author view.
I tried the CSS :
@font-face {
font-family: my_font;
src: url('fonts/my_custom_font.ttf');
}

And then I call the CSS property "font-family"... but nothing Happen.

Is that possible to import such a font ?
Is there any special way to proceed ?

Thank you,

Vincent.
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Adding custom font in Author view

Post by mihaela »

Hi Vincent,

The @font-face CSS rule is not supported yet by the oXygen Author.

What you can do is to copy your font in the Windows Fonts directory and oXygen will recognize and use this font (after an application restart) like any other font already installed in your system.

Best regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

Re: Adding custom font in Author view

Post by Vincent »

Thank you,
It's working for me.


Vincent.
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

Re: Adding custom font in Author view

Post by Radu »

Hi,

Oxygen 14.2 just added support for the @font-face CSS at-rule.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

Re: Adding custom font in Author view

Post by Vincent »

Great news,
Thank you Radu of keeping me in touch. I appreciate.

Vincent.
Post Reply