docs(editor): document font Export Behavior (Automatic/Force Export/Prevent Export)#742
Open
MazzeiMotion wants to merge 2 commits into
Open
docs(editor): document font Export Behavior (Automatic/Force Export/Prevent Export)#742MazzeiMotion wants to merge 2 commits into
MazzeiMotion wants to merge 2 commits into
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Fonts page's Export Options documents the Type field (Embedded / Referenced / Hosted) but not the separate Behavior field. The Behavior options are only defined on the Libraries page, so font authors setting "Prevent Export" have no in-context explanation — and no warning that it strips the font's asset reference and breaks runtime-supplied referenced fonts.
Change
editor/text/fonts.mdx: add an Export Behavior subsection under Export Options defining Automatic / Force Export / Prevent Export for fonts, plus a<Warning>noting that Prevent Export removes the asset reference entirely, so the runtime asset loader is never called and any text using the font renders blank.Source
Behavior definitions adapted from the Libraries page; runtime impact confirmed against the web asset-loader API and observed behavior (a font set to Referenced + Prevent Export produces no font asset for the runtime to load).