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

#include <cfgas_gefont.h>

+ Inheritance diagram for CFGAS_GEFont:
+ Collaboration diagram for CFGAS_GEFont:

Public Member Functions

uint32_t GetFontStyles () const
 
absl::optional< uint16_t > GetCharWidth (wchar_t wUnicode)
 
int32_t GetGlyphIndex (wchar_t wUnicode)
 
int32_t GetAscent () const
 
int32_t GetDescent () const
 
absl::optional< FX_RECTGetCharBBox (wchar_t wUnicode)
 
RetainPtr< CFGAS_GEFontGetSubstFont (int32_t iGlyphIndex)
 
CFX_FontGetDevFont () const
 
void SetLogicalFontStyle (uint32_t dwLogFontStyle)
 
- Public Member Functions inherited from fxcrt::Retainable
 Retainable ()=default
 
bool HasOneRef () const
 

Static Public Member Functions

static RetainPtr< CFGAS_GEFontLoadFont (const wchar_t *pszFontFamily, uint32_t dwFontStyles, FX_CodePage wCodePage)
 
static RetainPtr< CFGAS_GEFontLoadFont (RetainPtr< CPDF_Font > pFont)
 
static RetainPtr< CFGAS_GEFontLoadFont (std::unique_ptr< CFX_Font > pFont)
 
static RetainPtr< CFGAS_GEFontLoadStockFont (CPDF_Document *pDoc, const ByteString &font_family)
 

Public Attributes

 CONSTRUCT_VIA_MAKE_RETAIN
 

Private Member Functions

 ~CFGAS_GEFont () override
 

Additional Inherited Members

- Protected Member Functions inherited from fxcrt::Retainable
virtual ~Retainable ()=default
 

Detailed Description

Definition at line 30 of file cfgas_gefont.h.

Member Function Documentation

◆ ~CFGAS_GEFont()

CFGAS_GEFont::~CFGAS_GEFont ( )
overrideprivatedefault

◆ GetAscent()

int32_t CFGAS_GEFont::GetAscent ( ) const

Definition at line 258 of file cfgas_gefont.cpp.

◆ GetCharBBox()

absl::optional< FX_RECT > CFGAS_GEFont::GetCharBBox ( wchar_t wUnicode)

Definition at line 178 of file cfgas_gefont.cpp.

◆ GetCharWidth()

absl::optional< uint16_t > CFGAS_GEFont::GetCharWidth ( wchar_t wUnicode)

Definition at line 153 of file cfgas_gefont.cpp.

◆ GetDescent()

int32_t CFGAS_GEFont::GetDescent ( ) const

Definition at line 262 of file cfgas_gefont.cpp.

◆ GetDevFont()

CFX_Font * CFGAS_GEFont::GetDevFont ( ) const
inline

Definition at line 50 of file cfgas_gefont.h.

◆ GetFontStyles()

uint32_t CFGAS_GEFont::GetFontStyles ( ) const

Definition at line 134 of file cfgas_gefont.cpp.

◆ GetGlyphIndex()

int32_t CFGAS_GEFont::GetGlyphIndex ( wchar_t wUnicode)

Definition at line 199 of file cfgas_gefont.cpp.

◆ GetSubstFont()

RetainPtr< CFGAS_GEFont > CFGAS_GEFont::GetSubstFont ( int32_t iGlyphIndex)

Definition at line 266 of file cfgas_gefont.cpp.

◆ LoadFont() [1/3]

RetainPtr< CFGAS_GEFont > CFGAS_GEFont::LoadFont ( const wchar_t * pszFontFamily,
uint32_t dwFontStyles,
FX_CodePage wCodePage )
static

Definition at line 24 of file cfgas_gefont.cpp.

References CFGAS_GEModule::Get(), CFGAS_FontMgr::GetFontByCodePage(), and CFGAS_GEModule::GetFontMgr().

+ Here is the call graph for this function:

◆ LoadFont() [2/3]

RetainPtr< CFGAS_GEFont > CFGAS_GEFont::LoadFont ( RetainPtr< CPDF_Font > pFont)
static

Definition at line 39 of file cfgas_gefont.cpp.

◆ LoadFont() [3/3]

RetainPtr< CFGAS_GEFont > CFGAS_GEFont::LoadFont ( std::unique_ptr< CFX_Font > pFont)
static

Definition at line 48 of file cfgas_gefont.cpp.

◆ LoadStockFont()

RetainPtr< CFGAS_GEFont > CFGAS_GEFont::LoadStockFont ( CPDF_Document * pDoc,
const ByteString & font_family )
static

Definition at line 58 of file cfgas_gefont.cpp.

Referenced by CXFA_FontMgr::GetFont().

+ Here is the caller graph for this function:

◆ SetLogicalFontStyle()

void CFGAS_GEFont::SetLogicalFontStyle ( uint32_t dwLogFontStyle)
inline

Definition at line 52 of file cfgas_gefont.h.

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_RETAIN

CFGAS_GEFont::CONSTRUCT_VIA_MAKE_RETAIN

Definition at line 32 of file cfgas_gefont.h.


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