Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
SkFontMgr_example |
, |
|
|
1280 |
, |
|
|
512 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file SkFontMgr_example.cpp.
4 {
10 default: return "";
11 }
12}
13
15 SkDebugf(
"Using a platform specific fontMgr;\n\n");
16
21 int N = styleSet->count();
22 for (
int j = 0; j <
N; ++j) {
25 styleSet->getStyle(j, &fontStyle, &style);
27 "SkFont font(fontMgr->legacyMakeTypeface(\"%s\",\n"
28 " SkFontStyle(%3d, %1d, %-27s));\n",
32 tostr(fontStyle.
slant()));
33 }
35 }
36}
37}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
sk_sp< SkFontStyleSet > createStyleSet(int index) const
void getFamilyName(int index, SkString *familyName) const
int countFamilies() const
const char * c_str() const
sk_sp< SkFontMgr > fontMgr