Font face example
Closed this issue · 4 comments
ccorcos commented
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
ccorcos commented
ah, I suppose maybe we'd just use css.global
?
threepointone commented
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.
trigun539 commented
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.
adamsoffer commented
Has anyone figured out a way to add more than one font to a project using glamor?