Fonts in WebHelp
Posted: Wed Dec 14, 2022 4:21 pm
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