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_cidfont.h>
Public Member Functions | |
~CPDF_CIDFont () override | |
bool | IsCIDFont () const override |
const CPDF_CIDFont * | AsCIDFont () const override |
CPDF_CIDFont * | AsCIDFont () override |
int | GlyphFromCharCode (uint32_t charcode, bool *pVertGlyph) override |
int | GetCharWidthF (uint32_t charcode) override |
FX_RECT | GetCharBBox (uint32_t charcode) override |
uint32_t | GetNextChar (ByteStringView pString, size_t *pOffset) const override |
size_t | CountChar (ByteStringView pString) const override |
int | AppendChar (char *str, uint32_t charcode) const override |
bool | IsVertWriting () const override |
bool | IsUnicodeCompatible () const override |
bool | Load () override |
WideString | UnicodeFromCharCode (uint32_t charcode) const override |
uint32_t | CharCodeFromUnicode (wchar_t Unicode) const override |
uint16_t | CIDFromCharCode (uint32_t charcode) const |
const uint8_t * | GetCIDTransform (uint16_t cid) const |
int16_t | GetVertWidth (uint16_t cid) const |
CFX_Point16 | GetVertOrigin (uint16_t cid) const |
int | GetCharSize (uint32_t charcode) const |
Public Member Functions inherited from CPDF_Font | |
virtual bool | IsType1Font () const |
virtual bool | IsTrueTypeFont () const |
virtual bool | IsType3Font () 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 void | WillBeDestroyed () |
virtual bool | HasFontWidths () const |
ByteString | GetBaseFontName () const |
absl::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 |
void | AppendChar (ByteString *str, uint32_t charcode) 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 () |
Static Public Member Functions | |
static float | CIDTransformToFloat (uint8_t ch) |
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) |
Public Attributes | |
CONSTRUCT_VIA_MAKE_RETAIN | |
Additional Inherited Members | |
Static Public Attributes inherited from CPDF_Font | |
static constexpr uint32_t | kInvalidCharCode = static_cast<uint32_t>(-1) |
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_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 |
int | m_Flags = 0 |
int | m_StemV = 0 |
int | m_Ascent = 0 |
int | m_Descent = 0 |
int | m_ItalicAngle = 0 |
FX_RECT | m_FontBBox |
Definition at line 36 of file cpdf_cidfont.h.
|
overridedefault |
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 851 of file cpdf_cidfont.cpp.
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 295 of file cpdf_cidfont.cpp.
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 299 of file cpdf_cidfont.cpp.
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 355 of file cpdf_cidfont.cpp.
References CPDF_Font::CharCodeFromUnicode().
uint16_t CPDF_CIDFont::CIDFromCharCode | ( | uint32_t | charcode | ) | const |
Definition at line 303 of file cpdf_cidfont.cpp.
Referenced by FPDFFont_GetGlyphWidth(), GetCharBBox(), GetCharPosList(), CPDF_TextObject::GetCharWidth(), GetCharWidthF(), CPDF_TextObject::GetItemInfo(), and GlyphFromCharCode().
|
static |
Definition at line 871 of file cpdf_cidfont.cpp.
Referenced by GetCharBBox(), and GetCharPosList().
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 847 of file cpdf_cidfont.cpp.
|
overridevirtual |
Implements CPDF_Font.
Definition at line 522 of file cpdf_cidfont.cpp.
References CFX_FloatRect::CFX_FloatRect(), CFX_Matrix::CFX_Matrix(), FX_RECT::FX_RECT(), FX_RECT::bottom, CIDFromCharCode(), CIDTransformToFloat(), CPDF_Font::GetCharBBoxForFace(), GetCIDTransform(), CFX_FloatRect::GetOuterRect(), GlyphFromCharCode(), FX_RECT::operator=(), FX_RECT::right, FX_RECT::top, and CFX_Matrix::TransformRect().
int CPDF_CIDFont::GetCharSize | ( | uint32_t | charcode | ) | const |
Definition at line 843 of file cpdf_cidfont.cpp.
|
overridevirtual |
Implements CPDF_Font.
Definition at line 590 of file cpdf_cidfont.cpp.
References CIDFromCharCode().
const uint8_t * CPDF_CIDFont::GetCIDTransform | ( | uint16_t | cid | ) | const |
Definition at line 893 of file cpdf_cidfont.cpp.
Referenced by GetCharBBox(), and GetCharPosList().
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 838 of file cpdf_cidfont.cpp.
CFX_Point16 CPDF_CIDFont::GetVertOrigin | ( | uint16_t | cid | ) | const |
Definition at line 618 of file cpdf_cidfont.cpp.
int16_t CPDF_CIDFont::GetVertWidth | ( | uint16_t | cid | ) | const |
Definition at line 605 of file cpdf_cidfont.cpp.
Referenced by FPDFFont_GetGlyphWidth(), and CPDF_TextObject::GetCharWidth().
|
overridevirtual |
Implements CPDF_Font.
Definition at line 687 of file cpdf_cidfont.cpp.
References CharCodeFromUnicodeForEncoding(), CIDFromCharCode(), CIDSET_JAPAN1, fxcrt::WideString::IsEmpty(), fxge::kAppleRoman, kMacRoman, kStandard, fxge::kUnicode, kWinAnsi, fxcrt::WideString::operator[](), UnicodeFromAdobeName(), UnicodeFromCharCode(), CPDF_Font::UseTTCharmapMacRoman(), and CPDF_Font::UseTTCharmapMSUnicode().
Referenced by GetCharBBox().
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 291 of file cpdf_cidfont.cpp.
|
overridevirtual |
Implements CPDF_Font.
Definition at line 855 of file cpdf_cidfont.cpp.
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 308 of file cpdf_cidfont.cpp.
Referenced by FPDFFont_GetGlyphWidth(), GetCharPosList(), and Load().
|
overridevirtual |
Implements CPDF_Font.
Definition at line 406 of file cpdf_cidfont.cpp.
References CPDF_CMapParser::CharsetFromOrdering(), CPDF_Font::CheckFontMetrics(), CIDSET_UNKNOWN, CPDF_FontGlobals::GetInstance(), CPDF_Font::IsEmbedded(), IsVertWriting(), fxge::kUnicode, CPDF_Font::LoadFontDescriptor(), and fxcrt::ByteString::operator==().
|
overridevirtual |
Reimplemented from CPDF_Font.
Definition at line 312 of file cpdf_cidfont.cpp.
References fxcrt::WideString::WideString(), fxcrt::WideString::WideString(), fxcrt::WideString::IsEmpty(), and CPDF_Font::UnicodeFromCharCode().
Referenced by GlyphFromCharCode().
CPDF_CIDFont::CONSTRUCT_VIA_MAKE_RETAIN |
Definition at line 38 of file cpdf_cidfont.h.