changing fonts messes up bold formatting
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 12
- Joined: Fri Apr 29, 2016 6:55 pm
changing fonts messes up bold formatting
Hi There,
I started building up my own pdf plugin and seem to have run into a slight problem.
I've added new fonts to the logical font categories in font-mappings.xml and for some reason a couple of elements like notes, def lists and such lost their default "bold" formatting.
I can manually update the formatting for these but would prefer a slightly more intelligent solution. Could you please advise?
Thanks,
Miklos
I started building up my own pdf plugin and seem to have run into a slight problem.
I've added new fonts to the logical font categories in font-mappings.xml and for some reason a couple of elements like notes, def lists and such lost their default "bold" formatting.
I can manually update the formatting for these but would prefer a slightly more intelligent solution. Could you please advise?
Thanks,
Miklos
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: changing fonts messes up bold formatting
Hi Miklos,
So:
Another possibility:
Did you also add custom XSLT templates in your "custom.xsl" matching certain DITA elements? For example you can comment out your templates, see if the PDF shows again the bold formatting.
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.highlight
and if you look inside the "pdfHighlight.xsl", it overwrites a certain template. It might be possible that from your custom.xsl you are overwriting the same XSLT template and thus the highlighting is no longer applied.
Regards,
Radu
So:
One possibility: the new fonts you have configured do not have a "bold" style.I've added new fonts to the logical font categories in font-mappings.xml and for some reason a couple of elements like notes, def lists and such lost their default "bold" formatting.
Another possibility:
Did you also add custom XSLT templates in your "custom.xsl" matching certain DITA elements? For example you can comment out your templates, see if the PDF shows again the bold formatting.
Are you using an external DITA OT installation? The plugin which adds syntax highlight is located in:And as far as I see my plugin also ignores your splendid codeblock syntax highlighter.
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.highlight
and if you look inside the "pdfHighlight.xsl", it overwrites a certain template. It might be possible that from your custom.xsl you are overwriting the same XSLT template and thus the highlighting is no longer applied.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 12
- Joined: Fri Apr 29, 2016 6:55 pm
Re: changing fonts messes up bold formatting
Hi Radu,
Thanks for your help!
As for the fonts, my problem was indeed due to the font selected, which was by default a 300 light font.
As for the highlighter, I'm not sure how or where have I overwritten the template. It was not originally referenced in any of my plugin files.
My workaround for the moment is: I copied the highlighter plugin's content to my own plugin folder and updated the references in custom.xsl, this way the highlighter works. Hope this will not lead to additional problems later on.
Thanks again,
Miklos
Thanks for your help!
As for the fonts, my problem was indeed due to the font selected, which was by default a 300 light font.
As for the highlighter, I'm not sure how or where have I overwritten the template. It was not originally referenced in any of my plugin files.
My workaround for the moment is: I copied the highlighter plugin's content to my own plugin folder and updated the references in custom.xsl, this way the highlighter works. Hope this will not lead to additional problems later on.
Thanks again,
Miklos
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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