Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added font-display: block to @font-face #213

Merged
merged 6 commits into from Nov 21, 2019
Merged

Conversation

pattishih
Copy link
Contributor

@pattishih pattishih commented Oct 18, 2019

Fixes #193

font-display is a newer CSS property for the @font-face rule that enables the page to continue rendering while the resource loads in the background. By specifying the value "block," any ForkAwesome fonts will display as blanks in-place (similar to visibility: hidden) until it is ready to be rendered. While there are other values that can be specified for font-display, "block" is the most appropriate for icon fonts as there are unlikely to be any suitable local substitutes. Unsupported browsers will simply ignore the property.

References:
A demonstration of font-display: https://font-display.glitch.me
Resolved font-display issue report for FontAwesome: FortAwesome/Font-Awesome#14387
The implementation of font-display for Google Fonts: https://css-tricks.com/google-fonts-is-adding-font-display/

@xuv xuv merged commit 2602455 into ForkAwesome:master Nov 21, 2019
@xuv
Copy link
Member

xuv commented Nov 21, 2019

Hello. Thanks a lot for this fix. Sorry for the delay in merging it.
I went ahead and applied the fix to our source files before the build (I know this repo can bi a bit confusing). I hope you don't mind. And finally merged it.
Thanks again for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add font-display property to css
2 participants