Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 504 Bytes

File metadata and controls

21 lines (12 loc) · 504 Bytes

googleFont() Addon

Creates googleFont() method that loads fonts from Google Fonts. Signature:

googleFont(name: string, widths?: number | number[], subsets?: string | string[])

Example

Below example loads Roboto Slab font at 400 and 700 widths, including cyrillic characters.

nano.googleFont('Roboto Slab', [400, 700], 'cyrillic');

Installation

Simply install googleFont addon. Read more about the Addon Installation.