• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Using different font in published project

Explorer ,
Apr 25, 2023 Apr 25, 2023

Copy link to clipboard

Copied

Hello Robohelp-Community,

 

at the moment we are struggling with the usage of other fonts in our published project we created in Robohelp.

We have the company standard font "TitilliumWeb".

 

This is the path of the published project:

\\srv-cas01\OnlineHelp\TestDE

 

Where do we have to create the font.css (or is it "fonts.css) ?

We tried to create this here:

\\srv-cas01\OnlineHelp\TestDE\assets\css

 

We also moved the font to this folder in "css".

MarcM_0-1682430240537.png

 

The content of font.css is the following:

@Font-face {
font-family: "TitilliumWeb";
src: url("TitilliumWeb-Regular.ttf");
}

 

When we now open the HTML Page as "WebView" there is still another font used. 

We don`t see the configuration problem. Is it the code in "font.css" or another problem?

 

Thanks for your kind help in advance!

 

Kind regards,

Marc Mendel

 

Views

188

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 25, 2023 Apr 25, 2023

Copy link to clipboard

Copied

Have you been following Peter's site with its discussions of fonts?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 25, 2023 Apr 25, 2023

Copy link to clipboard

Copied

A quick thing to check is that the font-family text matches the name of the installed font, which can be a bit different from the file name. Do look at Peter's site grainge.org for the font information if you haven't already.

 

If you're using a separate css file to store the font-face definition, you also need to make sure that css file is either imported into your regular stylesheet or applied to every topic in addition to regular stylesheet

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 26, 2023 Apr 26, 2023

Copy link to clipboard

Copied

We already took a look at Pter Grainge`s Homepage and used the code he provided.

When we create a PDF out of our RH project, we get the right font already.

That`s why we don`t know what we`ve done wrong or forgot on this.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 26, 2023 Apr 26, 2023

Copy link to clipboard

Copied

LATEST

I don't think it should make a difference but which version of RoboHelp are you using?

 

It is likely working for PDFs as the font is available on your machine when you generate. Does your online output work on your machine in a generated output but not on other machines without that font?

 

Have you downloaded the demo project and tested that works?

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp