You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Call the loadFontFaceInBrowser when the user is enabling a font-variant. When the user is disabling a font-variant, call the unloadFontFaceInBrowser instead.
Open the Font Library Modal by Styles > Typography > Fonts
Install the “ABeeZee” fonts from the “Install Fonts” tab
Create the following paragraph:
ABeeZee Regular. Set the Font Family to ABeeZee, and the Appearance to “Regular”
ABeeZee Regular Italic. Set the Font Family to ABeeZee, and the Appearance to “Regular Italic”
Make sure the fonts are displayed correctly
Open the Font Library Modal again to turn off the font variants of ABeeZee
Save and refresh the page
Open the Font Library Modal again
Toggle the font variants of ABeeZee, and make sure the fonts are still displayed correctly
Testing Instructions for Keyboard
Screenshots or screencast
load-font-variants-on-demand.mov
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.
If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
What?
Load/Unload the font face in browser when toggling the variants.
Why?
Referring to “Changes in font-weight are not immediately reflected on the canvas, requiring a page reload for updates to be visible.”, we have to load/unload the specified font face in the browser when the user is managing the fonts.
How?
Call the
loadFontFaceInBrowserwhen the user is enabling a font-variant. When the user is disabling a font-variant, call theunloadFontFaceInBrowserinstead.Note that Font faces that were added to the set using the CSS font-face rule remain connected to the corresponding CSS, and cannot be deleted.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
load-font-variants-on-demand.mov