File: wp-includes/fonts/class-wp-font-face.php
-
Compiles the font variation settings.
-
Orders `src` items to optimize for browser support.
-
Builds the font-family’s CSS.
-
Compiles the `src` into valid CSS.
-
classWP_Font_Face
Font Face generates and prints `@font-face` styles for given fonts.
-
Creates and initializes an instance of WP_Font_Face.
-
Generates and prints the `@font-face` styles for the given fonts.
-
Validates each of the font-face properties.
-
Validates each font-face declaration (property and value pairing).
-
Gets the style element for wrapping the `@font-face` CSS.
-
Gets the defined element’s attributes.
-
methodWP_Font_Face::get_css()
Gets the `@font-face` CSS styles for locally-hosted font files.