![]() |
Flutter Engine
The Flutter Engine
|
#include <SkOTUtils.h>
Public Member Functions | |
LocalizedStrings_NameTable (std::unique_ptr< uint8_t[]> nameTableData, size_t size, SK_OT_USHORT types[], int typesCount) | |
bool | next (SkTypeface::LocalizedString *localizedString) override |
![]() | |
LocalizedStrings ()=default | |
virtual | ~LocalizedStrings () |
virtual bool | next (LocalizedString *localizedString)=0 |
void | unref () |
Static Public Member Functions | |
static sk_sp< LocalizedStrings_NameTable > | Make (const SkTypeface &typeface, SK_OT_USHORT types[], int typesCount) |
static sk_sp< LocalizedStrings_NameTable > | MakeForFamilyNames (const SkTypeface &typeface) |
An implementation of LocalizedStrings which obtains it's data from a 'name' table.
Definition at line 44 of file SkOTUtils.h.
|
inline |
Takes ownership of the nameTableData and will free it with SK_DELETE.
Definition at line 47 of file SkOTUtils.h.
|
static |
Creates an iterator over all data in the 'name' table of a typeface. If no valid 'name' table can be found, returns nullptr.
Definition at line 170 of file SkOTUtils.cpp.
|
static |
Creates an iterator over all the family names in the 'name' table of a typeface. If no valid 'name' table can be found, returns nullptr.
Definition at line 191 of file SkOTUtils.cpp.
|
overridevirtual |
Implements SkTypeface::LocalizedStrings.
Definition at line 197 of file SkOTUtils.cpp.