#include <memory>#include "flutter/skwasm/export.h"#include "flutter/skwasm/live_objects.h"#include "flutter/skwasm/wrappers.h"#include "third_party/skia/include/core/SkFontMgr.h"#include "third_party/skia/include/ports/SkFontMgr_empty.h"#include "third_party/skia/modules/skparagraph/include/FontCollection.h"#include "third_party/skia/modules/skparagraph/include/TypefaceFontProvider.h"Go to the source code of this file.
Functions | |
| SKWASM_EXPORT Skwasm::FlutterFontCollection * | fontCollection_create () |
| SKWASM_EXPORT void | fontCollection_dispose (Skwasm::FlutterFontCollection *collection) |
| static sk_sp< SkFontMgr > | default_fontmgr () |
| SKWASM_EXPORT SkTypeface * | typeface_create (SkData *font_data) |
| SKWASM_EXPORT void | typeface_dispose (SkTypeface *typeface) |
| SKWASM_EXPORT void | fontCollection_registerTypeface (Skwasm::FlutterFontCollection *collection, SkTypeface *typeface, SkString *font_name) |
| SKWASM_EXPORT void | fontCollection_clearCaches (Skwasm::FlutterFontCollection *collection) |
|
static |
Definition at line 33 of file fonts.cc.
Referenced by typeface_create().
| SKWASM_EXPORT void fontCollection_clearCaches | ( | Skwasm::FlutterFontCollection * | collection | ) |
Definition at line 62 of file fonts.cc.
References Skwasm::FlutterFontCollection::collection.
| SKWASM_EXPORT Skwasm::FlutterFontCollection * fontCollection_create | ( | ) |
Definition at line 15 of file fonts.cc.
References Skwasm::live_font_collection_count.
| SKWASM_EXPORT void fontCollection_dispose | ( | Skwasm::FlutterFontCollection * | collection | ) |
Definition at line 27 of file fonts.cc.
References Skwasm::live_font_collection_count.
| SKWASM_EXPORT void fontCollection_registerTypeface | ( | Skwasm::FlutterFontCollection * | collection, |
| SkTypeface * | typeface, | ||
| SkString * | font_name | ||
| ) |
Definition at line 49 of file fonts.cc.
References Skwasm::FlutterFontCollection::provider.
| SKWASM_EXPORT SkTypeface * typeface_create | ( | SkData * | font_data | ) |
Definition at line 38 of file fonts.cc.
References default_fontmgr(), and Skwasm::live_typeface_count.
| SKWASM_EXPORT void typeface_dispose | ( | SkTypeface * | typeface | ) |
Definition at line 44 of file fonts.cc.
References Skwasm::live_typeface_count.