Home
last modified time | relevance | path

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

1234

/third_party/flutter/skia/src/ports/
DSkFontConfigInterface_direct.cpp91 buffer.write8(fStyle.slant()); in writeToMemory()
112 SkFontStyle::Slant slant = (SkFontStyle::Slant)u8; in readFromMemory() local
113 fStyle = SkFontStyle(weight, width, slant); in readFromMemory()
445 SkFS::Slant slant = SkFS::kUpright_Slant; in skfontstyle_from_fcpattern() local
447 case FC_SLANT_ROMAN: slant = SkFS::kUpright_Slant; break; in skfontstyle_from_fcpattern()
448 case FC_SLANT_ITALIC : slant = SkFS::kItalic_Slant ; break; in skfontstyle_from_fcpattern()
449 case FC_SLANT_OBLIQUE: slant = SkFS::kOblique_Slant; break; in skfontstyle_from_fcpattern()
453 return SkFontStyle(SkScalarRoundToInt(weight), SkScalarRoundToInt(width), slant); in skfontstyle_from_fcpattern()
488 int slant = FC_SLANT_ROMAN; in fcpattern_from_skfontstyle() local
489 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_preview.h216 SkFontStyle::Slant slant = style.slant(); in SkFontStyleSet_Preview() local
219 slant = style.slant(); in SkFontStyleSet_Preview()
222 slant = SkFontStyle::kUpright_Slant; in SkFontStyleSet_Preview()
225 slant = SkFontStyle::kItalic_Slant; in SkFontStyleSet_Preview()
231 style = SkFontStyle(weight, style.width(), slant); in SkFontStyleSet_Preview()
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()
DSkFontMgr_fontconfig.cpp364 SkFS::Slant slant = SkFS::kUpright_Slant; in skfontstyle_from_fcpattern() local
366 case FC_SLANT_ROMAN: slant = SkFS::kUpright_Slant; break; in skfontstyle_from_fcpattern()
367 case FC_SLANT_ITALIC : slant = SkFS::kItalic_Slant ; break; in skfontstyle_from_fcpattern()
368 case FC_SLANT_OBLIQUE: slant = SkFS::kOblique_Slant; break; in skfontstyle_from_fcpattern()
372 return SkFontStyle(SkScalarRoundToInt(weight), SkScalarRoundToInt(width), slant); in skfontstyle_from_fcpattern()
410 int slant = FC_SLANT_ROMAN; in fcpattern_from_skfontstyle() local
411 switch (style.slant()) { in fcpattern_from_skfontstyle()
412 case SkFS::kUpright_Slant: slant = FC_SLANT_ROMAN ; break; in fcpattern_from_skfontstyle()
413 case SkFS::kItalic_Slant : slant = FC_SLANT_ITALIC ; break; in fcpattern_from_skfontstyle()
414 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()
348 FuchsiaToSkSlant(style.slant()))); in onMatchFamily()
/third_party/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.cpp119 if (style.slant() != SkFontStyle::kUpright_Slant) { in create_descriptor()
146 CGFloat ctSlant = style.slant() == SkFontStyle::kUpright_Slant ? 0 : 1; in create_descriptor()
181 if (style.slant() != SkFontStyle::kUpright_Slant) { in create_from_desc_and_style()
296 sqr((a.slant() != b.slant()) * 900); in compute_metric()
/third_party/skia/src/core/
DSkFontMgr.cpp232 SkASSERT(0 <= pattern.slant() && pattern.slant() <= 2 && in matchStyleCSS3()
233 0 <= current.slant() && current.slant() <= 2); in matchStyleCSS3()
241 currentScore += score[pattern.slant()][current.slant()]; in matchStyleCSS3()
/third_party/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
/third_party/flutter/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
/third_party/flutter/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.cpp135 if (nullptr == name && (fontStyle.slant() == SkFontStyle::kItalic_Slant || in MakeFromName()
136 fontStyle.slant() == SkFontStyle::kUpright_Slant) && in MakeFromName()
140 (fontStyle.slant() == SkFontStyle::kItalic_Slant ? SkTypeface::kItalic : in MakeFromName()
/third_party/flutter/skia/src/ports/skia_ohos/
DFontConfig_ohos.cpp273 uint32_t slantDiff = diffSlantValue[dstStyle.slant()][srcStyle.slant()]; in getFontStyleDifference()
424 …name.c_str(), font.familyName.c_str(), font.style.weight(), font.style.width(), font.style.slant(), in dumpFont()
788 info.slant = static_cast<int>(SkFontStyle::kUpright_Slant); in parseVariation()
790 info.slant = static_cast<int>(SkFontStyle::kItalic_Slant); in parseVariation()
792 info.slant = static_cast<int>(SkFontStyle::kOblique_Slant); in parseVariation()
916 SkFontStyle::Slant slant = font.style.slant(); in insertVariableFont() local
920 if (variationSet[i].slant != -1) { in insertVariableFont()
921 slant = (SkFontStyle::Slant) variationSet[i].slant; in insertVariableFont()
923 newFont.style = SkFontStyle(variationSet[i].weight, width, slant); in insertVariableFont()
987 … font.style = SkFontStyle(adjustSet[i].newValue, font.style.width(), font.style.slant()); in loadFont()
[all …]
/third_party/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()
/third_party/flutter/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()
/third_party/flutter/skia/modules/skottie/src/layers/
DTextLayer.cpp78 SkFontStyle::Slant slant = SkFontStyle::kUpright_Slant; in FontStyle() local
82 slant = s.fSlant; in FontStyle()
93 return SkFontStyle(weight, SkFontStyle::kNormal_Width, slant); in FontStyle()
/third_party/skia/modules/skottie/tests/
DText.cpp117 SkFontStyle::Slant slant; in DEF_TEST() member
142 REPORTER_ASSERT(r, style->slant () == exp.slant ); in DEF_TEST()
/third_party/ffmpeg/libavcodec/
Daacenc_tns.c172 const int slant = sce->ics.window_sequence[0] == LONG_STOP_SEQUENCE ? 1 : in ff_aac_search_for_tns() local
204 tns->direction[w][g] = slant != 2 ? slant : en[g] < en[!g]; in ff_aac_search_for_tns()
/third_party/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()
/third_party/skia/docs/examples/
DSkFontMgr_example.cpp30 tostr(fontStyle.slant())); in draw()

1234