Page 1 of 1

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

Posted: Tue Nov 14, 2017 4:55 pm
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.

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

Posted: Thu Nov 16, 2017 10:16 am
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