HelpSmith Logo
Making Help Authoring a Pleasure to Do
Free DownloadStart your free trial now
HelpSmith Topics
Making Help Authoring a Pleasure To Do

Applying a Google font to the text in a help file

I'm a registered HelpSmith user creating a help system for my application.

My question is how can I apply a custom font to the text in my:

  • CHM help file
  • Web Help system

Is it possible to use a Google font?

29

Comments

How to include a Google font

HelpSmith allows you to include a custom CSS file (at: Project|Project Options|HTML Includes), so you can apply a custom font by:

  • Linking to the Google Fonts service
  • Including a local font's .woff2 file

For more details on adding custom CSS, JS, and other files, you can visit:
https://www.helpsmith.com/webhelp/topics/including-javascript-and-css-styles.htm

19

Could you provide a sample help project that uses a Google font?

12

Could you provide a sample help project that uses a Google font?

Sample Help Project (googlefont.zip)

Below you can find a sample help project (click the Attachments link) that includes a custom font by linking to the Google Fonts service.

CHM help file linking to a custom font

21

Sample Help Project (pacificofont.zip)

Here is another sample help project (click the Attachments link) that includes a local Pacifico.woff2 font file.

Please note that if you include a custom CSS file (at: Project|Project Options|HTML Includes) that links to a local .woff2 file, in the "HTML Include" window, you should include it as Folder, so HelpSmith will copy the entire folder with the CSS and .woff2 file(s).

Browser-based help system using a custom font

19

How to apply a custom font to selected text

You can specify the name of a custom font in the Font dialog, and similarly in the Web Help appearance settings.

For example:

  1. In a topic, right-click on the selected text and then click "Font" in the popup menu.
  2. In the Font dialog, in the Font box, type the name of your font (for example, "Pacifico" as in the sample projects).

Font dialog with a custom font name

16

How to apply a custom font to all text in a topic (via CSS)

Also you can apply a custom font to all paragraphs in a topic by using the CSS code like:

p, p span {
    font-family: Pacifico !important;
}
8

Add a Comment

Please Login or Register or leave comments.

Hello World
Lorem ipsum dolor sit amet
OK
Login
Nickname or Email:
Password:
If you do not have an account, you can register.