Skip to main content
authorinkltd
Participating Frequently
September 21, 2014
Question

Changing the font of TOC entries in Responsive Help

  • September 21, 2014
  • 1 reply
  • 728 views

I'm just starting to find my way with Responsive help and am creating a project where a non-standard font needs to be used. This is fine in topics - I provide a link to the font in every page and it works great. But try as I might, I can't fathom how to change the font of entries within the table of contents.

Bumbling about so far, I've found the Table of Contents.slp file and put the same link to the font in the header there (<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=PT+Sans" />) - I then customised my layout to specify the font name (PT Sans) for the TOC Desktop, but this seems to have no effect at all: when I generate the help, the TOC renders in what looks to be a default Times font.

I'm really just guessing at this stage so if anyone can point me in a slightly more considered direction, I'd be really grateful!

Thanks

Claire

This topic has been closed for replies.

1 reply

Peter Grainge
Community Expert
Community Expert
September 21, 2014

I trust you are well Claire.

Try right clicking the layout name in Project Setup and then clicking Edit. Look under Global.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
authorinkltd
Participating Frequently
September 21, 2014

Hello Peter - I'm really well thanks - and thanks so much for your suggestion :-)

I had indeed overlooked the Global settings but alas even this doesn't solve the problem. A little further checking tells me that font settings for the TOC Desktop take precedence over Global settings; I've proved that I can change the colour and specify another standard font here, which makes me think I must be missing a trick about linking to the non-standard font.

I'll keep digging - it's certainly helping me find my way around all this shiny new stuff!

Thanks again

Claire

authorinkltd
Participating Frequently
September 22, 2014

Thanks for the advice Willam - it's worked a treat :-)

Claire


Hmmm. Actually there's an addendum to this one.

When I generate the help, all looks good with the correct font in the TOC and in topics. But as soon as I expand the TOC to show second-level entries, all entries in the TOC seem to revert to a default font. Only when I collapse the TOC again to shown top-level entries does it revert to PT Sans.

I'm guessing that there is something in main.css that controls the different TOC levels - I'm not sure what it is but I do know that all font settings in this file are set to PT Sans.

Any more clues gratefully received :-)

Claire