Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CPDF_Font Class Referenceabstract

#include <cpdf_font.h>

+ Inheritance diagram for CPDF_Font:
+ Collaboration diagram for CPDF_Font:

Classes

class  FormFactoryIface
 
class  FormIface
 

Public Member Functions

virtual bool IsType1Font () const
 
virtual bool IsTrueTypeFont () const
 
virtual bool IsType3Font () const
 
virtual bool IsCIDFont () const
 
virtual const CPDF_Type1FontAsType1Font () const
 
virtual CPDF_Type1FontAsType1Font ()
 
virtual const CPDF_TrueTypeFontAsTrueTypeFont () const
 
virtual CPDF_TrueTypeFontAsTrueTypeFont ()
 
virtual const CPDF_Type3FontAsType3Font () const
 
virtual CPDF_Type3FontAsType3Font ()
 
virtual const CPDF_CIDFontAsCIDFont () const
 
virtual CPDF_CIDFontAsCIDFont ()
 
virtual void WillBeDestroyed ()
 
virtual bool IsVertWriting () const
 
virtual bool IsUnicodeCompatible () const =0
 
virtual uint32_t GetNextChar (ByteStringView pString, size_t *pOffset) const
 
virtual size_t CountChar (ByteStringView pString) const
 
virtual int AppendChar (char *buf, uint32_t charcode) const
 
virtual int GlyphFromCharCode (uint32_t charcode, bool *pVertGlyph)=0
 
virtual WideString UnicodeFromCharCode (uint32_t charcode) const
 
virtual uint32_t CharCodeFromUnicode (wchar_t Unicode) const
 
virtual bool HasFontWidths () const
 
ByteString GetBaseFontName () const
 
absl::optional< FX_CharsetGetSubstFontCharset () const
 
bool IsEmbedded () const
 
RetainPtr< CPDF_DictionaryGetMutableFontDict ()
 
RetainPtr< const CPDF_DictionaryGetFontDict () const
 
uint32_t GetFontDictObjNum () const
 
bool FontDictIs (const CPDF_Dictionary *pThat) const
 
void ClearFontDict ()
 
bool IsStandardFont () const
 
bool HasFace () const
 
void AppendChar (ByteString *str, uint32_t charcode) const
 
const FX_RECTGetFontBBox () const
 
int GetTypeAscent () const
 
int GetTypeDescent () const
 
int GetStringWidth (ByteStringView pString)
 
uint32_t FallbackFontFromCharcode (uint32_t charcode)
 
int FallbackGlyphFromCharcode (int fallbackFont, uint32_t charcode)
 
int GetFontFlags () const
 
int GetItalicAngle () const
 
int GetFontWeight () const
 
virtual int GetCharWidthF (uint32_t charcode)=0
 
virtual FX_RECT GetCharBBox (uint32_t charcode)=0
 
CPDF_DocumentGetDocument () const
 
CFX_FontGetFont ()
 
const CFX_FontGetFont () const
 
CFX_FontGetFontFallback (int position)
 
const ByteStringGetResourceName () const
 
void SetResourceName (const ByteString &name)
 
- Public Member Functions inherited from fxcrt::Retainable
 Retainable ()=default
 
bool HasOneRef () const
 
- Public Member Functions inherited from fxcrt::Observable
 Observable ()
 
 Observable (const Observable &that)=delete
 
Observableoperator= (const Observable &that)=delete
 
 ~Observable ()
 
void AddObserver (ObserverIface *pObserver)
 
void RemoveObserver (ObserverIface *pObserver)
 
void NotifyObservers ()
 

Static Public Member Functions

static RetainPtr< CPDF_FontCreate (CPDF_Document *pDoc, RetainPtr< CPDF_Dictionary > pFontDict, FormFactoryIface *pFactory)
 
static RetainPtr< CPDF_FontGetStockFont (CPDF_Document *pDoc, ByteStringView fontname)
 

Static Public Attributes

