KyleAMathews / typefaces

NPM packages for Open Source typefaces
2.6k stars 92 forks source link

can i use both typefaces and typographyjs with gatsby? #107

Open fustkilas opened 5 years ago

fustkilas commented 5 years ago

as much as i love typography.js, i appreciate the time (about a second, in my case) i can save by bundling typefaces with this repo with gatsbyjs

however, then i lose all of the scaling goodness typographyjs offers. anyway to have the best of both worlds?

thanks kyle for elegantly articulating and encapsulating the complexity of web typography

foggy1 commented 5 years ago

There's an option when you use typography to "omitGoogleFont" so that you can load the font yourself. In this case, you'd obviously be referring to the font you install with typefaces rather than any of the predefined typography options. You can override pretty much anything in typography yourself, or load defaults on top of your customizations (just poke through that repo)