Home
last modified time | relevance | path

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

1234

/external/fonttools/Lib/fontTools/pens/
DstatisticsPen.py38 self.slant = 0
67 slant = covariance / varianceY
68 self.slant = slant if abs(slant) > 1e-3 else 0
/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.cpp76 buffer.write8(fStyle.slant()); in writeToMemory()
97 SkFontStyle::Slant slant = (SkFontStyle::Slant)u8; in readFromMemory() local
98 fStyle = SkFontStyle(weight, width, slant); in readFromMemory()
430 SkFS::Slant slant = SkFS::kUpright_Slant; in skfontstyle_from_fcpattern() local
432 case FC_SLANT_ROMAN: slant = SkFS::kUpright_Slant; break; in skfontstyle_from_fcpattern()
433 case FC_SLANT_ITALIC : slant = SkFS::kItalic_Slant ; break; in skfontstyle_from_fcpattern()
434 case FC_SLANT_OBLIQUE: slant = SkFS::kOblique_Slant; break; in skfontstyle_from_fcpattern()
438 return SkFontStyle(SkScalarRoundToInt(weight), SkScalarRoundToInt(width), slant); in skfontstyle_from_fcpattern()
473 int slant = FC_SLANT_ROMAN; in fcpattern_from_skfontstyle() local
474 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_android.cpp209 SkFontStyle::Slant slant = style.slant(); in SkFontStyleSet_Android() local
211 case FontFileInfo::Style::kAuto: slant = style.slant(); break; in SkFontStyleSet_Android()
212 case FontFileInfo::Style::kNormal: slant = SkFontStyle::kUpright_Slant; break; in SkFontStyleSet_Android()
213 case FontFileInfo::Style::kItalic: slant = SkFontStyle::kItalic_Slant; break; in SkFontStyleSet_Android()
216 style = SkFontStyle(weight, style.width(), slant); in SkFontStyleSet_Android()
DSkFontMgr_fontconfig.cpp340 SkFS::Slant slant = SkFS::kUpright_Slant; in skfontstyle_from_fcpattern() local
342 case FC_SLANT_ROMAN: slant = SkFS::kUpright_Slant; break; in skfontstyle_from_fcpattern()
343 case FC_SLANT_ITALIC : slant = SkFS::kItalic_Slant ; break; in skfontstyle_from_fcpattern()
344 case FC_SLANT_OBLIQUE: slant = SkFS::kOblique_Slant; break; in skfontstyle_from_fcpattern()
348 return SkFontStyle(SkScalarRoundToInt(weight), SkScalarRoundToInt(width), slant); in skfontstyle_from_fcpattern()
386 int slant = FC_SLANT_ROMAN; in fcpattern_from_skfontstyle() local
387 switch (style.slant()) { in fcpattern_from_skfontstyle()
388 case SkFS::kUpright_Slant: slant = FC_SLANT_ROMAN ; break; in fcpattern_from_skfontstyle()
389 case SkFS::kItalic_Slant : slant = FC_SLANT_ITALIC ; break; in fcpattern_from_skfontstyle()
390 case SkFS::kOblique_Slant: slant = FC_SLANT_OBLIQUE; break; in fcpattern_from_skfontstyle()
[all …]
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()
140 fuchsiaStyle.set_slant(SkToFuchsiaSlant(style.slant())).set_weight(style.weight()); in SkToFuchsiaStyle()
347 FuchsiaToSkSlant(style.slant()))); in onMatchFamily()
DSkFontMgr_mac_ct.cpp92 if (style.slant() != SkFontStyle::kUpright_Slant) { in create_descriptor()
119 CGFloat ctSlant = style.slant() == SkFontStyle::kUpright_Slant ? 0 : 1; in create_descriptor()
154 if (style.slant() != SkFontStyle::kUpright_Slant) { in create_from_desc_and_style()
341 sqr((a.slant() != b.slant()) * 900); in compute_metric()
/external/skia/include/core/
DSkFontStyle.h48 constexpr SkFontStyle(int weight, int width, Slant slant) : fValue( in SkFontStyle() argument
51 (SkTPin<int>(slant, kUpright_Slant, kOblique_Slant) << 24) in SkFontStyle()
62 Slant slant() const { return (Slant)((fValue >> 24) & 0xFF); } in slant() function
/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/src/core/
DSkFontMgr.cpp246 SkASSERT(0 <= pattern.slant() && pattern.slant() <= 2 && in matchStyleCSS3()
247 0 <= current.slant() && current.slant() <= 2); in matchStyleCSS3()
255 currentScore += score[pattern.slant()][current.slant()]; in matchStyleCSS3()
DSkTypeface.cpp131 if (nullptr == name && (fontStyle.slant() == SkFontStyle::kItalic_Slant || in MakeFromName()
132 fontStyle.slant() == SkFontStyle::kUpright_Slant) && in MakeFromName()
136 (fontStyle.slant() == SkFontStyle::kItalic_Slant ? SkTypeface::kItalic : in MakeFromName()
/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()
/external/skia/modules/skottie/tests/
DText.cpp116 SkFontStyle::Slant slant; in DEF_TEST() member
141 REPORTER_ASSERT(r, style->slant () == exp.slant ); in DEF_TEST()
/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/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/tools/fonts/
Dcreate_test_font.cpp305 static const char* slant_to_string(SkFontStyle::Slant slant) { in slant_to_string() argument
306 switch (slant) { in slant_to_string()
332 style.weight(), style.width(), slant_to_string(style.slant())); in generate_index()
356 style.weight(), style.width(), slant_to_string(style.slant()), in generate_index()
368 slant_to_string(font.fNamedStyle.fStyle.slant()), testFontsIndex, font.fFile); in generate_index()
/external/skia/modules/skottie/src/layers/
DTextLayer.cpp84 auto slant = SkFontStyle::kUpright_Slant; in FontStyle() local
90 style = parse_map(gSlantMap , style, &slant ); in FontStyle()
99 return SkFontStyle(weight, SkFontStyle::kNormal_Width, slant); in FontStyle()
/external/skia/docs/examples/
DSkFontMgr_example.cpp30 tostr(fontStyle.slant())); in draw()
DSkFontMgr_example2.cpp31 tostr(fontStyle.slant()), textScale); in draw()

1234