static constexpr uint32_t kInvalidCharCode = static_cast<uint32_t>(-1)
 

Protected Member Functions

 CPDF_Font (CPDF_Document *pDocument, RetainPtr< CPDF_Dictionary > pFontDict)
 
 ~CPDF_Font () override
 
virtual bool Load ()=0
 
void LoadUnicodeMap () const
 
void LoadFontDescriptor (const CPDF_Dictionary *pFontDesc)
 
void CheckFontMetrics ()
 
- Protected Member Functions inherited from fxcrt::Retainable
virtual ~Retainable ()=default
 
- Protected Member Functions inherited from fxcrt::Observable
size_t ActiveObserversForTesting () const
 

Static Protected Member Functions

static int TT2PDF (FT_Pos m, const RetainPtr< CFX_Face > &face)
 
static FX_RECT GetCharBBoxForFace (const RetainPtr< CFX_Face > &face)
 
static bool UseTTCharmapMSUnicode (const RetainPtr< CFX_Face > &face)
 
static bool UseTTCharmapMSSymbol (const RetainPtr< CFX_Face > &face)
 
static bool UseTTCharmapMacRoman (const RetainPtr< CFX_Face > &face)
 
static bool UseTTCharmap (const RetainPtr< CFX_Face > &face, int platform_id, int encoding_id)
 
static const char * GetAdobeCharName (FontEncoding base_encoding, const std::vector< ByteString > &charnames, uint32_t charcode)
 

Protected Attributes

UnownedPtr< CPDF_Document > const m_pDocument
 
ByteString m_ResourceName
 
CFX_Font m_Font
 
std::vector< std::unique_ptr< CFX_Font > > m_FontFallbacks
 
RetainPtr< CPDF_StreamAccm_pFontFile
 
RetainPtr< CPDF_Dictionarym_pFontDict
 
ByteString m_BaseFontName
 
std::unique_ptr< CPDF_ToUnicodeMapm_pToUnicodeMap
 
bool m_bToUnicodeLoaded = false
 
int m_Flags = 0
 
int m_StemV = 0
 
int m_Ascent = 0
 
int m_Descent = 0
 
int m_ItalicAngle = 0
 
FX_RECT m_FontBBox
 

Detailed Description

Definition at line 38 of file cpdf_font.h.

Constructor & Destructor Documentation

◆ CPDF_Font()

CPDF_Font::CPDF_Font ( CPDF_Document * pDocument,
RetainPtr< CPDF_Dictionary > pFontDict )
protected

Definition at line 52 of file cpdf_font.cpp.

References CPDF_Font().

Referenced by CPDF_Font().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~CPDF_Font()

CPDF_Font::~CPDF_Font ( )
overrideprotected

Definition at line 58 of file cpdf_font.cpp.

Member Function Documentation

◆ AppendChar() [1/2]

void CPDF_Font::AppendChar ( ByteString * str,
uint32_t charcode ) const

Definition at line 133 of file cpdf_font.cpp.

References AppendChar().

+ Here is the call graph for this function:

◆ AppendChar() [2/2]

int CPDF_Font::AppendChar ( char * buf,
uint32_t charcode ) const
virtual

Reimplemented in CPDF_CIDFont.

Definition at line 128 of file cpdf_font.cpp.

Referenced by AppendChar().

+ Here is the caller graph for this function:

◆ AsCIDFont() [1/2]

CPDF_CIDFont * CPDF_Font::AsCIDFont ( )
virtual

Reimplemented in CPDF_CIDFont.

Definition at line 107 of file cpdf_font.cpp.

Referenced by FPDFFont_GetGlyphWidth(), and GetCharPosList().

+ Here is the caller graph for this function:

◆ AsCIDFont() [2/2]

const CPDF_CIDFont * CPDF_Font::AsCIDFont ( ) const
virtual

Reimplemented in CPDF_CIDFont.

Definition at line 103 of file cpdf_font.cpp.

Referenced by IsVertWriting().

+ Here is the caller graph for this function:

◆ AsTrueTypeFont() [1/2]

CPDF_TrueTypeFont * CPDF_Font::AsTrueTypeFont ( )
virtual

Reimplemented in CPDF_TrueTypeFont.

Definition at line 91 of file cpdf_font.cpp.

◆ AsTrueTypeFont() [2/2]

const CPDF_TrueTypeFont * CPDF_Font::AsTrueTypeFont ( ) const
virtual

Reimplemented in CPDF_TrueTypeFont.

Definition at line 87 of file cpdf_font.cpp.

◆ AsType1Font() [1/2]

CPDF_Type1Font * CPDF_Font::AsType1Font ( )
virtual

Reimplemented in CPDF_Type1Font.

Definition at line 83 of file cpdf_font.cpp.

◆ AsType1Font() [2/2]

const CPDF_Type1Font * CPDF_Font::AsType1Font ( ) const
virtual

Reimplemented in CPDF_Type1Font.

Definition at line 79 of file cpdf_font.cpp.

Referenced by IsStandardFont().

+ Here is the caller graph for this function:

◆ AsType3Font() [1/2]

CPDF_Type3Font * CPDF_Font::AsType3Font ( )
virtual

Reimplemented in CPDF_Type3Font.

Definition at line 99 of file cpdf_font.cpp.

◆ AsType3Font() [2/2]

const CPDF_Type3Font * CPDF_Font::AsType3Font ( ) const
virtual

Reimplemented in CPDF_Type3Font.

Definition at line 95 of file cpdf_font.cpp.

◆ CharCodeFromUnicode()

uint32_t CPDF_Font::CharCodeFromUnicode ( wchar_t Unicode) const
virtual

Reimplemented in CPDF_CIDFont, and CPDF_SimpleFont.

Definition at line 146 of file cpdf_font.cpp.

References LoadUnicodeMap(), and m_bToUnicodeLoaded.

Referenced by CPDF_CIDFont::CharCodeFromUnicode(), CPDF_SimpleFont::CharCodeFromUnicode(), FPDFFont_GetGlyphPath(), and FPDFFont_GetGlyphWidth().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CheckFontMetrics()

void CPDF_Font::CheckFontMetrics ( )
protected

Definition at line 218 of file cpdf_font.cpp.

References FX_RECT::bottom, GetCharBBox(), FX_RECT::left, m_Ascent, m_Descent, m_FontBBox, FX_RECT::operator=(), FX_RECT::right, and FX_RECT::top.

Referenced by CPDF_Type3Font::CheckType3FontMetrics(), CPDF_CIDFont::Load(), and CPDF_SimpleFont::LoadCommon().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClearFontDict()

void CPDF_Font::ClearFontDict ( )
inline

Definition at line 108 of file cpdf_font.h.

◆ CountChar()

size_t CPDF_Font::CountChar ( ByteStringView pString) const
virtual

Reimplemented in CPDF_CIDFont.

Definition at line 111 of file cpdf_font.cpp.

◆ Create()

RetainPtr< CPDF_Font > CPDF_Font::Create ( CPDF_Document * pDoc,
RetainPtr< CPDF_Dictionary > pFontDict,
FormFactoryIface * pFactory )
static

Definition at line 301 of file cpdf_font.cpp.

References fxcrt::ByteString::operator==(), and fxcrt::ByteString::operator==().

Referenced by GetStockFont().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FallbackFontFromCharcode()

uint32_t CPDF_Font::FallbackFontFromCharcode ( uint32_t charcode)

Definition at line 377 of file cpdf_font.cpp.

Referenced by GetCharPosList().

+ Here is the caller graph for this function:

◆ FallbackGlyphFromCharcode()

int CPDF_Font::FallbackGlyphFromCharcode ( int fallbackFont,
uint32_t charcode )

Definition at line 390 of file cpdf_font.cpp.

