Home
last modified time | relevance | path

Searched refs:slant (Results 1 – 25 of 70) sorted by relevance

123

/external/skqp/src/ports/
DSkFontConfigInterface_direct.cpp88 buffer.write8(fStyle.slant()); in writeToMemory()
109 SkFontStyle::Slant slant = (SkFontStyle::Slant)u8; in readFromMemory() local
110 fStyle = SkFontStyle(weight, width, slant); in readFromMemory()
442 SkFS::Slant slant = SkFS::kUpright_Slant; in skfontstyle_from_fcpattern() local
444 case FC_SLANT_ROMAN: slant = SkFS::kUpright_Slant; break; in skfontstyle_from_fcpattern()
445 case FC_SLANT_ITALIC : slant = SkFS::kItalic_Slant ; break; in skfontstyle_from_fcpattern()
446 case FC_SLANT_OBLIQUE: slant = SkFS::kOblique_Slant; break; in skfontstyle_from_fcpattern()
450 return SkFontStyle(SkScalarRoundToInt(weight), SkScalarRoundToInt(width), slant); in skfontstyle_from_fcpattern()
485 int slant = FC_SLANT_ROMAN; in fcpattern_from_skfontstyle() local
486 switch (style.slant()) { in fcpattern_from_skfontstyle()
[all …]
DSkTypeface_win_dw.h30 SkFontStyle::Slant slant = SkFontStyle::kUpright_Slant; in get_style() local
32 case DWRITE_FONT_STYLE_NORMAL: slant = SkFontStyle::kUpright_Slant; break; in get_style()
33 case DWRITE_FONT_STYLE_OBLIQUE: slant = SkFontStyle::kOblique_Slant; break; in get_style()
34 case DWRITE_FONT_STYLE_ITALIC: slant = SkFontStyle::kItalic_Slant; break; in get_style()
37 return SkFontStyle(weight, width, slant); in get_style()
DSkFontMgr_fuchsia.cpp55 fuchsia::fonts::Slant SkToFuchsiaSlant(SkFontStyle::Slant slant) { in SkToFuchsiaSlant() argument
56 switch (slant) { in SkToFuchsiaSlant()
67 SkFontStyle::Slant FuchsiaToSkSlant(fuchsia::fonts::Slant slant) { in FuchsiaToSkSlant() argument
68 switch (slant) { in FuchsiaToSkSlant()
272 styles.push_back(SkFontStyle(style.weight, style.width, FuchsiaToSkSlant(style.slant)));
333 request.slant = SkToFuchsiaSlant(style.slant());
DSkFontMgr_fontconfig.cpp361 SkFS::Slant slant = SkFS::kUpright_Slant; in skfontstyle_from_fcpattern() local
363 case FC_SLANT_ROMAN: slant = SkFS::kUpright_Slant; break; in skfontstyle_from_fcpattern()
364 case FC_SLANT_ITALIC : slant = SkFS::kItalic_Slant ; break; in skfontstyle_from_fcpattern()
365 case FC_SLANT_OBLIQUE: slant = SkFS::kOblique_Slant; break; in skfontstyle_from_fcpattern()
369 return SkFontStyle(SkScalarRoundToInt(weight), SkScalarRoundToInt(width), slant); in skfontstyle_from_fcpattern()
407 int slant = FC_SLANT_ROMAN; in fcpattern_from_skfontstyle() local
408 switch (style.slant()) { in fcpattern_from_skfontstyle()
409 case SkFS::kUpright_Slant: slant = FC_SLANT_ROMAN ; break; in fcpattern_from_skfontstyle()
410 case SkFS::kItalic_Slant : slant = FC_SLANT_ITALIC ; break; in fcpattern_from_skfontstyle()
411 case SkFS::kOblique_Slant: slant = FC_SLANT_OBLIQUE; break; in fcpattern_from_skfontstyle()
[all …]
DSkFontMgr_android.cpp211 SkFontStyle::Slant slant = style.slant(); in SkFontStyleSet_Android() local
213 case FontFileInfo::Style::kAuto: slant = style.slant(); break; in SkFontStyleSet_Android()
214 case FontFileInfo::Style::kNormal: slant = SkFontStyle::kUpright_Slant; break; in SkFontStyleSet_Android()
215 case FontFileInfo::Style::kItalic: slant = SkFontStyle::kItalic_Slant; break; in SkFontStyleSet_Android()
218 style = SkFontStyle(weight, style.width(), slant); in SkFontStyleSet_Android()
/external/skia/src/ports/
DSkFontConfigInterface_direct.cpp88 buffer.write8(fStyle.slant()); in writeToMemory()
109 SkFontStyle::Slant slant = (SkFontStyle::Slant)u8; in readFromMemory() local
110 fStyle = SkFontStyle(weight, width, slant); in readFromMemory()
442 SkFS::Slant slant = SkFS::kUpright_Slant; in skfontstyle_from_fcpattern() local
444 case FC_SLANT_ROMAN: slant = SkFS::kUpright_Slant; break; in skfontstyle_from_fcpattern()
445 case FC_SLANT_ITALIC : slant = SkFS::kItalic_Slant ; break; in skfontstyle_from_fcpattern()
446 case FC_SLANT_OBLIQUE: slant = SkFS::kOblique_Slant; break; in skfontstyle_from_fcpattern()
450 return SkFontStyle(SkScalarRoundToInt(weight), SkScalarRoundToInt(width), slant); in skfontstyle_from_fcpattern()
485 int slant = FC_SLANT_ROMAN; in fcpattern_from_skfontstyle() local
486 switch (style.slant()) { in fcpattern_from_skfontstyle()
[all …]
DSkTypeface_win_dw.h30 SkFontStyle::Slant slant = SkFontStyle::kUpright_Slant; in get_style() local
32 case DWRITE_FONT_STYLE_NORMAL: slant = SkFontStyle::kUpright_Slant; break; in get_style()
33 case DWRITE_FONT_STYLE_OBLIQUE: slant = SkFontStyle::kOblique_Slant; break; in get_style()
34 case DWRITE_FONT_STYLE_ITALIC: slant = SkFontStyle::kItalic_Slant; break; in get_style()
37 return SkFontStyle(weight, width, slant); in get_style()
DSkFontMgr_fuchsia.cpp55 fuchsia::fonts::Slant SkToFuchsiaSlant(SkFontStyle::Slant slant) { in SkToFuchsiaSlant() argument
56 switch (slant) { in SkToFuchsiaSlant()
67 SkFontStyle::Slant FuchsiaToSkSlant(fuchsia::fonts::Slant slant) { in FuchsiaToSkSlant() argument
68 switch (slant) { in FuchsiaToSkSlant()
268 styles.push_back(SkFontStyle(style.weight, style.width, FuchsiaToSkSlant(style.slant))); in onMatchFamily()
329 request.slant = SkToFuchsiaSlant(style.slant()); in FetchTypeface()
DSkFontMgr_fontconfig.cpp361 SkFS::Slant slant = SkFS::kUpright_Slant; in skfontstyle_from_fcpattern() local
363 case FC_SLANT_ROMAN: slant = SkFS::kUpright_Slant; break; in skfontstyle_from_fcpattern()
364 case FC_SLANT_ITALIC : slant = SkFS::kItalic_Slant ; break; in skfontstyle_from_fcpattern()
365 case FC_SLANT_OBLIQUE: slant = SkFS::kOblique_Slant; break; in skfontstyle_from_fcpattern()
369 return SkFontStyle(SkScalarRoundToInt(weight), SkScalarRoundToInt(width), slant); in skfontstyle_from_fcpattern()
407 int slant = FC_SLANT_ROMAN; in fcpattern_from_skfontstyle() local
408 switch (style.slant()) { in fcpattern_from_skfontstyle()
409 case SkFS::kUpright_Slant: slant = FC_SLANT_ROMAN ; break; in fcpattern_from_skfontstyle()
410 case SkFS::kItalic_Slant : slant = FC_SLANT_ITALIC ; break; in fcpattern_from_skfontstyle()
411 case SkFS::kOblique_Slant: slant = FC_SLANT_OBLIQUE; break; in fcpattern_from_skfontstyle()
[all …]
DSkFontMgr_android.cpp211 SkFontStyle::Slant slant = style.slant(); in SkFontStyleSet_Android() local
213 case FontFileInfo::Style::kAuto: slant = style.slant(); break; in SkFontStyleSet_Android()
214 case FontFileInfo::Style::kNormal: slant = SkFontStyle::kUpright_Slant; break; in SkFontStyleSet_Android()
215 case FontFileInfo::Style::kItalic: slant = SkFontStyle::kItalic_Slant; break; in SkFontStyleSet_Android()
218 style = SkFontStyle(weight, style.width(), slant); in SkFontStyleSet_Android()
/external/fonttools/Lib/fontTools/pens/
DstatisticsPen.py40 self.slant = 0
69 slant = covariance / varianceY
70 self.slant = slant if abs(slant) > 1e-3 else 0
/external/skqp/src/core/
DSkFontMgr.cpp258 SkASSERT(0 <= pattern.slant() && pattern.slant() <= 2 && in matchStyleCSS3()
259 0 <= current.slant() && current.slant() <= 2); in matchStyleCSS3()
267 currentScore += score[pattern.slant()][current.slant()]; in matchStyleCSS3()
DSkTypeface.cpp137 if (nullptr == name && (fontStyle.slant() == SkFontStyle::kItalic_Slant || in MakeFromName()
138 fontStyle.slant() == SkFontStyle::kUpright_Slant) && in MakeFromName()
142 (fontStyle.slant() == SkFontStyle::kItalic_Slant ? SkTypeface::kItalic : in MakeFromName()
DSkTypefaceCache.cpp91 face, id, s.weight(), s.width(), s.slant(), n.c_str()); in DumpProc()
/external/skia/src/core/
DSkFontMgr.cpp258 SkASSERT(0 <= pattern.slant() && pattern.slant() <= 2 && in matchStyleCSS3()
259 0 <= current.slant() && current.slant() <= 2); in matchStyleCSS3()
267 currentScore += score[pattern.slant()][current.slant()]; in matchStyleCSS3()
DSkTypeface.cpp137 if (nullptr == name && (fontStyle.slant() == SkFontStyle::kItalic_Slant || in MakeFromName()
138 fontStyle.slant() == SkFontStyle::kUpright_Slant) && in MakeFromName()
142 (fontStyle.slant() == SkFontStyle::kItalic_Slant ? SkTypeface::kItalic : in MakeFromName()
DSkTypefaceCache.cpp91 face, id, s.weight(), s.width(), s.slant(), n.c_str()); in DumpProc()
/external/skqp/include/core/
DSkFontStyle.h47 constexpr SkFontStyle(int weight, int width, Slant slant) : fValue( in SkFontStyle() argument
50 (SkTPin<int>(slant, kUpright_Slant, kOblique_Slant) << 24) in SkFontStyle()
61 Slant slant() const { return (Slant)((fValue >> 24) & 0xFF); } in slant() function
/external/skia/include/core/
DSkFontStyle.h47 constexpr SkFontStyle(int weight, int width, Slant slant) : fValue( in SkFontStyle() argument
50 (SkTPin<int>(slant, kUpright_Slant, kOblique_Slant) << 24) in SkFontStyle()
61 Slant slant() const { return (Slant)((fValue >> 24) & 0xFF); } in slant() function
/external/skia/tools/fonts/
Dcreate_test_font.cpp308 static const char* slant_to_string(SkFontStyle::Slant slant) { in slant_to_string() argument
309 switch (slant) { in slant_to_string()
335 style.weight(), style.width(), slant_to_string(style.slant())); in generate_index()
359 style.weight(), style.width(), slant_to_string(style.slant()), in generate_index()
371 slant_to_string(font.fNamedStyle.fStyle.slant()), testFontsIndex, font.fFile); in generate_index()
/external/skqp/tools/fonts/
Dcreate_test_font.cpp308 static const char* slant_to_string(SkFontStyle::Slant slant) { in slant_to_string() argument
309 switch (slant) { in slant_to_string()
335 style.weight(), style.width(), slant_to_string(style.slant())); in generate_index()
359 style.weight(), style.width(), slant_to_string(style.slant()), in generate_index()
371 slant_to_string(font.fNamedStyle.fStyle.slant()), testFontsIndex, font.fFile); in generate_index()
/external/skia/modules/skottie/src/
DSkottieTextLayer.cpp61 SkFontStyle::Slant slant = SkFontStyle::kUpright_Slant; in FontStyle() local
65 slant = s.fSlant; in FontStyle()
76 return SkFontStyle(weight, SkFontStyle::kNormal_Width, slant); in FontStyle()
/external/skqp/modules/skottie/src/
DSkottieTextLayer.cpp61 SkFontStyle::Slant slant = SkFontStyle::kUpright_Slant; in FontStyle() local
65 slant = s.fSlant; in FontStyle()
76 return SkFontStyle(weight, SkFontStyle::kNormal_Width, slant); in FontStyle()
/external/skia/src/utils/win/
DSkDWrite.h87 switch (pattern.slant()) { in DWriteStyle()
/external/skqp/src/utils/win/
DSkDWrite.h87 switch (pattern.slant()) { in DWriteStyle()

123