Helper to load a font from a URI, using a ResourceLoaderInterface to fetch the raw data and then parsing it as a WOFF file.
More...
#include "donner/svg/resources/FontLoader.h"
Helper to load a font from a URI, using a ResourceLoaderInterface to fetch the raw data and then parsing it as a WOFF file.
◆ FontLoader()
- Parameters
-
| loader | The user-provided resource loader to fetch the URI. |
◆ fromData()
Load a font from raw data.
- Parameters
-
| data | The raw data to load. |
- Returns
- The loaded font resource, or an error if loading failed.
◆ fromUri()
Load a font from a URI.
- Parameters
-
| uri | The URI to load, which can be a file path or a data URI. |
- Returns
- The loaded font resource, or an error if loading failed.
The documentation for this class was generated from the following files:
- donner/svg/resources/FontLoader.h
- donner/svg/resources/FontLoader.cc