References fxcrt::WideString::IsEmpty(), fxcrt::WideString::operator[](), and UnicodeFromCharCode().

Referenced by GetCharPosList().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FontDictIs()

bool CPDF_Font::FontDictIs ( const CPDF_Dictionary * pThat) const
inline

Definition at line 105 of file cpdf_font.h.

◆ GetAdobeCharName()

const char * CPDF_Font::GetAdobeCharName ( FontEncoding base_encoding,
const std::vector< ByteString > & charnames,
uint32_t charcode )
staticprotected

Definition at line 357 of file cpdf_font.cpp.

References CharNameFromPredefinedCharSet(), and kBuiltin.

+ Here is the call graph for this function:

◆ GetBaseFontName()

ByteString CPDF_Font::GetBaseFontName ( ) const
inline

Definition at line 99 of file cpdf_font.h.

◆ GetCharBBox()

virtual FX_RECT CPDF_Font::GetCharBBox ( uint32_t charcode)
pure virtual

Implemented in CPDF_CIDFont, CPDF_SimpleFont, and CPDF_Type3Font.

Referenced by CheckFontMetrics().

+ Here is the caller graph for this function:

◆ GetCharBBoxForFace()

FX_RECT CPDF_Font::GetCharBBoxForFace ( const RetainPtr< CFX_Face > & face)
staticprotected

Definition at line 420 of file cpdf_font.cpp.

Referenced by CPDF_CIDFont::GetCharBBox().

+ Here is the caller graph for this function:

◆ GetCharWidthF()

virtual int CPDF_Font::GetCharWidthF ( uint32_t charcode)
pure virtual

Implemented in CPDF_CIDFont, CPDF_SimpleFont, and CPDF_Type3Font.

Referenced by FPDFEditEmbedderTest::CheckCompositeFontWidths(), CPDF_TextRenderer::DrawTextString(), FPDFFont_GetGlyphWidth(), and GetCharPosList().

+ Here is the caller graph for this function:

◆ GetDocument()

CPDF_Document * CPDF_Font::GetDocument ( ) const
inline

Definition at line 128 of file cpdf_font.h.

◆ GetFont() [1/2]

CFX_Font * CPDF_Font::GetFont ( )
inline

Definition at line 130 of file cpdf_font.h.

Referenced by FPDFFont_GetFontName(), FPDFFont_GetGlyphPath(), and GetCharPosList().

+ Here is the caller graph for this function:

◆ GetFont() [2/2]

const CFX_Font * CPDF_Font::GetFont ( ) const
inline

Definition at line 131 of file cpdf_font.h.

◆ GetFontBBox()

const FX_RECT & CPDF_Font::GetFontBBox ( ) const
inline

Definition at line 113 of file cpdf_font.h.

References m_FontBBox.

Referenced by CPWL_Edit::GetCharArrayAutoFontSize().

+ Here is the caller graph for this function:

◆ GetFontDict()

RetainPtr< const CPDF_Dictionary > CPDF_Font::GetFontDict ( ) const
inline

Definition at line 103 of file cpdf_font.h.

◆ GetFontDictObjNum()

uint32_t CPDF_Font::GetFontDictObjNum ( ) const
inline

Definition at line 104 of file cpdf_font.h.

◆ GetFontFallback()

CFX_Font * CPDF_Font::GetFontFallback ( int position)

Definition at line 403 of file cpdf_font.cpp.

Referenced by FPDFFont_GetGlyphPath(), and GetCharPosList().

+ Here is the caller graph for this function:

◆ GetFontFlags()

int CPDF_Font::GetFontFlags ( ) const
inline

Definition at line 119 of file cpdf_font.h.

References m_Flags.

Referenced by FPDFFont_GetFlags().

+ Here is the caller graph for this function:

◆ GetFontWeight()

int CPDF_Font::GetFontWeight ( ) const

Definition at line 443 of file cpdf_font.cpp.

