/external/rust/crates/plotters-backend/src/ |
D | text.rs | 8 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/ |
D | font_desc.rs | 7 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
|
D | ttf.rs | 15 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()
|
D | naive.rs | 1 use super::{FontData, FontFamily, FontStyle, LayoutBox}; 20 fn new(family: FontFamily, style: FontStyle) -> Result<Self, FontError> { in new() argument
|
D | web.rs | 1 use super::{FontData, FontFamily, FontStyle, LayoutBox}; 25 fn new(family: FontFamily, style: FontStyle) -> Result<Self, FontError> { in new() argument
|
D | mod.rs | 31 fn new(family: FontFamily, style: FontStyle) -> Result<Self, Self::ErrorType>; in new() argument
|
/external/skqp/src/ports/ |
D | SkFontMgr_android_parser.cpp | 88 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 …]
|
D | SkFontMgr_android_parser.h | 87 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,
|
D | SkFontMgr_android.cpp | 175 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/ |
D | SkFontMgr_android_parser.cpp | 90 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 …]
|
D | SkFontMgr_android_parser.h | 87 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,
|
D | SkFontMgr_android.cpp | 173 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/ |
D | FontMgrAndroidParserTest.cpp | 25 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/ |
D | text.rs | 2 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
|
D | mod.rs | 17 FontDesc, FontError, FontFamily, FontResult, FontStyle, FontTransform, IntoFont, LayoutBox,
|
/external/skia/tests/ |
D | FontMgrAndroidParserTest.cpp | 26 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/ |
D | ShadowFontFamily.java | 7 import android.graphics.FontFamily; 12 @Implements(value = FontFamily.class, minSdk = LOLLIPOP, isInAndroidSdk = false)
|
D | ShadowSystemFonts.java | 22 ArrayMap<String, android.graphics.fonts.FontFamily[]> fallbackMap, in buildSystemFallback()
|
D | ShadowTypeface.java | 13 import android.graphics.FontFamily; 130 ArrayMap<String, Typeface> fontMap, ArrayMap<String, FontFamily[]> fallbackMap) { in buildSystemFallback()
|
/external/pdfium/testing/resources/pixel/ |
D | bug_1388_2.in | 54 /FontFamily (Times New Roman)
|
D | bug_1388_3.in | 55 /FontFamily (PDFium1388_3)
|
/external/rust/crates/criterion/src/plot/plotters_backend/ |
D | mod.rs | 11 static DEFAULT_FONT: FontFamily = FontFamily::SansSerif;
|
/external/pdfium/testing/resources/ |
D | font_weight.in | 75 /FontFamily (Times New Roman)
|
/external/rust/crates/plotters/src/ |
D | lib.rs | 744 AsRelative, Color, FontDesc, FontFamily, FontStyle, FontTransform, HSLColor, IntoFont,
|
/external/rust/crates/plotters/src/chart/ |
D | mesh.rs | 9 AsRelative, Color, FontDesc, FontFamily, FontStyle, IntoTextStyle, RGBColor, ShapeStyle, 407 FontFamily::SansSerif, in draw()
|