Go to the source code of this file.
|
static SkScalar | drawString (SkCanvas *canvas, const SkString &text, SkScalar x, SkScalar y, const SkFont &font) |
|
static SkScalar | drawCharacter (SkCanvas *canvas, uint32_t character, SkScalar x, SkScalar y, const SkFont &origFont, SkFontMgr *fm, const char *fontName, const char *bcp47[], int bcp47Count, const SkFontStyle &fontStyle) |
|
|
static const char * | zh = "zh" |
|
static const char * | ja = "ja" |
|
◆ MAX_FAMILIES
◆ drawCharacter()
Definition at line 45 of file fontmgr.cpp.
48 {
50
55 font.setTypeface(typeface);
57
58 if (nullptr == typeface) {
60 }
61
62
63
64
66 typeface->getFamilyName(&familyName);
69}
sk_sp< SkTypeface > matchFamilyStyleCharacter(const char familyName[], const SkFontStyle &, const char *bcp47[], int bcp47Count, SkUnichar character) const
sk_sp< SkTypeface > legacyMakeTypeface(const char familyName[], SkFontStyle style) const
void appendUnichar(SkUnichar uni)
const char * c_str() const
static SkScalar drawString(SkCanvas *canvas, const SkString &text, SkScalar x, SkScalar y, const SkFont &font)
font
Font Metadata and Metrics.
◆ drawString()
Definition at line 39 of file fontmgr.cpp.
40 {
43}
@ kUTF8
uses bytes to represent UTF-8 or ASCII
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
◆ ja
◆ zh