References m_StemV.

Referenced by FPDFFont_GetWeight().

+ Here is the caller graph for this function:

◆ GetItalicAngle()

int CPDF_Font::GetItalicAngle ( ) const
inline

Definition at line 120 of file cpdf_font.h.

References m_ItalicAngle.

Referenced by FPDFFont_GetItalicAngle().

+ Here is the caller graph for this function:

◆ GetMutableFontDict()

RetainPtr< CPDF_Dictionary > CPDF_Font::GetMutableFontDict ( )
inline

Definition at line 102 of file cpdf_font.h.

◆ GetNextChar()

uint32_t CPDF_Font::GetNextChar ( ByteStringView pString,
size_t * pOffset ) const
virtual

Reimplemented in CPDF_CIDFont.

Definition at line 333 of file cpdf_font.cpp.

◆ GetResourceName()

const ByteString & CPDF_Font::GetResourceName ( ) const
inline

Definition at line 135 of file cpdf_font.h.

◆ GetStockFont()

RetainPtr< CPDF_Font > CPDF_Font::GetStockFont ( CPDF_Document * pDoc,
ByteStringView fontname )
static

Definition at line 276 of file cpdf_font.cpp.

References Create(), CPDF_FontGlobals::GetInstance(), and pdfium::font_encodings::kWinAnsiEncoding.

