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

Exotic Hadron
Posts: 25

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

Tue Nov 14, 2017 4:55 pm

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: 5131

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

Thu Nov 16, 2017 10:16 am

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

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest