Fonts in WebHelp
Having trouble installing Oxygen XML WebHelp? Got a bug to report? Post it all here.
-
- Posts: 12
- Joined: Mon Jun 06, 2022 10:10 pm
Fonts in WebHelp
Hi,
I downloaded a true type font (.ttf) file and am trying to use it in WebHelp. I created a 'fonts' folder in my custom WebHelp template, and pointed to the font file using the following CSS rule:
In my opt file, between the <resources> tag, I also added
to copy the font file to the output folder.
But, after defining the font-family for an html element, the font doesn't work. Am I missing something?
Thanks,
Amy
I downloaded a true type font (.ttf) file and am trying to use it in WebHelp. I created a 'fonts' folder in my custom WebHelp template, and pointed to the font file using the following CSS rule:
Code: Select all
@font-face{
font-family: 'font';
src: url("../fonts/font.ttf") format('truetype');
}
Code: Select all
<fileset>
<include name="fonts/*"/>
</fileset>
But, after defining the font-family for an html element, the font doesn't work. Am I missing something?
Thanks,
Amy
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: Fonts in WebHelp
Hello,
The font file is not copied in the output folder most probably because you have specified an incorrect fileset include pattern in the resources section of your OPT file. To determine if the pattern is correct or not you must specify the layout (structure) of your publishing template's directory.
Moreover, you can have a look at this working publishing template example that covers a similar use case: https://github.com/oxygenxml/oxygen-pub ... ustom-font
Regards,
Alin
The font file is not copied in the output folder most probably because you have specified an incorrect fileset include pattern in the resources section of your OPT file. To determine if the pattern is correct or not you must specify the layout (structure) of your publishing template's directory.
Moreover, you can have a look at this working publishing template example that covers a similar use case: https://github.com/oxygenxml/oxygen-pub ... ustom-font
Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
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