Home
last modified time | relevance | path

Searched refs:FontDesc (Results 1 – 14 of 14) sorted by relevance

/external/rust/crates/plotters/src/style/font/
Dfont_desc.rs17 pub struct FontDesc<'a> { struct
25 impl<'a> FontDesc<'a> { argument
174 impl<'a> From<&'a str> for FontDesc<'a> { implementation
175 fn from(from: &'a str) -> FontDesc<'a> { in from()
176 FontDesc::new(from.into(), 12.0, FontStyle::Normal) in from()
180 impl<'a> From<FontFamily<'a>> for FontDesc<'a> { implementation
181 fn from(family: FontFamily<'a>) -> FontDesc<'a> { in from()
182 FontDesc::new(family, 12.0, FontStyle::Normal) in from()
186 impl<'a, T: Into<f64>> From<(FontFamily<'a>, T)> for FontDesc<'a> { implementation
187 fn from((family, size): (FontFamily<'a>, T)) -> FontDesc<'a> { in from()
[all …]
/external/pdfium/core/fxge/
Dcfx_fontmgr.h29 class FontDesc final : public Retainable, public Observable {
32 ~FontDesc() override;
39 explicit FontDesc(FixedUninitDataVector<uint8_t> data);
53 RetainPtr<FontDesc> GetCachedFontDesc(const ByteString& face_name,
56 RetainPtr<FontDesc> AddCachedFontDesc(const ByteString& face_name,
61 RetainPtr<FontDesc> GetCachedTTCFontDesc(size_t ttc_size, uint32_t checksum);
62 RetainPtr<FontDesc> AddCachedTTCFontDesc(size_t ttc_size,
66 RetainPtr<CFX_Face> NewFixedFace(RetainPtr<FontDesc> pDesc,
83 std::map<std::tuple<ByteString, int, bool>, ObservedPtr<FontDesc>> m_FaceMap;
84 std::map<std::tuple<size_t, uint32_t>, ObservedPtr<FontDesc>> m_TTCFaceMap;
Dcfx_fontmgr.cpp58 CFX_FontMgr::FontDesc::FontDesc(FixedUninitDataVector<uint8_t> data) in FontDesc() function in CFX_FontMgr::FontDesc
61 CFX_FontMgr::FontDesc::~FontDesc() = default;
63 void CFX_FontMgr::FontDesc::SetFace(size_t index, CFX_Face* face) { in SetFace()
68 CFX_Face* CFX_FontMgr::FontDesc::GetFace(size_t index) const { in GetFace()
81 RetainPtr<CFX_FontMgr::FontDesc> CFX_FontMgr::GetCachedFontDesc( in GetCachedFontDesc()
89 RetainPtr<CFX_FontMgr::FontDesc> CFX_FontMgr::AddCachedFontDesc( in AddCachedFontDesc()
94 auto pFontDesc = pdfium::MakeRetain<FontDesc>(std::move(data)); in AddCachedFontDesc()
99 RetainPtr<CFX_FontMgr::FontDesc> CFX_FontMgr::GetCachedTTCFontDesc( in GetCachedTTCFontDesc()
107 RetainPtr<CFX_FontMgr::FontDesc> CFX_FontMgr::AddCachedTTCFontDesc( in AddCachedTTCFontDesc()
111 auto pNewDesc = pdfium::MakeRetain<FontDesc>(std::move(data)); in AddCachedTTCFontDesc()
[all …]
Dcfx_fontmapper.cpp824 RetainPtr<CFX_FontMgr::FontDesc> pFontDesc = in GetCachedTTCFace()
857 RetainPtr<CFX_FontMgr::FontDesc> pFontDesc = in GetCachedFace()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowTypeface.java16 public abstract FontDesc getFontDescription(); in getFontDescription()
19 public static class FontDesc { class in ShadowTypeface
23 public FontDesc(String familyName, int style) { in FontDesc() method in ShadowTypeface.FontDesc
33 if (!(o instanceof FontDesc)) { in equals()
37 FontDesc fontDesc = (FontDesc) o; in equals()
DShadowLegacyTypeface.java45 private static final Map<Long, FontDesc> FONTS = Collections.synchronizedMap(new HashMap<>());
47 private FontDesc description;
216 FONTS.put(thisFontId, new FontDesc(familyName, style)); in createUnderlyingTypeface()
226 private static synchronized FontDesc findById(long fontId) { in findById()
237 FONTS.put(thisFontId, new FontDesc(null, weight)); in nativeCreateFromArray()
247 public FontDesc getFontDescription() { in getFontDescription()
DShadowNativeTypeface.java242 public FontDesc getFontDescription() { in getFontDescription()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowTypeface.java33 private static Map<Long, FontDesc> FONTS = new HashMap<>();
35 private FontDesc description;
157 FONTS.put(thisFontId, new FontDesc(familyName, style)); in createUnderlyingTypeface()
165 private synchronized static FontDesc findById(long fontId) { in findById()
177 public FontDesc getFontDescription() { in getFontDescription()
181 public static class FontDesc { class in ShadowTypeface
185 public FontDesc(String familyName, int style) { in FontDesc() method in ShadowTypeface.FontDesc
195 FontDesc fontDesc = (FontDesc) o; in equals()
/external/skia/tools/fonts/
Dcreate_test_font.cpp35 struct FontDesc { struct
44 SkSpan<const FontDesc> const fFonts;
284 static SkString identifier(const FontFamilyDesc& family, const FontDesc& font) { in identifier()
294 for (const FontDesc& font : family.fFonts) { in generate_fonts()
315 const FontDesc* defaultFont) in generate_index()
320 for (const FontDesc& font : family.fFonts) { in generate_index()
348 for (const FontDesc& font : family.fFonts) { in generate_index()
363 for (const FontDesc& font : family.fFonts) { in generate_index()
384 static constexpr FontDesc kMonoFonts[] = { in main()
391 static constexpr FontDesc kSansFonts[] = { in main()
[all …]
/external/rust/crates/plotters/src/style/
Dtext.rs2 use super::font::{FontDesc, FontError, FontFamily, FontStyle, FontTransform};
12 pub font: FontDesc<'a>,
199 impl<'a> IntoTextStyle<'a> for FontDesc<'a> { implementation
274 impl<'a, T: Into<FontDesc<'a>>> From<T> for TextStyle<'a> {
Dmod.rs21 FontDesc, FontError, FontFamily, FontResult, FontStyle, FontTransform, IntoFont, LayoutBox,
/external/rust/crates/plotters/src/element/
Dtext.rs5 use crate::style::{FontDesc, FontResult, LayoutBox, TextStyle};
122 font: FontDesc<'a>, in layout_multiline_text()
/external/rust/crates/plotters/src/
Dlib.rs829 AsRelative, Color, FontDesc, FontFamily, FontStyle, FontTransform, HSLColor, IntoFont,
/external/rust/crates/plotters/src/chart/
Dmesh.rs9 AsRelative, Color, FontDesc, FontFamily, FontStyle, IntoTextStyle, RGBColor, ShapeStyle,
436 let default_label_font = FontDesc::new( in draw()