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.
-
- 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.
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
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:
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
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";
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service