Skip to main content
TatuMbili
Inspiring
October 14, 2021
Question

Font not being applied in RH2020

  • October 14, 2021
  • 23 replies
  • 775 views

Things were fine, i.e., all fonts were the same on my mobile pages. Now, first page has our proprietary font, second page has a mixture, proprietary font (let's call it MyFont) in the h1, MyFont in p and no font selected in td so in td, I have Times New Roman as the font. I've gone to the deafult.css, checked that: MyFont, Arial, sans-serif; is in the body section, no other font used anywhere in the CSS. There is no stylesheet associated with the master page and I don't use a master page when generating. 

 

I had noticed this last week and couldn't figure out how to update the style, there's some confusing thing about make your change then click on the update style icon but when I go to a different page, the change I had made to styles is not applied. When I click on Styles in the right hand side, I have no styles, None. I then went into each place where my font had to be applied and changed the Font Family for that section in Content Properties, clicking on Update Style after each change. Saved, generated and looked, no changes appear in my generated output, fonts are still changing to Times New Roman and when I go back to my project, the changes I've made to Font Family are gone.

 

What am I doing or not doing wrong? Thanks for your help.

Helen

    23 replies

    TatuMbili
    TatuMbiliAuthor
    Inspiring
    November 24, 2021

    In each case, I'm accessing the support page which has tabs for each operating system help so I can choose which OS version of Help to look at on each machine. So when I'm on the Mac, I can choose to see the Windows version instead of Mac version. In this case, when I'm on the Mac, when I choose the MacOS version it displays MyFont. When I choose the iOS version instead, it displays Times New Roman , as it does on a Linux machine.  How do I bring this problem to Adobe's attention? 

    Peter Grainge
    Community Expert
    Community Expert
    November 20, 2021

    Windows 10: shows in MyFont but MyFont is installed on this machine, not sure if it's representative.

    OK so further testing required.

     

    Linux: shows in MyFont.

    So all good.

     

    MacOS: shows in TNR. The MacOS version shows MyFont which is not installed on this machine.

    I'm confused here. You say it shows in TNR and then it shows MyFont.

     

    Android: shows MyFont.

    So all good.

     

    iOS: shows in TNR. 

    I can't help you on that. I don't have or use any iOS devices.

    ________________________________________________________
    See www.grainge.org for free Authoring and RoboHelp Information

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    TatuMbili
    TatuMbiliAuthor
    Inspiring
    November 19, 2021

    I did what you suggested and then continued trying. I have been working on this for a while. Here's my feedback:

    In our page to select the Help documentation, there is a choice of each OS so when I'm on Android, I can choose which version I want to see. When I choose the iOS version on the following platforms, these are the results:

    Windows 10: shows in MyFont but MyFont is installed on this machine, not sure if it's representative.

    Linux: shows in MyFont.

    MacOS: shows in TNR. The MacOS version shows MyFont which is not installed on this machine.

    Android: shows MyFont.

    iOS: shows in TNR. 

     

    I have examined the default.css for my mobile version which is used by Android and iOS over and over and followed your directions as given, TNR still displays for iOS only, not Android.

     

    I've also looked at the layout.css in the generated/template/project/ folder as this is referred to in the source on the iOS machine and MyFont is defined and assigned there as well in the body section but not with @ font-family as defined in default.css.

     

    Hope this means something to you.

    Peter Grainge
    Community Expert
    Community Expert
    November 4, 2021

    First of all I would suggest creating a copy of your project as it is now so that if any subsequent work makes it go bang, you have something to revert to.

     

    Then go to Using Font Awesome, Google Fonts, @font-face and SVGs in RoboHelp (grainge.org) and see if you can get it working from instructions or the working project there.

    ________________________________________________________
    See www.grainge.org for free Authoring and RoboHelp Information

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    TatuMbili
    TatuMbiliAuthor
    Inspiring
    November 4, 2021

    I opened a sample project, changed the font in there to MyFont, generated and the font is there on my machine. Moved that CSS to the other project folder. So now when I check Styles on the right hand side in Author view, there are styles! It works when I generate it locally but MyFont is installed on my machine so I'm not sure that's a true test, even though I was previously seeing the TNR and MyFont on my local machine after generating. I moved to publish then to web server test environment, I see MyFont on Android, TNR only on iOS! Before I did this, on both Android and iOS I saw both MyRoom and TNR in the same topic. Since I now have the correct font showing in Android tablets, I'm reluctant to do anything to try and fix the iOS output so I don't mess up the Android version. Any ideas? Do I add back @ font-face to the CSS?

    TIA

    Peter Grainge
    Community Expert
    Community Expert
    October 19, 2021

    There have never been any styles showing when clicking the Styles icon in the right side

     

    If that is the case there is definitely something wrong with your CSS and the fact that TNR appears confirms that, it is defaulting to the standard HTML font when no font is defined. That is where you need to be looking.

     

    Until styles appear when you click that icon, I would say it is not worth pursuing anything else.

    ________________________________________________________
    See www.grainge.org for free Authoring and RoboHelp Information

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    TatuMbili
    TatuMbiliAuthor
    Inspiring
    October 19, 2021

    I had followed Amebr's directions in the first post and used your directions to include the @ font-face in the CSS. I've now commented that out. There is no other @ in the CSS file. No change to the result. There have never been any styles showing when clicking the Styles icon in the right side but the correct font was previously applied everywhere in the project which seemed correct as the font-family was declared in the body of the CSS. Every so often and sometimes when I haven't made any change in the default.css, I get a message saying stylesheet failed to parse. It's not consistent and I can't reproduce it on demand.

    Peter Grainge
    Community Expert
    Community Expert
    October 19, 2021

    Is it still the case that you have no styles showing when you click the Styles icon? If so the issue is the CSS itself. If you open that in the CSS editor does it show the UI or the code? If the latter it means there is something in your CSS that the editor cannot parse and you need to fix that first.

     

    Are there any @media styles in the CSS? If there are, comment them out. /* before the start and */ at the end.

    ________________________________________________________
    See www.grainge.org for free Authoring and RoboHelp Information

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    TatuMbili
    TatuMbiliAuthor
    Inspiring
    October 15, 2021

    Thanks to you both for your replies. I have checked the topics, every topic is associated with default.css. I have applied @11220649-face in the css per Amebr's instructions and also done what Peter suggested. It's like nothing is sticking when I hit Update Styles. I save my work basically after every change I make and nothing seems to stick. I've even taken the time to add the font-family to almost every style in the css, especially p. From one p to the next in a topic, the font changes. OK, I'm going to go away, drown my frustration in my tears (because this worked in 2019 Classic) and start afresh Monday.

    Thanks for the help, I appreciate it.

    TatuMbili
    TatuMbiliAuthor
    Inspiring
    October 18, 2021

    So back to trying again. Every topic page has the Style sheet default.css applied under Topic Properties. In the Topic list, default.css is also listed there for all my topics. @ font-face is in css. The font in the Font Weight section of Content properties actually changes from one time that I touch the text to the next, as in I place my cursor in the text, it shows MyFont (hmm, only MyFont, not MyFont, Arial, Sans-serif; as shows in the css), I scroll down, place cursor in another block of text, return to the first location, Font Family now shows Select. 

     

    Once again, any idea what I'm doing wrong?

    Peter Grainge
    Community Expert
    Community Expert
    October 15, 2021

    Please add your vote if you want to see this working as it did in Classic.

     

    RH-10265

    ________________________________________________________
    See www.grainge.org for free Authoring and RoboHelp Information

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.