/external/rust/crates/plotters/src/style/font/ |
D | font_desc.rs | 17 pub struct FontDesc<'a> { struct 25 impl<'a> From<&'a str> for FontDesc<'a> { argument 26 fn from(from: &'a str) -> FontDesc<'a> { in from() 27 FontDesc::new(from.into(), 1.0, FontStyle::Normal) in from() 31 impl<'a> From<FontFamily<'a>> for FontDesc<'a> { implementation 32 fn from(family: FontFamily<'a>) -> FontDesc<'a> { in from() 33 FontDesc::new(family, 1.0, FontStyle::Normal) in from() 37 impl<'a, T: Into<f64>> From<(FontFamily<'a>, T)> for FontDesc<'a> { implementation 38 fn from((family, size): (FontFamily<'a>, T)) -> FontDesc<'a> { in from() 39 FontDesc::new(family, size.into(), FontStyle::Normal) in from() [all …]
|
/external/pdfium/core/fxge/ |
D | cfx_fontmgr.cpp | 71 CFX_FontMgr::FontDesc::FontDesc(std::unique_ptr<uint8_t, FxFreeDeleter> pData, in FontDesc() function in CFX_FontMgr::FontDesc 75 CFX_FontMgr::FontDesc::~FontDesc() = default; 77 void CFX_FontMgr::FontDesc::SetFace(size_t index, CFX_Face* face) { in SetFace() 82 CFX_Face* CFX_FontMgr::FontDesc::GetFace(size_t index) const { in GetFace() 111 RetainPtr<CFX_FontMgr::FontDesc> CFX_FontMgr::GetCachedFontDesc( in GetCachedFontDesc() 119 RetainPtr<CFX_FontMgr::FontDesc> CFX_FontMgr::AddCachedFontDesc( in AddCachedFontDesc() 125 auto pFontDesc = pdfium::MakeRetain<FontDesc>(std::move(pData), size); in AddCachedFontDesc() 130 RetainPtr<CFX_FontMgr::FontDesc> CFX_FontMgr::GetCachedTTCFontDesc( in GetCachedTTCFontDesc() 137 RetainPtr<CFX_FontMgr::FontDesc> CFX_FontMgr::AddCachedTTCFontDesc( in AddCachedTTCFontDesc() 142 auto pNewDesc = pdfium::MakeRetain<FontDesc>(std::move(pData), size); in AddCachedTTCFontDesc() [all …]
|
D | cfx_fontmgr.h | 28 class FontDesc final : public Retainable, public Observable { 33 ~FontDesc() override; 42 FontDesc(std::unique_ptr<uint8_t, FxFreeDeleter> pData, size_t size); 54 RetainPtr<FontDesc> GetCachedFontDesc(const ByteString& face_name, 57 RetainPtr<FontDesc> AddCachedFontDesc( 64 RetainPtr<FontDesc> GetCachedTTCFontDesc(int ttc_size, uint32_t checksum); 65 RetainPtr<FontDesc> AddCachedTTCFontDesc( 71 RetainPtr<CFX_Face> NewFixedFace(const RetainPtr<FontDesc>& pDesc, 97 std::map<ByteString, ObservedPtr<FontDesc>> m_FaceMap;
|
D | cfx_fontmapper.cpp | 710 RetainPtr<CFX_FontMgr::FontDesc> pFontDesc = in GetCachedTTCFace() 741 RetainPtr<CFX_FontMgr::FontDesc> pFontDesc = in GetCachedFace()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowTypeface.java | 33 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/rust/crates/plotters/src/style/ |
D | text.rs | 2 use super::font::{FontDesc, FontError, FontFamily, FontStyle, FontTransform}; 12 pub font: FontDesc<'a>, 23 impl<'a> IntoTextStyle<'a> for FontDesc<'a> { implementation 55 Into::<FontDesc>::into((self.0, self.1.in_pixels(parent), self.2)).into() in into_text_style() 61 Into::<FontDesc>::into((self.0, self.1.in_pixels(parent), self.2)).into() in into_text_style() 130 impl<'a, T: Into<FontDesc<'a>>> From<T> for TextStyle<'a> {
|
D | mod.rs | 17 FontDesc, FontError, FontFamily, FontResult, FontStyle, FontTransform, IntoFont, LayoutBox,
|
/external/skqp/tools/fonts/ |
D | create_test_font.cpp | 35 struct FontDesc { struct 44 SkSpan<const FontDesc> const fFonts; 287 static SkString identifier(const FontFamilyDesc& family, const FontDesc& font) { in identifier() 297 for (const FontDesc& font : family.fFonts) { in generate_fonts() 318 const FontDesc* defaultFont) in generate_index() 323 for (const FontDesc& font : family.fFonts) { in generate_index() 351 for (const FontDesc& font : family.fFonts) { in generate_index() 366 for (const FontDesc& font : family.fFonts) { in generate_index() 387 static constexpr FontDesc kMonoFonts[] = { in main() 394 static constexpr FontDesc kSansFonts[] = { in main() [all …]
|
/external/skia/tools/fonts/ |
D | create_test_font.cpp | 35 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/element/ |
D | text.rs | 5 use crate::style::{FontDesc, FontResult, LayoutBox, TextStyle}; 122 font: FontDesc<'a>, in layout_multiline_text()
|
/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, 406 let default_label_font = FontDesc::new( in draw()
|
/external/rust/crates/plotters/ |
D | CHANGELOG.md | 222 - Font is now support rotation transformation. Use `FontDesc::transform` to apply an rotation to tr…
|