![]() |
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_simplefont.h>
Public Member Functions | |
| ~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 | IsTrueTypeFont () const |
| virtual bool | IsType3Font () const |
| virtual bool | IsCIDFont () const |
| virtual const CPDF_Type1Font * | AsType1Font () const |
| virtual CPDF_Type1Font * | AsType1Font () |
| virtual const CPDF_TrueTypeFont * | AsTrueTypeFont () const |
| virtual CPDF_TrueTypeFont * | AsTrueTypeFont () |
| 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 () |
Protected Member Functions | |
| CPDF_SimpleFont (CPDF_Document *pDocument, RetainPtr< CPDF_Dictionary > pFontDict) | |
| virtual void | LoadGlyphMap ()=0 |
| 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 | |
| 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 |
Protected Attributes | |
| 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 | |
| static constexpr size_t | kInternalTableSize = 256 |
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) |
| 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) |
Definition at line 19 of file cpdf_simplefont.h.
|
overridedefault |
|
protected |
Definition at line 37 of file cpdf_simplefont.cpp.
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 303 of file cpdf_simplefont.cpp.
References CPDF_Font::CharCodeFromUnicode().
|
overridevirtual |
Implements CPDF_Font.
Reimplemented in CPDF_Type3Font.
Definition at line 213 of file cpdf_simplefont.cpp.
References LoadCharMetrics().
|
overridevirtual |
Implements CPDF_Font.
Reimplemented in CPDF_Type3Font.
Definition at line 200 of file cpdf_simplefont.cpp.
References LoadCharMetrics().
|
inline |
Definition at line 31 of file cpdf_simplefont.h.
|
overridevirtual |
Implements CPDF_Font.
Definition at line 47 of file cpdf_simplefont.cpp.
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 310 of file cpdf_simplefont.cpp.
References m_bUseFontWidth.
|
overridevirtual |
Implements CPDF_Font.
Definition at line 287 of file cpdf_simplefont.cpp.
References kAdobeSymbol, kBuiltin, kZapfDingbats, and m_BaseEncoding.
|
protected |
Definition at line 61 of file cpdf_simplefont.cpp.
References CPDF_Font::IsEmbedded(), LoadCharMetrics(), and m_bUseFontWidth.
Referenced by GetCharBBox(), GetCharWidthF(), and LoadCharMetrics().
|
protected |
Definition at line 107 of file cpdf_simplefont.cpp.
References CPDF_Dictionary::GetIntegerFor(), CPDF_Dictionary::KeyExist(), and m_bUseFontWidth.
Referenced by LoadCommon().
|
protected |
Definition at line 223 of file cpdf_simplefont.cpp.
References CPDF_Font::CheckFontMetrics(), FontStyleIsAllCaps(), FontStyleIsSymbolic(), CPDF_Font::HasFace(), kStandard, LoadCharWidths(), CPDF_Font::LoadFontDescriptor(), LoadGlyphMap(), LoadSubstFont(), m_BaseEncoding, and CPDF_Font::m_Flags.
Referenced by CPDF_TrueTypeFont::Load(), and CPDF_Type1Font::Load().
|
protected |
Definition at line 131 of file cpdf_simplefont.cpp.
Referenced by LoadPDFEncoding().
|
protectedpure virtual |
Implemented in CPDF_TrueTypeFont, CPDF_Type1Font, and CPDF_Type3Font.
Referenced by LoadCommon().
|
protected |
Definition at line 154 of file cpdf_simplefont.cpp.
References CPDF_Dictionary::GetByteStringFor(), kAdobeSymbol, kBuiltin, pdfium::font_encodings::kMacExpertEncoding, kMsSymbol, kStandard, kWinAnsi, pdfium::font_encodings::kWinAnsiEncoding, kZapfDingbats, LoadDifferences(), m_BaseEncoding, fxcrt::ByteString::operator=(), and fxcrt::ByteString::operator==().
Referenced by CPDF_Type3Font::Load().
|
protected |
Definition at line 267 of file cpdf_simplefont.cpp.
References FontStyleIsFixedPitch(), m_bUseFontWidth, and CPDF_Font::m_Flags.
Referenced by LoadCommon().
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 293 of file cpdf_simplefont.cpp.
References fxcrt::WideString::WideString(), fxcrt::WideString::WideString(), and CPDF_Font::UnicodeFromCharCode().
Referenced by CPDF_TrueTypeFont::LoadGlyphMap().
|
staticconstexprprotected |
Definition at line 36 of file cpdf_simplefont.h.
|
protected |
Definition at line 51 of file cpdf_simplefont.h.
Referenced by IsUnicodeCompatible(), CPDF_Type1Font::Load(), LoadCommon(), CPDF_Type1Font::LoadGlyphMap(), and LoadPDFEncoding().
|
protected |
Definition at line 52 of file cpdf_simplefont.h.
Referenced by HasFontWidths(), LoadCharMetrics(), LoadCharWidths(), and LoadSubstFont().
|
protected |
Definition at line 56 of file cpdf_simplefont.h.
|
protected |
Definition at line 53 of file cpdf_simplefont.h.
|
protected |
Definition at line 55 of file cpdf_simplefont.h.
|
protected |
Definition at line 50 of file cpdf_simplefont.h.
|
protected |
Definition at line 54 of file cpdf_simplefont.h.