Flutter Engine
The Flutter Engine
Public Types | Public Attributes | List of all members
SkAdvancedTypefaceMetrics Class Reference

#include <SkAdvancedTypefaceMetrics.h>

Public Types

enum  StyleFlags : uint32_t {
  kFixedPitch_Style = 0x00000001 , kSerif_Style = 0x00000002 , kScript_Style = 0x00000008 , kItalic_Style = 0x00000040 ,
  kAllCaps_Style = 0x00010000 , kSmallCaps_Style = 0x00020000 , kForceBold_Style = 0x00040000
}
 
enum  FontType : uint8_t {
  kType1_Font , kType1CID_Font , kCFF_Font , kTrueType_Font ,
  kOther_Font
}
 
enum  FontFlags : uint8_t { kVariable_FontFlag = 1 << 0 , kNotEmbeddable_FontFlag = 1 << 1 , kNotSubsettable_FontFlag = 1 << 2 , kAltDataFormat_FontFlag = 1 << 3 }
 

Public Attributes

SkString fPostScriptName
 
StyleFlags fStyle = (StyleFlags)0
 
FontType fType = kOther_Font
 
FontFlags fFlags = (FontFlags)0
 
int16_t fItalicAngle = 0
 
int16_t fAscent = 0
 
int16_t fDescent = 0
 
int16_t fStemV = 0
 
int16_t fCapHeight = 0
 
SkIRect fBBox = {0, 0, 0, 0}
 

Detailed Description

The SkAdvancedTypefaceMetrics class is used by the PDF backend to correctly embed typefaces. This class is created and filled in with information by SkTypeface::getAdvancedMetrics.

Definition at line 24 of file SkAdvancedTypefaceMetrics.h.

Member Enumeration Documentation

◆ FontFlags

Enumerator
kVariable_FontFlag 

May be true for Type1, CFF, or TrueType fonts.

kNotEmbeddable_FontFlag 

May not be embedded.

kNotSubsettable_FontFlag 

May not be subset.

kAltDataFormat_FontFlag 

Data compressed. Table access may still work.

Definition at line 52 of file SkAdvancedTypefaceMetrics.h.

52 : uint8_t {
53 kVariable_FontFlag = 1 << 0, //!<May be true for Type1, CFF, or TrueType fonts.
54 kNotEmbeddable_FontFlag = 1 << 1, //!<May not be embedded.
55 kNotSubsettable_FontFlag = 1 << 2, //!<May not be subset.
56 kAltDataFormat_FontFlag = 1 << 3, //!<Data compressed. Table access may still work.
57 };
@ kNotEmbeddable_FontFlag
May not be embedded.
@ kAltDataFormat_FontFlag
Data compressed. Table access may still work.
@ kNotSubsettable_FontFlag
May not be subset.
@ kVariable_FontFlag
May be true for Type1, CFF, or TrueType fonts.

◆ FontType

Enumerator
kType1_Font 
kType1CID_Font 
kCFF_Font 
kTrueType_Font 
kOther_Font 

Definition at line 40 of file SkAdvancedTypefaceMetrics.h.

◆ StyleFlags

Enumerator
kFixedPitch_Style 
kSerif_Style 
kScript_Style 
kItalic_Style 
kAllCaps_Style 
kSmallCaps_Style 
kForceBold_Style 

Definition at line 29 of file SkAdvancedTypefaceMetrics.h.

Member Data Documentation

◆ fAscent

int16_t SkAdvancedTypefaceMetrics::fAscent = 0

Definition at line 63 of file SkAdvancedTypefaceMetrics.h.

◆ fBBox

SkIRect SkAdvancedTypefaceMetrics::fBBox = {0, 0, 0, 0}

Definition at line 68 of file SkAdvancedTypefaceMetrics.h.

◆ fCapHeight

int16_t SkAdvancedTypefaceMetrics::fCapHeight = 0

Definition at line 66 of file SkAdvancedTypefaceMetrics.h.

◆ fDescent

int16_t SkAdvancedTypefaceMetrics::fDescent = 0

Definition at line 64 of file SkAdvancedTypefaceMetrics.h.

◆ fFlags

FontFlags SkAdvancedTypefaceMetrics::fFlags = (FontFlags)0

Definition at line 58 of file SkAdvancedTypefaceMetrics.h.

◆ fItalicAngle

int16_t SkAdvancedTypefaceMetrics::fItalicAngle = 0

Definition at line 60 of file SkAdvancedTypefaceMetrics.h.

◆ fPostScriptName

SkString SkAdvancedTypefaceMetrics::fPostScriptName

Definition at line 26 of file SkAdvancedTypefaceMetrics.h.

◆ fStemV

int16_t SkAdvancedTypefaceMetrics::fStemV = 0

Definition at line 65 of file SkAdvancedTypefaceMetrics.h.

◆ fStyle

StyleFlags SkAdvancedTypefaceMetrics::fStyle = (StyleFlags)0

Definition at line 38 of file SkAdvancedTypefaceMetrics.h.

◆ fType

FontType SkAdvancedTypefaceMetrics::fType = kOther_Font

Definition at line 50 of file SkAdvancedTypefaceMetrics.h.


The documentation for this class was generated from the following file: