beyonk-group / google-fonts-webpack-plugin

47 stars 24 forks source link

Font Display Option #6

Closed upalatucci closed 4 years ago

upalatucci commented 4 years ago

Hi.

I'm working with this package for a while but there is no possibility to change font-display. For me, it will be great to change "swap" into "block" so that the text does not change from system to desired fonts during page loading but it shows only when the font file is downloaded and imported into the browser page.

So I think this is the best way to add font-display option. I added also a test using font-display: block. What do you think?

antony commented 4 years ago

Looks good to me!