![]() |
Ultralight C++ API 1.3.0
|
#include <Ultralight/platform/FontLoader.h>
Represents a font file, either on-disk path or in-memory file contents.
Static Public Member Functions | |
| static RefPtr< FontFile > | Create (const String &filepath) |
| Create a font file from an on-disk file path. | |
| static RefPtr< FontFile > | Create (RefPtr< Buffer > buffer) |
| Create a font file from an in-memory buffer. | |
Public Member Functions | |
| virtual bool | is_in_memory () const =0 |
| Whether or not this font file was created from an in-memory buffer. | |
| virtual String | filepath () const =0 |
| The file path (if any). | |
| virtual RefPtr< Buffer > | buffer () const =0 |
| The in-memory buffer (if any). | |
| virtual uint32_t | hash () const =0 |
| Unique hash (if this is a filepath, only the path string is hashed). | |
Public Member Functions inherited from ultralight::RefCounted | |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
| virtual int | ref_count () const =0 |
Protected Member Functions | |
| FontFile () | |
| virtual | ~FontFile () |
| FontFile (const FontFile &) | |
| void | operator= (const FontFile &) |
Protected Member Functions inherited from ultralight::RefCounted | |
| virtual | ~RefCounted () |
|
protected |
|
protectedvirtual |
|
protected |
The in-memory buffer (if any).
Create a font file from an on-disk file path.
Create a font file from an in-memory buffer.
|
pure virtual |
The file path (if any).
|
pure virtual |
Unique hash (if this is a filepath, only the path string is hashed).
|
pure virtual |
Whether or not this font file was created from an in-memory buffer.
|
protected |