Home
last modified time | relevance | path

Searched refs:FontFamily (Results 1 – 25 of 34) sorted by relevance

12

/external/rust/crates/plotters-backend/src/
Dtext.rs8 pub enum FontFamily<'a> { enum
19 impl<'a> FontFamily<'a> { implementation
24 FontFamily::Serif => "serif", in as_str()
25 FontFamily::SansSerif => "sans-serif", in as_str()
26 FontFamily::Monospace => "monospace", in as_str()
27 FontFamily::Name(face) => face, in as_str()
32 impl<'a> From<&'a str> for FontFamily<'a> { implementation
33 fn from(from: &'a str) -> FontFamily<'a> { in from()
35 "serif" => FontFamily::Serif, in from()
36 "sans-serif" => FontFamily::SansSerif, in from()
[all …]
/external/rust/crates/plotters/src/style/font/
Dfont_desc.rs7 pub use plotters_backend::{FontFamily, FontStyle, FontTransform};
19 family: FontFamily<'a>,
31 impl<'a> From<FontFamily<'a>> for FontDesc<'a> {
32 fn from(family: FontFamily<'a>) -> FontDesc<'a> { in from()
37 impl<'a, T: Into<f64>> From<(FontFamily<'a>, T)> for FontDesc<'a> {
38 fn from((family, size): (FontFamily<'a>, T)) -> FontDesc<'a> { in from()
49 impl<'a, T: Into<f64>, S: Into<FontStyle>> From<(FontFamily<'a>, T, S)> for FontDesc<'a> {
50 fn from((family, size, style): (FontFamily<'a>, T, S)) -> FontDesc<'a> { in from()
80 pub fn new(family: FontFamily<'a>, size: f64, style: FontStyle) -> Self { in new()
146 pub fn get_family(&self) -> FontFamily { in get_family() argument
Dttf.rs15 use super::{FontData, FontFamily, FontStyle, LayoutBox};
52 fn load_font_data(face: FontFamily, style: FontStyle) -> FontResult<Font<'static>> { in load_font_data() argument
72 FontFamily::Serif => FamilyName::Serif, in load_font_data()
73 FontFamily::SansSerif => FamilyName::SansSerif, in load_font_data()
74 FontFamily::Monospace => FamilyName::Monospace, in load_font_data()
75 FontFamily::Name(name) => FamilyName::Title(name.to_owned()), in load_font_data()
132 fn new(family: FontFamily, style: FontStyle) -> Result<Self, FontError> { in new() argument
199 let _a = load_font_data(FontFamily::Serif, FontStyle::Normal)?; in test_font_cache()
202 let _b = load_font_data(FontFamily::Serif, FontStyle::Normal)?; in test_font_cache()
Dnaive.rs1 use super::{FontData, FontFamily, FontStyle, LayoutBox};
20 fn new(family: FontFamily, style: FontStyle) -> Result<Self, FontError> { in new() argument
Dweb.rs1 use super::{FontData, FontFamily, FontStyle, LayoutBox};
25 fn new(family: FontFamily, style: FontStyle) -> Result<Self, FontError> { in new() argument
Dmod.rs31 fn new(family: FontFamily, style: FontStyle) -> Result<Self, Self::ErrorType>; in new() argument
/external/skqp/src/ports/
DSkFontMgr_android_parser.cpp88 FamilyData(XML_Parser parser, SkTDArray<FontFamily*>& families, in FamilyData()
105 SkTDArray<FontFamily*>& fFamilies; // The array to append families, owned by caller
106 std::unique_ptr<FontFamily> fCurrentFamily; // The family being created, owned by this
235 std::unique_ptr<FontFamily>* fallbackFamily = in __anonc5713b1c0202()
238 std::unique_ptr<FontFamily> newFallbackFamily( in __anonc5713b1c0202()
239 new FontFamily(self->fCurrentFamily->fBasePath, true)); in __anonc5713b1c0202()
273 FontFamily* family = new FontFamily(self->fBasePath, true); in __anonc5713b1c0602()
317 static FontFamily* find_family(FamilyData* self, const SkString& familyName) { in find_family()
319 FontFamily* candidate = self->fFamilies[i]; in find_family()
358 FontFamily* targetFamily = find_family(self, to); in __anonc5713b1c0902()
[all …]
DSkFontMgr_android_parser.h87 struct FontFamily { struct
88 FontFamily(const SkString& basePath, bool isFallbackFont) in FontFamily() argument
98 SkTHashMap<SkString, std::unique_ptr<FontFamily>> fallbackFamilies; argument
109 void GetSystemFontFamilies(SkTDArray<FontFamily*>& fontFamilies); argument
112 void GetCustomFontFamilies(SkTDArray<FontFamily*>& fontFamilies,
DSkFontMgr_android.cpp175 explicit SkFontStyleSet_Android(const FontFamily& family, const Scanner& scanner, in SkFontStyleSet_Android()
294 SkTDArray<FontFamily*> families; in SkFontMgr_Android()
528 void addFamily(FontFamily& family, const bool isolated, int familyIndex) { in addFamily()
550 void buildNameToFamilyMap(SkTDArray<FontFamily*> families, const bool isolated) { in buildNameToFamilyMap()
552 for (FontFamily* family : families) { in buildNameToFamilyMap()
555 (SkString, std::unique_ptr<FontFamily>* fallbackFamily) { in buildNameToFamilyMap()
/external/skia/src/ports/
DSkFontMgr_android_parser.cpp90 FamilyData(XML_Parser parser, SkTDArray<FontFamily*>& families, in FamilyData()
107 SkTDArray<FontFamily*>& fFamilies; // The array to append families, owned by caller
108 std::unique_ptr<FontFamily> fCurrentFamily; // The family being created, owned by this
237 std::unique_ptr<FontFamily>* fallbackFamily = in __anon22f31de50202()
240 std::unique_ptr<FontFamily> newFallbackFamily( in __anon22f31de50202()
241 new FontFamily(self->fCurrentFamily->fBasePath, true)); in __anon22f31de50202()
275 FontFamily* family = new FontFamily(self->fBasePath, true); in __anon22f31de50602()
319 static FontFamily* find_family(FamilyData* self, const SkString& familyName) { in find_family()
321 FontFamily* candidate = self->fFamilies[i]; in find_family()
360 FontFamily* targetFamily = find_family(self, to); in __anon22f31de50902()
[all …]
DSkFontMgr_android_parser.h87 struct FontFamily { struct
88 FontFamily(const SkString& basePath, bool isFallbackFont) in FontFamily() argument
98 SkTHashMap<SkString, std::unique_ptr<FontFamily>> fallbackFamilies; argument
109 void GetSystemFontFamilies(SkTDArray<FontFamily*>& fontFamilies); argument
112 void GetCustomFontFamilies(SkTDArray<FontFamily*>& fontFamilies,
DSkFontMgr_android.cpp173 explicit SkFontStyleSet_Android(const FontFamily& family, const Scanner& scanner, in SkFontStyleSet_Android()
292 SkTDArray<FontFamily*> families; in SkFontMgr_Android()
513 void addFamily(FontFamily& family, const bool isolated, int familyIndex) { in addFamily()
535 void buildNameToFamilyMap(SkTDArray<FontFamily*> families, const bool isolated) { in buildNameToFamilyMap()
537 for (FontFamily* family : families) { in buildNameToFamilyMap()
/external/skqp/tests/
DFontMgrAndroidParserTest.cpp25 int CountFallbacks(SkTDArray<FontFamily*> fontFamilies) { in CountFallbacks()
45 static void ValidateLoadedFonts(SkTDArray<FontFamily*> fontFamilies, const char* firstExpectedFile, in ValidateLoadedFonts()
68 FontFamily& family = *fontFamilies[i]; in ValidateLoadedFonts()
78 static void DumpFiles(const FontFamily& fontFamily) { in DumpFiles()
94 static void DumpLoadedFonts(SkTDArray<FontFamily*> fontFamilies, const char* label) { in DumpLoadedFonts()
120 [](SkString, std::unique_ptr<FontFamily>* fallbackFamily) { in DumpLoadedFonts()
181 SkTDArray<FontFamily*> preV17FontFamilies; in DEF_TEST()
199 SkTDArray<FontFamily*> v17FontFamilies; in DEF_TEST()
218 SkTDArray<FontFamily*> v22FontFamilies; in DEF_TEST()
/external/rust/crates/plotters/src/style/
Dtext.rs2 use super::font::{FontDesc, FontError, FontFamily, FontStyle, FontTransform};
35 impl<'a> IntoTextStyle<'a> for FontFamily<'a> { implementation
47 impl<'a, T: SizeDesc> IntoTextStyle<'a> for (FontFamily<'a>, T) { implementation
59 impl<'a, T: SizeDesc> IntoTextStyle<'a> for (FontFamily<'a>, T, FontStyle) { implementation
167 fn family(&self) -> FontFamily { in family() argument
Dmod.rs17 FontDesc, FontError, FontFamily, FontResult, FontStyle, FontTransform, IntoFont, LayoutBox,
/external/skia/tests/
DFontMgrAndroidParserTest.cpp26 int CountFallbacks(SkTDArray<FontFamily*> fontFamilies) { in CountFallbacks()
46 static void ValidateLoadedFonts(SkTDArray<FontFamily*> fontFamilies, const char* firstExpectedFile, in ValidateLoadedFonts()
69 FontFamily& family = *fontFamilies[i]; in ValidateLoadedFonts()
79 static void DumpFiles(const FontFamily& fontFamily) { in DumpFiles()
95 static void DumpLoadedFonts(SkTDArray<FontFamily*> fontFamilies, const char* label) { in DumpLoadedFonts()
180 SkTDArray<FontFamily*> preV17FontFamilies; in DEF_TEST()
198 SkTDArray<FontFamily*> v17FontFamilies; in DEF_TEST()
217 SkTDArray<FontFamily*> v22FontFamilies; in DEF_TEST()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowFontFamily.java7 import android.graphics.FontFamily;
12 @Implements(value = FontFamily.class, minSdk = LOLLIPOP, isInAndroidSdk = false)
DShadowSystemFonts.java22 ArrayMap<String, android.graphics.fonts.FontFamily[]> fallbackMap, in buildSystemFallback()
DShadowTypeface.java13 import android.graphics.FontFamily;
130 ArrayMap<String, Typeface> fontMap, ArrayMap<String, FontFamily[]> fallbackMap) { in buildSystemFallback()
/external/pdfium/testing/resources/pixel/
Dbug_1388_2.in54 /FontFamily (Times New Roman)
Dbug_1388_3.in55 /FontFamily (PDFium1388_3)
/external/rust/crates/criterion/src/plot/plotters_backend/
Dmod.rs11 static DEFAULT_FONT: FontFamily = FontFamily::SansSerif;
/external/pdfium/testing/resources/
Dfont_weight.in75 /FontFamily (Times New Roman)
/external/rust/crates/plotters/src/
Dlib.rs744 AsRelative, Color, FontDesc, FontFamily, FontStyle, FontTransform, HSLColor, IntoFont,
/external/rust/crates/plotters/src/chart/
Dmesh.rs9 AsRelative, Color, FontDesc, FontFamily, FontStyle, IntoTextStyle, RGBColor, ShapeStyle,
407 FontFamily::SansSerif, in draw()

12