/external/skia/src/pdf/ |
D | SkPDFFont.h | 45 SkAdvancedTypefaceMetrics::FontType getType() const { return fFontType; } in getType() 47 static SkAdvancedTypefaceMetrics::FontType FontType(const SkAdvancedTypefaceMetrics&); 50 static bool IsMultiByte(SkAdvancedTypefaceMetrics::FontType type) { in IsMultiByte() 51 return type == SkAdvancedTypefaceMetrics::kType1CID_Font || in IsMultiByte() 52 type == SkAdvancedTypefaceMetrics::kTrueType_Font; in IsMultiByte() 98 static const SkAdvancedTypefaceMetrics* GetMetrics(const SkTypeface* typeface, 105 const SkAdvancedTypefaceMetrics&, 126 SkAdvancedTypefaceMetrics::FontType fFontType = (SkAdvancedTypefaceMetrics::FontType)(-1); 131 SkAdvancedTypefaceMetrics::FontType fontType,
|
D | SkPDFFont.cpp | 102 static bool can_embed(const SkAdvancedTypefaceMetrics& metrics) { in can_embed() 103 return !SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag); in can_embed() 106 const SkAdvancedTypefaceMetrics* SkPDFFont::GetMetrics(const SkTypeface* typeface, in GetMetrics() 110 if (std::unique_ptr<SkAdvancedTypefaceMetrics>* ptr = canon->fTypefaceMetrics.find(id)) { in GetMetrics() 119 std::unique_ptr<SkAdvancedTypefaceMetrics> metrics = typeface->getAdvancedMetrics(); in GetMetrics() 121 metrics = std::make_unique<SkAdvancedTypefaceMetrics>(); in GetMetrics() 169 SkAdvancedTypefaceMetrics::FontType SkPDFFont::FontType(const SkAdvancedTypefaceMetrics& metrics) { in FontType() 170 if (SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kVariable_FontFlag) || in FontType() 171 SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag)) { in FontType() 173 return SkAdvancedTypefaceMetrics::kOther_Font; in FontType() [all …]
|
D | SkPDFType1Font.cpp | 219 inline static bool can_embed(const SkAdvancedTypefaceMetrics& metrics) { in can_embed() 220 return !SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag); in can_embed() 229 const SkAdvancedTypefaceMetrics* info) { in make_type1_font_descriptor() 276 const SkAdvancedTypefaceMetrics* info = SkPDFFont::GetMetrics(typeface, doc); in type1_font_descriptor() 292 if (const SkAdvancedTypefaceMetrics* info = SkPDFFont::GetMetrics(typeface, doc)) { in SkPDFEmitType1Font()
|
/external/skqp/src/pdf/ |
D | SkPDFFont.h | 39 SkAdvancedTypefaceMetrics::FontType getType() const { return fFontType; } in getType() 41 static SkAdvancedTypefaceMetrics::FontType FontType(const SkAdvancedTypefaceMetrics&); 44 static bool IsMultiByte(SkAdvancedTypefaceMetrics::FontType type) { in IsMultiByte() 45 return type == SkAdvancedTypefaceMetrics::kType1CID_Font || in IsMultiByte() 46 type == SkAdvancedTypefaceMetrics::kTrueType_Font; in IsMultiByte() 95 static const SkAdvancedTypefaceMetrics* GetMetrics(const SkTypeface* typeface, 118 SkAdvancedTypefaceMetrics::FontType fFontType = (SkAdvancedTypefaceMetrics::FontType)(-1); 123 SkAdvancedTypefaceMetrics::FontType fontType,
|
D | SkPDFFont.cpp | 103 static bool can_embed(const SkAdvancedTypefaceMetrics& metrics) { in can_embed() 104 return !SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag); in can_embed() 107 const SkAdvancedTypefaceMetrics* SkPDFFont::GetMetrics(const SkTypeface* typeface, in GetMetrics() 111 if (std::unique_ptr<SkAdvancedTypefaceMetrics>* ptr = canon->fTypefaceMetrics.find(id)) { in GetMetrics() 120 std::unique_ptr<SkAdvancedTypefaceMetrics> metrics = typeface->getAdvancedMetrics(); in GetMetrics() 122 metrics = skstd::make_unique<SkAdvancedTypefaceMetrics>(); in GetMetrics() 170 SkAdvancedTypefaceMetrics::FontType SkPDFFont::FontType(const SkAdvancedTypefaceMetrics& metrics) { in FontType() 171 if (SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kMultiMaster_FontFlag) || in FontType() 172 SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag)) { in FontType() 174 return SkAdvancedTypefaceMetrics::kOther_Font; in FontType() [all …]
|
D | SkPDFDocumentPriv.h | 25 struct SkAdvancedTypefaceMetrics; 103 SkTHashMap<uint32_t, std::unique_ptr<SkAdvancedTypefaceMetrics>> fTypefaceMetrics;
|
/external/skia/src/core/ |
D | SkAdvancedTypefaceMetrics.h | 21 struct SkAdvancedTypefaceMetrics { struct 69 template <> struct is_bitmask_enum<SkAdvancedTypefaceMetrics::FontFlags> : std::true_type {}; argument 70 template <> struct is_bitmask_enum<SkAdvancedTypefaceMetrics::StyleFlags> : std::true_type {};
|
D | SkTypeface.cpp | 49 std::unique_ptr<SkAdvancedTypefaceMetrics> onGetAdvancedMetrics() const override { in onGetAdvancedMetrics() 354 std::unique_ptr<SkAdvancedTypefaceMetrics> SkTypeface::getAdvancedMetrics() const { in getAdvancedMetrics() 355 std::unique_ptr<SkAdvancedTypefaceMetrics> result = this->onGetAdvancedMetrics(); in getAdvancedMetrics() 359 if (result && result->fType == SkAdvancedTypefaceMetrics::kTrueType_Font) { in getAdvancedMetrics() 365 result->fFlags |= SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag; in getAdvancedMetrics() 368 result->fFlags |= SkAdvancedTypefaceMetrics::kNotSubsettable_FontFlag; in getAdvancedMetrics() 426 std::unique_ptr<SkAdvancedTypefaceMetrics> SkTypeface::onGetAdvancedMetrics() const { in onGetAdvancedMetrics()
|
/external/skqp/src/core/ |
D | SkAdvancedTypefaceMetrics.h | 21 struct SkAdvancedTypefaceMetrics { struct 69 template <> struct is_bitmask_enum<SkAdvancedTypefaceMetrics::FontFlags> : std::true_type {}; argument 70 template <> struct is_bitmask_enum<SkAdvancedTypefaceMetrics::StyleFlags> : std::true_type {};
|
D | SkTypeface.cpp | 56 std::unique_ptr<SkAdvancedTypefaceMetrics> onGetAdvancedMetrics() const override { in onGetAdvancedMetrics() 343 std::unique_ptr<SkAdvancedTypefaceMetrics> SkTypeface::getAdvancedMetrics() const { in getAdvancedMetrics() 344 std::unique_ptr<SkAdvancedTypefaceMetrics> result = this->onGetAdvancedMetrics(); in getAdvancedMetrics() 348 if (result && result->fType == SkAdvancedTypefaceMetrics::kTrueType_Font) { in getAdvancedMetrics() 354 result->fFlags |= SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag; in getAdvancedMetrics() 357 result->fFlags |= SkAdvancedTypefaceMetrics::kNotSubsettable_FontFlag; in getAdvancedMetrics() 424 std::unique_ptr<SkAdvancedTypefaceMetrics> SkTypeface::onGetAdvancedMetrics() const { in onGetAdvancedMetrics()
|
/external/skia/src/ports/ |
D | SkTypeface_win_dw.cpp | 456 std::unique_ptr<SkAdvancedTypefaceMetrics> DWriteFontTypeface::onGetAdvancedMetrics() const { in onGetAdvancedMetrics() 458 std::unique_ptr<SkAdvancedTypefaceMetrics> info(nullptr); in onGetAdvancedMetrics() 463 info.reset(new SkAdvancedTypefaceMetrics); in onGetAdvancedMetrics() 503 info->fType = SkAdvancedTypefaceMetrics::kTrueType_Font; in onGetAdvancedMetrics() 520 info->fFlags |= SkAdvancedTypefaceMetrics::kVariable_FontFlag; in onGetAdvancedMetrics() 529 info->fStyle |= SkAdvancedTypefaceMetrics::kFixedPitch_Style; in onGetAdvancedMetrics() 533 info->fStyle |= SkAdvancedTypefaceMetrics::kItalic_Style; in onGetAdvancedMetrics() 549 info->fStyle |= SkAdvancedTypefaceMetrics::kSerif_Style; in onGetAdvancedMetrics() 553 info->fStyle |= SkAdvancedTypefaceMetrics::kScript_Style; in onGetAdvancedMetrics()
|
D | SkFontHost_FreeType.cpp | 591 static SkAdvancedTypefaceMetrics::FontType get_font_type(FT_Face face) { in get_font_type() 593 static struct { const char* s; SkAdvancedTypefaceMetrics::FontType t; } values[] = { in get_font_type() 594 { "Type 1", SkAdvancedTypefaceMetrics::kType1_Font }, in get_font_type() 595 { "CID Type 1", SkAdvancedTypefaceMetrics::kType1CID_Font }, in get_font_type() 596 { "CFF", SkAdvancedTypefaceMetrics::kCFF_Font }, in get_font_type() 597 { "TrueType", SkAdvancedTypefaceMetrics::kTrueType_Font }, in get_font_type() 600 return SkAdvancedTypefaceMetrics::kOther_Font; in get_font_type() 603 std::unique_ptr<SkAdvancedTypefaceMetrics> SkTypeface_FreeType::onGetAdvancedMetrics() const { in onGetAdvancedMetrics() 610 std::unique_ptr<SkAdvancedTypefaceMetrics> info(new SkAdvancedTypefaceMetrics); in onGetAdvancedMetrics() 615 info->fFlags |= SkAdvancedTypefaceMetrics::kVariable_FontFlag; in onGetAdvancedMetrics() [all …]
|
D | SkTypeface_mac_ct.h | 43 struct SkAdvancedTypefaceMetrics; 110 std::unique_ptr<SkAdvancedTypefaceMetrics> onGetAdvancedMetrics() const override;
|
/external/skqp/src/ports/ |
D | SkTypeface_win_dw.cpp | 464 std::unique_ptr<SkAdvancedTypefaceMetrics> DWriteFontTypeface::onGetAdvancedMetrics() const { in onGetAdvancedMetrics() 466 std::unique_ptr<SkAdvancedTypefaceMetrics> info(nullptr); in onGetAdvancedMetrics() 471 info.reset(new SkAdvancedTypefaceMetrics); in onGetAdvancedMetrics() 511 info->fType = SkAdvancedTypefaceMetrics::kTrueType_Font; in onGetAdvancedMetrics() 528 info->fFlags |= SkAdvancedTypefaceMetrics::kMultiMaster_FontFlag; in onGetAdvancedMetrics() 537 info->fStyle |= SkAdvancedTypefaceMetrics::kFixedPitch_Style; in onGetAdvancedMetrics() 541 info->fStyle |= SkAdvancedTypefaceMetrics::kItalic_Style; in onGetAdvancedMetrics() 557 info->fStyle |= SkAdvancedTypefaceMetrics::kSerif_Style; in onGetAdvancedMetrics() 561 info->fStyle |= SkAdvancedTypefaceMetrics::kScript_Style; in onGetAdvancedMetrics()
|
D | SkFontHost_FreeType.cpp | 555 static SkAdvancedTypefaceMetrics::FontType get_font_type(FT_Face face) { in get_font_type() 557 static struct { const char* s; SkAdvancedTypefaceMetrics::FontType t; } values[] = { in get_font_type() 558 { "Type 1", SkAdvancedTypefaceMetrics::kType1_Font }, in get_font_type() 559 { "CID Type 1", SkAdvancedTypefaceMetrics::kType1CID_Font }, in get_font_type() 560 { "CFF", SkAdvancedTypefaceMetrics::kCFF_Font }, in get_font_type() 561 { "TrueType", SkAdvancedTypefaceMetrics::kTrueType_Font }, in get_font_type() 564 return SkAdvancedTypefaceMetrics::kOther_Font; in get_font_type() 567 std::unique_ptr<SkAdvancedTypefaceMetrics> SkTypeface_FreeType::onGetAdvancedMetrics() const { in onGetAdvancedMetrics() 574 std::unique_ptr<SkAdvancedTypefaceMetrics> info(new SkAdvancedTypefaceMetrics); in onGetAdvancedMetrics() 579 info->fFlags |= SkAdvancedTypefaceMetrics::kMultiMaster_FontFlag; in onGetAdvancedMetrics() [all …]
|
/external/skia/src/sfnt/ |
D | SkOTUtils.h | 18 struct SkAdvancedTypefaceMetrics; 102 SkAdvancedTypefaceMetrics* info);
|
/external/skqp/src/sfnt/ |
D | SkOTUtils.h | 18 struct SkAdvancedTypefaceMetrics; 102 SkAdvancedTypefaceMetrics* info);
|
/external/skia/tools/fonts/ |
D | TestTypeface.cpp | 120 std::unique_ptr<SkAdvancedTypefaceMetrics> TestTypeface::onGetAdvancedMetrics() const { // pdf only in onGetAdvancedMetrics() 121 std::unique_ptr<SkAdvancedTypefaceMetrics>info(new SkAdvancedTypefaceMetrics); in onGetAdvancedMetrics()
|
D | TestTypeface.h | 32 struct SkAdvancedTypefaceMetrics; 77 std::unique_ptr<SkAdvancedTypefaceMetrics> onGetAdvancedMetrics() const override;
|
D | TestSVGTypeface.h | 39 struct SkAdvancedTypefaceMetrics; 87 std::unique_ptr<SkAdvancedTypefaceMetrics> onGetAdvancedMetrics() const override;
|
/external/skia/include/core/ |
D | SkTypeface.h | 28 struct SkAdvancedTypefaceMetrics; 364 virtual std::unique_ptr<SkAdvancedTypefaceMetrics> onGetAdvancedMetrics() const = 0; 413 std::unique_ptr<SkAdvancedTypefaceMetrics> getAdvancedMetrics() const;
|
/external/skqp/include/core/ |
D | SkTypeface.h | 28 struct SkAdvancedTypefaceMetrics; 372 virtual std::unique_ptr<SkAdvancedTypefaceMetrics> onGetAdvancedMetrics() const; 422 std::unique_ptr<SkAdvancedTypefaceMetrics> getAdvancedMetrics() const;
|
/external/skqp/tools/fonts/ |
D | SkTestTypeface.h | 31 struct SkAdvancedTypefaceMetrics; 75 std::unique_ptr<SkAdvancedTypefaceMetrics> onGetAdvancedMetrics() const override;
|
D | SkTestTypeface.cpp | 132 std::unique_ptr<SkAdvancedTypefaceMetrics> SkTestTypeface::onGetAdvancedMetrics() const { // pdf on… in onGetAdvancedMetrics() 133 std::unique_ptr<SkAdvancedTypefaceMetrics> info(new SkAdvancedTypefaceMetrics); in onGetAdvancedMetrics()
|
D | SkTestSVGTypeface.h | 36 struct SkAdvancedTypefaceMetrics; 82 std::unique_ptr<SkAdvancedTypefaceMetrics> onGetAdvancedMetrics() const override;
|