threepointone/glamor

Font face example

Closed this issue · 4 comments

Just requesting an example on how to use font-face to import fonts:

https://github.com/threepointone/glamor/blob/master/docs/howto.md#font-face

ah, I suppose maybe we'd just use css.global?

yes, pretty much, make sure they're the first rules you import! I'm looking to make this better (#40), dunno when I'll get around to it.

Anyway we can do an example of how to use @font-face globally, maybe have multiple font-face example also.
css.global('@font-face', { fontFamily: 'OneDay', src: OneDay });
Currently, this works for me. However, not sure how to add other fonts.

Has anyone figured out a way to add more than one font to a project using glamor?