Flutter Engine
The Flutter Engine
|
#include "include/ports/SkFontMgr_fuchsia.h"
#include <fuchsia/fonts/cpp/fidl.h>
#include <lib/zx/vmar.h>
#include <strings.h>
#include <memory>
#include <unordered_map>
#include "src/core/SkFontDescriptor.h"
#include "src/ports/SkFontMgr_custom.h"
#include "include/core/SkFontMgr.h"
#include "include/core/SkStream.h"
#include "include/core/SkTypeface.h"
#include "include/private/base/SkThreadAnnotations.h"
#include "src/core/SkTypefaceCache.h"
Go to the source code of this file.
Classes | |
class | SkFuchsiaFontDataCache |
struct | TypefaceId |
class | SkTypeface_Fuchsia |
class | SkFontMgr_Fuchsia |
class | SkFontStyleSet_Fuchsia |
Functions | |
fuchsia::fonts::Slant | SkToFuchsiaSlant (SkFontStyle::Slant slant) |
SkFontStyle::Slant | FuchsiaToSkSlant (fuchsia::fonts::Slant slant) |
fuchsia::fonts::Width | SkToFuchsiaWidth (SkFontStyle::Width width) |
bool | SkToFuchsiaWidth (int skWidth, fuchsia::fonts::Width *outFuchsiaWidth) |
SkFontStyle::Width | FuchsiaToSkWidth (fuchsia::fonts::Width width) |
fuchsia::fonts::Style2 | SkToFuchsiaStyle (const SkFontStyle &style) |
bool | GetGenericFontFamilyByName (const char *name, fuchsia::fonts::GenericFontFamily *outGenericFamily) |
sk_sp< SkTypeface > | CreateTypefaceFromSkStream (std::unique_ptr< SkStreamAsset > stream, const SkFontArguments &args, TypefaceId id) |
sk_sp< SkTypeface > | CreateTypefaceFromSkData (sk_sp< SkData > data, TypefaceId id) |
static bool | FindByTypefaceId (SkTypeface *cachedTypeface, void *ctx) |
sk_sp< SkFontMgr > | SkFontMgr_New_Fuchsia (fuchsia::fonts::ProviderSyncPtr provider) |
Variables | |
struct { | |
const char * fName | |
fuchsia::fonts::GenericFontFamily fGenericFontFamily | |
} | kGenericFontFamiliesByName [] |
struct TypefaceId | kNullTypefaceId = {0xFFFFFFFF, 0xFFFFFFFF} |
sk_sp< SkTypeface > CreateTypefaceFromSkData | ( | sk_sp< SkData > | data, |
TypefaceId | id | ||
) |
Definition at line 276 of file SkFontMgr_fuchsia.cpp.
sk_sp< SkTypeface > CreateTypefaceFromSkStream | ( | std::unique_ptr< SkStreamAsset > | stream, |
const SkFontArguments & | args, | ||
TypefaceId | id | ||
) |
Definition at line 244 of file SkFontMgr_fuchsia.cpp.
|
static |
Definition at line 498 of file SkFontMgr_fuchsia.cpp.
SkFontStyle::Slant FuchsiaToSkSlant | ( | fuchsia::fonts::Slant | slant | ) |
Definition at line 109 of file SkFontMgr_fuchsia.cpp.
SkFontStyle::Width FuchsiaToSkWidth | ( | fuchsia::fonts::Width | width | ) |
Definition at line 157 of file SkFontMgr_fuchsia.cpp.
bool GetGenericFontFamilyByName | ( | const char * | name, |
fuchsia::fonts::GenericFontFamily * | outGenericFamily | ||
) |
Definition at line 208 of file SkFontMgr_fuchsia.cpp.
Definition at line 520 of file SkFontMgr_fuchsia.cpp.
fuchsia::fonts::Slant SkToFuchsiaSlant | ( | SkFontStyle::Slant | slant | ) |
Definition at line 97 of file SkFontMgr_fuchsia.cpp.
fuchsia::fonts::Style2 SkToFuchsiaStyle | ( | const SkFontStyle & | style | ) |
Definition at line 180 of file SkFontMgr_fuchsia.cpp.
bool SkToFuchsiaWidth | ( | int | skWidth, |
fuchsia::fonts::Width * | outFuchsiaWidth | ||
) |
Definition at line 147 of file SkFontMgr_fuchsia.cpp.
fuchsia::fonts::Width SkToFuchsiaWidth | ( | SkFontStyle::Width | width | ) |
Definition at line 121 of file SkFontMgr_fuchsia.cpp.
fuchsia::fonts::GenericFontFamily fGenericFontFamily |
Definition at line 194 of file SkFontMgr_fuchsia.cpp.
const char* fName |
Definition at line 193 of file SkFontMgr_fuchsia.cpp.
constexpr struct { ... } kGenericFontFamiliesByName[] |
struct TypefaceId kNullTypefaceId = {0xFFFFFFFF, 0xFFFFFFFF} |