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_Type1Font Class Referencefinal

#include <cpdf_type1font.h>

+ Inheritance diagram for CPDF_Type1Font:
+ Collaboration diagram for CPDF_Type1Font:

Public Member Functions

 ~CPDF_Type1Font () override
 
bool IsType1Font () const override
 
const CPDF_Type1FontAsType1Font () const override
 
CPDF_Type1FontAsType1Font () override
 
bool IsBase14Font () const
 
- Public Member Functions inherited from CPDF_SimpleFont
 ~CPDF_SimpleFont () override
 
int GetCharWidthF (uint32_t charcode) override
 
FX_RECT GetCharBBox (uint32_t charcode) override
 
int GlyphFromCharCode (uint32_t charcode, bool *pVertGlyph) override
 
bool IsUnicodeCompatible () const override
 
WideString UnicodeFromCharCode (uint32_t charcode) const override
 
uint32_t CharCodeFromUnicode (wchar_t Unicode) const override
 
const CPDF_FontEncodingGetEncoding () const
 
bool HasFontWidths () const override
 
- Public Member Functions inherited from CPDF_Font
virtual bool IsTrueTypeFont () const
 
virtual bool IsType3Font () const
 
virtual bool IsCIDFont () const
 
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 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
 
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
 
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 ()
 

Public Attributes

 CONSTRUCT_VIA_MAKE_RETAIN
 

Private Member Functions

bool Load () override
 
void LoadGlyphMap () override
 

Additional Inherited Members

- Static Public Member Functions inherited from CPDF_Font
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 inherited from CPDF_Font
static constexpr uint32_t kInvalidCharCode = static_cast<uint32_t>(-1)
 
- Protected Member Functions inherited from CPDF_SimpleFont
 CPDF_SimpleFont (CPDF_Document *pDocument, RetainPtr< CPDF_Dictionary > pFontDict)
 
bool LoadCommon ()
 
void LoadSubstFont ()
 
void LoadCharMetrics (int charcode)
 
void LoadCharWidths (const CPDF_Dictionary *font_desc)
 
void LoadDifferences (const CPDF_Dictionary *encoding)
 
void LoadPDFEncoding (bool bEmbedded, bool bTrueType)
 
- Protected Member Functions inherited from CPDF_Font
 CPDF_Font (CPDF_Document *pDocument, RetainPtr< CPDF_Dictionary > pFontDict)
 
 ~CPDF_Font () override
 
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 inherited from CPDF_Font
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 inherited from CPDF_SimpleFont
CPDF_FontEncoding m_Encoding {FontEncoding::kBuiltin}
 
FontEncoding m_BaseEncoding = FontEncoding::kBuiltin
 
bool m_bUseFontWidth = false
 
std::vector< ByteStringm_CharNames
 
uint16_t m_GlyphIndex [kInternalTableSize]
 
uint16_t m_CharWidth [kInternalTableSize]
 
FX_RECT m_CharBBox [kInternalTableSize]
 
- Protected Attributes inherited from CPDF_Font
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
 
- Static Protected Attributes inherited from CPDF_SimpleFont
static constexpr size_t kInternalTableSize = 256
 

Detailed Description

Definition at line 17 of file cpdf_type1font.h.

Constructor & Destructor Documentation

◆ ~CPDF_Type1Font()

CPDF_Type1Font::~CPDF_Type1Font ( )
overridedefault

Member Function Documentation

◆ AsType1Font() [1/2]

const CPDF_Type1Font * CPDF_Type1Font::AsType1Font ( ) const
overridevirtual

Reimplemented from CPDF_Font.

Definition at line 84 of file cpdf_type1font.cpp.

◆ AsType1Font() [2/2]

CPDF_Type1Font * CPDF_Type1Font::AsType1Font ( )
overridevirtual

Reimplemented from CPDF_Font.

Definition at line 88 of file cpdf_type1font.cpp.

◆ IsBase14Font()

bool CPDF_Type1Font::IsBase14Font ( ) const
inline

Definition at line 30 of file cpdf_type1font.h.

Referenced by CPDF_Font::IsStandardFont(), and Load().

+ Here is the caller graph for this function:

◆ IsType1Font()

bool CPDF_Type1Font::IsType1Font ( ) const
overridevirtual

Reimplemented from CPDF_Font.

Definition at line 80 of file cpdf_type1font.cpp.

◆ Load()

bool CPDF_Type1Font::Load ( )
overrideprivatevirtual

Implements CPDF_Font.

Definition at line 92 of file cpdf_type1font.cpp.

References FontStyleIsNonSymbolic(), IsBase14Font(), kAdobeSymbol, kStandard, kZapfDingbats, CPDF_SimpleFont::LoadCommon(), CPDF_SimpleFont::m_BaseEncoding, and CPDF_Font::m_Flags.

+ Here is the call graph for this function:

◆ LoadGlyphMap()

void CPDF_Type1Font::LoadGlyphMap ( )
overrideprivatevirtual

Implements CPDF_SimpleFont.

Definition at line 128 of file cpdf_type1font.cpp.

References FontStyleIsSymbolic(), kBuiltin, kStandard, fxge::kUnicode, CPDF_SimpleFont::m_BaseEncoding, CPDF_Font::m_Flags, and CPDF_Font::UseTTCharmapMSSymbol().

+ Here is the call graph for this function:

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_RETAIN

CPDF_Type1Font::CONSTRUCT_VIA_MAKE_RETAIN

Definition at line 19 of file cpdf_type1font.h.


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