Download webfonts locally.
Methods
- __construct — Constructor.
- delete_fonts_folder — Delete the fonts folder.
- get_absolute_path — Get an absolute URL from a relative URL.
- get_base_path — Get the base path.
- get_base_url — Get the base URL.
- get_filesystem — Get the filesystem.
- get_fonts_folder — Get the folder for fonts.
- get_local_files_from_css — Download files mentioned in our CSS locally.
- get_local_stylesheet_contents — Get local stylesheet contents.
- get_local_stylesheet_filename — Get the local stylesheet filename.
- get_local_stylesheet_path — Get the stylesheet path.
- get_local_stylesheet_url — Get the local stylesheet URL.
- get_remote_files_from_css — Get font files from the CSS.
- get_remote_url_contents — Get remote file contents.
- get_styles — Get styles with fonts downloaded locally.
- get_subfolder_name — Get the subfolder name.
- get_url — Get the local URL which contains the styles.
- local_file_exists — Check if the local stylesheet exists.
- schedule_cleanup — Schedule a cleanup.
- set_font_format — Set the font-format to be used.
- write_stylesheet — Write the CSS to the filesystem.