Skip to content

Commit

Permalink
Update files/en-us/web/css/@font-face/src/index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
estelle authored Nov 13, 2024
1 parent ebdf433 commit d8ddeae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/css/@font-face/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ If the last `src` descriptor can load a resource and doesn't include a `local()`
> This may affect design of fallbacks.
> See [Browser compatibility](#browser_compatibility) for more information.
As with other URLs in CSS, the URL may be relative, in which case it is resolved relative to the location of the style sheet containing the `@font-face` rule. In the case of SVG fonts, the URL points to an element within a document containing SVG font definitions. If the element reference is omitted, a reference to the first defined font is implied. Similarly, font container formats that can contain more than one font load only one of the fonts for a given `@font-face` rule. Fragment identifiers are used to indicate which font to load. If a container format lacks a defined fragment identifier scheme, a basic 1-based indexing scheme (e.g., "font-collection#1" for the first font, "font-collection#2" for the second font, etc.) is used.
As with other URLs in CSS, the URL may be relative, in which case it is resolved relative to the location of the style sheet containing the `@font-face` rule. In the case of SVG fonts, the URL points to an element within a document containing SVG font definitions. If the element reference is omitted, a reference to the first defined font is implied. Similarly, font container formats that can contain more than one font load only one of the fonts for a given `@font-face` rule. Fragment identifiers are used to indicate which font to load. If a container format lacks a defined fragment identifier scheme, a 1-based indexing scheme (e.g., "font-collection#1" for the first font, "font-collection#2" for the second font, etc.) is used.

If the font file is a container for multiple fonts, a fragment identifier is included to indicate the sub-font that should be used, as shown below:

Expand Down

0 comments on commit d8ddeae

Please sign in to comment.