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 method is important to allow fonts to be bundled by the bundler and making ZephJS "compiled code" standalone as much as possible.
The font definition method takes three arguments:
fontName: The name of this font;
source: The filename (or inline content) of the font to be applied.
details: Object containing the @font-face details for this font.
Given these two attributes the font() method will download the font (if needed) and then create the font for the given custom element using the details specified.
Additionally, the bundler will be updated to inline the font() filename references. This means fonts thus declared will be inlined into the bundled code.
The text was updated successfully, but these errors were encountered:
Add the font() definition method.
This method is important to allow fonts to be bundled by the bundler and making ZephJS "compiled code" standalone as much as possible.
The font definition method takes three arguments:
Given these two attributes the font() method will download the font (if needed) and then create the font for the given custom element using the details specified.
Additionally, the bundler will be updated to inline the
font()
filename references. This means fonts thus declared will be inlined into the bundled code.The text was updated successfully, but these errors were encountered: