Financial-Times / o-typography

Typography and vertical rhythm styles for FT branding
http://registry.origami.ft.com/components/o-typography
10 stars 2 forks source link

Error if a font variant is used which hasn't been included on the page #249

Closed notlee closed 4 years ago

notlee commented 4 years ago

Add an o-typography variable $o-typography-error-on-missing-font: false that defaults to false, so this isn't breaking and doesn't break component builds. If a project sets $o-typography-error-on-missing-font: true, use o-fonts to determine if the required font face has been output and error if the font being used has not been included. Depends on https://github.com/Financial-Times/o-fonts/issues/109

Relates to: https://github.com/Financial-Times/o-typography/issues/247