Skip to content

Adding Fonts

cvasseng edited this page Oct 10, 2016 · 2 revisions

Fonts can be added to the available font set by:

highed.meta.fonts.push('Verdana');

Note that if you add e.g. google fonts, you should push the name of the font as above, and include the font either by adding a <link> tag on your page, or by calling highed.include(<url of the font>).

Fonts with fallbacks may also be added:

highed.meta.fonts.push('Verdana, Arial, sans-serif');

Please note that if adding external fonts, you must make sure the font is also included when utilizing the output.