Referenced by FPDFText_LoadStandardFont(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetStringWidth()

int CPDF_Font::GetStringWidth ( ByteStringView pString)

Definition at line 267 of file cpdf_font.cpp.

◆ GetSubstFontCharset()

absl::optional< FX_Charset > CPDF_Font::GetSubstFontCharset ( ) const

Definition at line 349 of file cpdf_font.cpp.

References CFX_SubstFont::m_Charset.

◆ GetTypeAscent()

int CPDF_Font::GetTypeAscent ( ) const
inline

Definition at line 114 of file cpdf_font.h.

References m_Ascent.

Referenced by FPDFFont_GetAscent().

+ Here is the caller graph for this function:

◆ GetTypeDescent()

int CPDF_Font::GetTypeDescent ( ) const
inline

Definition at line 115 of file cpdf_font.h.

References m_Descent.

Referenced by FPDFFont_GetDescent().

+ Here is the caller graph for this function:

◆ GlyphFromCharCode()

virtual int CPDF_Font::GlyphFromCharCode ( uint32_t charcode,
bool * pVertGlyph )
pure virtual

Implemented in CPDF_CIDFont, and CPDF_SimpleFont.

Referenced by GetCharPosList().

+ Here is the caller graph for this function:

◆ HasFace()

bool CPDF_Font::HasFace ( ) const
inline

Definition at line 110 of file cpdf_font.h.

Referenced by CPDF_SimpleFont::LoadCommon().

+ Here is the caller graph for this function:

◆ HasFontWidths()

bool CPDF_Font::HasFontWidths ( ) const
virtual

Reimplemented in CPDF_SimpleFont.

Definition at line 153 of file cpdf_font.cpp.

◆ IsCIDFont()

bool CPDF_Font::IsCIDFont ( ) const
virtual

Reimplemented in CPDF_CIDFont.

Definition at line 75 of file cpdf_font.cpp.

Referenced by GetCharPosList(), TEST_F(), and TEST_F().

+ Here is the caller graph for this function:

◆ IsEmbedded()

bool CPDF_Font::IsEmbedded ( ) const
inline

Definition at line 101 of file cpdf_font.h.

Referenced by FPDFFont_GetIsEmbedded(), GetCharPosList(), CPDF_CIDFont::Load(), and CPDF_SimpleFont::LoadCharMetrics().

+ Here is the caller graph for this function:

◆ IsStandardFont()

bool CPDF_Font::IsStandardFont ( ) const

Definition at line 341 of file cpdf_font.cpp.

References AsType1Font(), CPDF_Type1Font::IsBase14Font(), and IsType1Font().

Referenced by CPWL_Edit::GetCharArrayAutoFontSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsTrueTypeFont()

bool CPDF_Font::IsTrueTypeFont ( ) const
virtual

Reimplemented in CPDF_TrueTypeFont.

Definition at line 67 of file cpdf_font.cpp.

Referenced by TEST_F().

+ Here is the caller graph for this function:

◆ IsType1Font()

bool CPDF_Font::IsType1Font ( ) const
virtual

Reimplemented in CPDF_Type1Font.

Definition at line 63 of file cpdf_font.cpp.

Referenced by IsStandardFont(), and TEST_F().

+ Here is the caller graph for this function:

◆ IsType3Font()

bool CPDF_Font::IsType3Font ( ) const
virtual

Reimplemented in CPDF_Type3Font.

Definition at line 71 of file cpdf_font.cpp.

Referenced by CPDF_TextRenderer::DrawTextString().

+ Here is the caller graph for this function:

◆ IsUnicodeCompatible()

virtual bool CPDF_Font::IsUnicodeCompatible ( ) const
pure virtual

Implemented in CPDF_CIDFont, and CPDF_SimpleFont.

◆ IsVertWriting()

bool CPDF_Font::IsVertWriting ( ) const
virtual

Reimplemented in CPDF_CIDFont.

Definition at line 123 of file cpdf_font.cpp.

References AsCIDFont().

+ Here is the call graph for this function:

◆ Load()

virtual bool CPDF_Font::Load ( )
protectedpure virtual

◆ LoadFontDescriptor()

void CPDF_Font::LoadFontDescriptor ( const CPDF_Dictionary * pFontDesc)
protected

Definition at line 157 of file cpdf_font.cpp.

References FX_RECT::bottom, CPDF_Dictionary::GetIntegerFor(), CPDF_Dictionary::GetIntegerFor(), CPDF_Dictionary::GetStreamFor(), CPDF_Dictionary::KeyExist(), FX_RECT::left, m_Ascent, m_Descent, m_Flags, m_FontBBox, m_ItalicAngle, m_StemV, FX_RECT::right, and FX_RECT::top.

Referenced by CPDF_CIDFont::Load(), and CPDF_SimpleFont::LoadCommon().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadUnicodeMap()

void CPDF_Font::LoadUnicodeMap ( ) const
protected

Definition at line 258 of file cpdf_font.cpp.

References m_bToUnicodeLoaded.

Referenced by CharCodeFromUnicode(), and UnicodeFromCharCode().

+ Here is the caller graph for this function:

◆ SetResourceName()

void CPDF_Font::SetResourceName ( const ByteString & name)
inline

Definition at line 136 of file cpdf_font.h.

◆ TT2PDF()

int CPDF_Font::TT2PDF ( FT_Pos m,
const RetainPtr< CFX_Face > & face )
staticprotected

Definition at line 410 of file cpdf_font.cpp.

◆ UnicodeFromCharCode()

WideString CPDF_Font::UnicodeFromCharCode ( uint32_t charcode) const
virtual

Reimplemented in CPDF_CIDFont, and CPDF_SimpleFont.

Definition at line 139 of file cpdf_font.cpp.

References LoadUnicodeMap(), and m_bToUnicodeLoaded.

Referenced by FallbackGlyphFromCharcode(), GetCharPosList(), CPDF_CIDFont::UnicodeFromCharCode(), and CPDF_SimpleFont::UnicodeFromCharCode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UseTTCharmap()

bool CPDF_Font::UseTTCharmap ( const RetainPtr< CFX_Face > & face,
int platform_id,
int encoding_id )
staticprotected

Definition at line 430 of file cpdf_font.cpp.

Referenced by UseTTCharmapMacRoman(), UseTTCharmapMSSymbol(), and UseTTCharmapMSUnicode().

+ Here is the caller graph for this function:

◆ UseTTCharmapMacRoman()

static bool CPDF_Font::UseTTCharmapMacRoman ( const RetainPtr< CFX_Face > & face)
inlinestaticprotected

Definition at line 152 of file cpdf_font.h.

References UseTTCharmap().

Referenced by CPDF_CIDFont::GlyphFromCharCode(), and CPDF_TrueTypeFont::LoadGlyphMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UseTTCharmapMSSymbol()

static bool CPDF_Font::UseTTCharmapMSSymbol ( const RetainPtr< CFX_Face > & face)
inlinestaticprotected

Definition at line 149 of file cpdf_font.h.

References UseTTCharmap().

Referenced by CPDF_TrueTypeFont::LoadGlyphMap(), and CPDF_Type1Font::LoadGlyphMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UseTTCharmapMSUnicode()

static bool CPDF_Font::UseTTCharmapMSUnicode ( const RetainPtr< CFX_Face > & face)
inlinestaticprotected

Definition at line 146 of file cpdf_font.h.

References UseTTCharmap().

Referenced by CPDF_CIDFont::GlyphFromCharCode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ WillBeDestroyed()

void CPDF_Font::WillBeDestroyed ( )
virtual

Reimplemented in CPDF_Type3Font.

Definition at line 121 of file cpdf_font.cpp.

Member Data Documentation

◆ kInvalidCharCode

◆ m_Ascent

int CPDF_Font::m_Ascent = 0
protected

Definition at line 180 of file cpdf_font.h.

Referenced by CheckFontMetrics(), GetTypeAscent(), and LoadFontDescriptor().

◆ m_BaseFontName

ByteString CPDF_Font::m_BaseFontName
protected

Definition at line 175 of file cpdf_font.h.

◆ m_bToUnicodeLoaded

bool CPDF_Font::m_bToUnicodeLoaded = false
mutableprotected

Definition at line 177 of file cpdf_font.h.

Referenced by CharCodeFromUnicode(), LoadUnicodeMap(), and UnicodeFromCharCode().

◆ m_Descent

int CPDF_Font::m_Descent = 0
protected

Definition at line 181 of file cpdf_font.h.

Referenced by CheckFontMetrics(), GetTypeDescent(), and LoadFontDescriptor().

◆ m_Flags

◆ m_Font

CFX_Font CPDF_Font::m_Font
protected

Definition at line 171 of file cpdf_font.h.

◆ m_FontBBox

FX_RECT CPDF_Font::m_FontBBox
protected

◆ m_FontFallbacks

std::vector<std::unique_ptr<CFX_Font> > CPDF_Font::m_FontFallbacks
protected

Definition at line 172 of file cpdf_font.h.

◆ m_ItalicAngle

int CPDF_Font::m_ItalicAngle = 0
protected

Definition at line 182 of file cpdf_font.h.

Referenced by GetItalicAngle(), and LoadFontDescriptor().

◆ m_pDocument

UnownedPtr<CPDF_Document> const CPDF_Font::m_pDocument
protected

Definition at line 169 of file cpdf_font.h.

◆ m_pFontDict

RetainPtr<CPDF_Dictionary> CPDF_Font::m_pFontDict
protected

Definition at line 174 of file cpdf_font.h.

◆ m_pFontFile

RetainPtr<CPDF_StreamAcc> CPDF_Font::m_pFontFile
protected

Definition at line 173 of file cpdf_font.h.

◆ m_pToUnicodeMap

std::unique_ptr<CPDF_ToUnicodeMap> CPDF_Font::m_pToUnicodeMap
mutableprotected

Definition at line 176 of file cpdf_font.h.

◆ m_ResourceName

ByteString CPDF_Font::m_ResourceName
protected

Definition at line 170 of file cpdf_font.h.

◆ m_StemV

int CPDF_Font::m_StemV = 0
protected

Definition at line 179 of file cpdf_font.h.

Referenced by GetFontWeight(), and LoadFontDescriptor().


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