![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdf_truetypefont.h>
Public Member Functions | |
~CPDF_TrueTypeFont () override | |
bool | IsTrueTypeFont () const override |
const CPDF_TrueTypeFont * | AsTrueTypeFont () const override |
CPDF_TrueTypeFont * | AsTrueTypeFont () override |
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_FontEncoding * | GetEncoding () const |
bool | HasFontWidths () const override |
Public Member Functions inherited from CPDF_Font | |
virtual bool | IsType1Font () const |
virtual bool | IsType3Font () const |
virtual bool | IsCIDFont () const |
virtual const CPDF_Type1Font * | AsType1Font () const |
virtual CPDF_Type1Font * | AsType1Font () |
virtual const CPDF_Type3Font * | AsType3Font () const |
virtual CPDF_Type3Font * | AsType3Font () |
virtual const CPDF_CIDFont * | AsCIDFont () const |
virtual CPDF_CIDFont * | AsCIDFont () |
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 void | AppendChar (ByteString *buf, uint32_t charcode) const |
ByteString | GetBaseFontName () const |
std::optional< FX_Charset > | GetSubstFontCharset () const |
bool | IsEmbedded () const |
RetainPtr< CPDF_Dictionary > | GetMutableFontDict () |
RetainPtr< const CPDF_Dictionary > | GetFontDict () const |
uint32_t | GetFontDictObjNum () const |
bool | FontDictIs (const CPDF_Dictionary *pThat) const |
void | ClearFontDict () |
bool | IsStandardFont () const |
bool | HasFace () const |
const FX_RECT & | GetFontBBox () 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_Document * | GetDocument () const |
CFX_Font * | GetFont () |
const CFX_Font * | GetFont () const |
CFX_Font * | GetFontFallback (int position) |
const ByteString & | GetResourceName () 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 | |
Observable & | operator= (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_Font > | Create (CPDF_Document *pDoc, RetainPtr< CPDF_Dictionary > pFontDict, FormFactoryIface *pFactory) |
static RetainPtr< CPDF_Font > | GetStockFont (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 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< ByteString > | m_CharNames |
std::array< uint16_t, kInternalTableSize > | m_GlyphIndex |
std::array< uint16_t, kInternalTableSize > | m_CharWidth |
std::array< FX_RECT, kInternalTableSize > | m_CharBBox |
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_StreamAcc > | m_pFontFile |
RetainPtr< CPDF_Dictionary > | m_pFontDict |
ByteString | m_BaseFontName |
std::unique_ptr< CPDF_ToUnicodeMap > | m_pToUnicodeMap |
bool | m_bToUnicodeLoaded = false |
bool | m_bWillBeDestroyed = 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 |
Definition at line 13 of file cpdf_truetypefont.h.
|
overridedefault |
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 47 of file cpdf_truetypefont.cpp.
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 51 of file cpdf_truetypefont.cpp.
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 43 of file cpdf_truetypefont.cpp.
|
overrideprivatevirtual |
Implements CPDF_Font.
Definition at line 55 of file cpdf_truetypefont.cpp.
References CPDF_SimpleFont::LoadCommon().
|
overrideprivatevirtual |
Implements CPDF_SimpleFont.
Definition at line 59 of file cpdf_truetypefont.cpp.
References kBuiltin, CPDF_SimpleFont::UnicodeFromCharCode(), CPDF_Font::UseTTCharmapMacRoman(), and CPDF_Font::UseTTCharmapMSSymbol().
CPDF_TrueTypeFont::CONSTRUCT_VIA_MAKE_RETAIN |
Definition at line 15 of file cpdf_truetypefont.h.