Defining the font for the Search.htm file

This forum is for all Flare issues not related to any of the other categories.
Post Reply
bcjorden
Jr. Propeller Head
Posts: 6
Joined: Thu Oct 01, 2020 5:22 am

Defining the font for the Search.htm file

Post by bcjorden »

Hello -

We use the Lato font family for our online help. For users who don't have Lato installed on their systems, we include these links in the <head> section in each topic:

<link href="https://fonts.googleapis.com/css2?family=Lato" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@700" rel="stylesheet" />

Is there a way to make sure that those links are automatically included in the generated Search.htm file? Right now, we are manually adding them.

Thanks!
Barry
andrewb
Propeller Head
Posts: 16
Joined: Sun Aug 16, 2015 3:40 pm
Location: Brisbane, Australia

Re: Defining the font for the Search.htm file

Post by andrewb »

You should be able to create your own search results page that includes the links to your font files instead of the default on that Flare generates when building a target. This MadCap blog article runs you through the process of creating your own:
https://www.madcapsoftware.com/blog/cus ... on-output/
TWF
Jr. Propeller Head
Posts: 7
Joined: Tue Nov 14, 2023 6:42 am

Re: Defining the font for the Search.htm file

Post by TWF »

An alternative solution is to place those codes in the <head> section of the master page file (Content/Resources/MasterPages). This way, the generated search.htm will use them. Therefore, there is no need to input those codes separately for each HTML page.
Post Reply