-
Notifications
You must be signed in to change notification settings - Fork 0
add font() definition method #5
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestin progressWork on this issue is in progress and a resolution is coming soonWork on this issue is in progress and a resolution is coming soon
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestin progressWork on this issue is in progress and a resolution is coming soonWork on this issue is in progress and a resolution is coming soon
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.