File: wp-includes/fonts/class-wp-font-utils.php
-
Applies a sanitizer function to a value.
-
Returns the expected mime-type values for font files, depending on PHP version.
-
Adds surrounding quotes to font family names that contain special characters.
-
Sanitizes and formats font family names.
-
Generates a slug from font face properties, e.g. `open sans;normal;400;100%;U+0-10FFFF`
-
Sanitizes a tree of data using a schema.
-
classWP_Font_Utils
A class of utilities for working with the Font Library.