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

Willam van Weelden
Inspiring
September 24, 2014

Thanks Willam!

I did as you suggested and ensured that the font-family is set to PT Sans for these elements (in fact, I've updated ALL font settings to this). But there's still odd behaviour which I've narrowed down to this...

When I generate the help, everything looks fine; all top-level TOC entries are in PT Sans. If I then navigate the TOC and expand branches by clicking the arrow icons, then collapse again using the arrow icons, everything is good. The problem comes when I click the TOC title links, rather than the arrows - as soon as I do that, the font defaults back to something weird for all TOC levels.

Looking at main.css again, I can see that there are various wTOCNodeLink settings, which I think may be relevant. None of these had a font-family attribute so I have added font-family: PT Sans just in case, but to no avail.

I fear this one might be a bit too twisty to unravel :-|

Claire


Hmm. Did you enable the option to 'Limit project styles to topic contents'? Just to make sure.

Can you zip up an example output with this problems and send it to me at contact [at] wvanweelden [dot] eu? I would like to take a look and see what is going on.

Kind regards,

Willam