Flutter Engine
The Flutter Engine
|
#include <SkPDFFont.h>
Public Member Functions | |
~SkPDFFont () | |
SkPDFFont (SkPDFFont &&) | |
SkPDFFont & | operator= (SkPDFFont &&) |
SkTypeface * | typeface () const |
SkAdvancedTypefaceMetrics::FontType | getType () const |
bool | multiByteGlyphs () const |
bool | hasGlyph (SkGlyphID gid) |
SkGlyphID | glyphToPDFFontEncoding (SkGlyphID gid) const |
void | noteGlyphUsage (SkGlyphID glyph) |
SkPDFIndirectReference | indirectReference () const |
void | emitSubset (SkPDFDocument *) const |
SkGlyphID | firstGlyphID () const |
SkGlyphID | lastGlyphID () const |
const SkPDFGlyphUse & | glyphUsage () const |
sk_sp< SkTypeface > | refTypeface () const |
Static Public Member Functions | |
static SkAdvancedTypefaceMetrics::FontType | FontType (const SkTypeface &, const SkAdvancedTypefaceMetrics &) |
static void | GetType1GlyphNames (const SkTypeface &, SkString *) |
static bool | IsMultiByte (SkAdvancedTypefaceMetrics::FontType type) |
static SkPDFFont * | GetFontResource (SkPDFDocument *doc, const SkGlyph *glyphs, SkTypeface *typeface) |
static const SkAdvancedTypefaceMetrics * | GetMetrics (const SkTypeface *typeface, SkPDFDocument *canon) |
static const std::vector< SkUnichar > & | GetUnicodeMap (const SkTypeface *typeface, SkPDFDocument *canon) |
static void | PopulateCommonFontDescriptor (SkPDFDict *descriptor, const SkAdvancedTypefaceMetrics &, uint16_t emSize, int16_t defaultWidth) |
static bool | CanEmbedTypeface (SkTypeface *, SkPDFDocument *) |
A PDF Object class representing a font. The font may have resources attached to it in order to embed the font. SkPDFFonts are canonicalized so that resource deduplication will only include one copy of a font. This class uses the same pattern as SkPDFGraphicState, a static weak reference to each instantiated class.
Definition at line 30 of file SkPDFFont.h.
|
default |
|
default |
|
static |
Return false iff the typeface has its NotEmbeddable flag set. typeface is not nullptr
Definition at line 753 of file SkPDFFont.cpp.
void SkPDFFont::emitSubset | ( | SkPDFDocument * | doc | ) | const |
Definition at line 736 of file SkPDFFont.cpp.
|
inline |
Definition at line 118 of file SkPDFFont.h.
|
static |
Definition at line 173 of file SkPDFFont.cpp.
|
static |
Get the font resource for the passed typeface and glyphID. The reference count of the object is incremented and it is the caller's responsibility to unreference it when done. This is needed to accommodate the weak reference pattern used when the returned object is new and has no other references.
typeface | The typeface to find, not nullptr. |
glyphID | Specify which section of a large font is of interest. |
Definition at line 198 of file SkPDFFont.cpp.
|
static |
Gets SkAdvancedTypefaceMetrics, and caches the result.
typeface | can not be nullptr. |
Definition at line 108 of file SkPDFFont.cpp.
|
inline |
Returns the font type represented in this font. For Type0 fonts, returns the type of the descendant font.
Definition at line 44 of file SkPDFFont.h.
|
static |
Definition at line 53 of file SkPDFFont.cpp.
|
static |
Definition at line 160 of file SkPDFFont.cpp.
Convert the input glyph ID into the font encoding.
Definition at line 67 of file SkPDFFont.h.
|
inline |
Definition at line 120 of file SkPDFFont.h.
|
inline |
Return true if this font has an encoding for the passed glyph id.
Definition at line 62 of file SkPDFFont.h.
|
inline |
Definition at line 81 of file SkPDFFont.h.
|
inlinestatic |
Definition at line 50 of file SkPDFFont.h.
|
inline |
Definition at line 119 of file SkPDFFont.h.
|
inline |
Returns true if this font encoding supports glyph IDs above 255.
Definition at line 58 of file SkPDFFont.h.
|
inline |
Definition at line 76 of file SkPDFFont.h.
|
static |
Definition at line 255 of file SkPDFFont.cpp.
|
inline |
Definition at line 121 of file SkPDFFont.h.
|
inline |
Returns the typeface represented by this class. Returns nullptr for the default typeface.
Definition at line 39 of file SkPDFFont.h.