How do I make Eclipse transformation to use a sans serif font family in the published text

Post here questions and problems related to editing and publishing DITA content.
Exotic Hadron
Posts: 25
Joined: Mon Aug 07, 2017 7:46 pm

How do I make Eclipse transformation to use a sans serif font family in the published text

Post by Exotic Hadron »

Howdy,

In this article by Jarno Elovirta I've read that you can specify a custom font to be used for output to PDF file. This article also adds some details on configuring fonts for output.

I have however not found any information about how would I do the same for Eclipse transformation. Currently text transformed to Eclipse looks ugly (to my liking) because it turns that some CSS sets it to use Times New Roman-like font with serifs.

Is there any simple way to make Eclipse transformation scenario to use a sans-serif font like Arial?

Thank you.
Radu
Posts: 9058
Joined: Fri Jul 09, 2004 5:18 pm

Re: How do I make Eclipse transformation to use a sans serif font family in the published text

Post by Radu »

Hi,

For any HTML-based output (including webhelp) there are two CSS parameters which can be set in the "Parameters" list:

"args.css" - should be set to point to your custom CSS document.
"args.copy.css" - should be set to "yes" to copy your custom CSS to the output folder.

Once you have a custom CSS taken into account you can specify in it a custom font for the entire document like:

Code: Select all


:root{
font-family: "Arial";
}
but the font would need to be available on the machine where the Eclipse Help is opened, otherwise probably a fallback font will be used.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply