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
TestFontMapper Class Reference
+ Inheritance diagram for TestFontMapper:
+ Collaboration diagram for TestFontMapper:

Public Member Functions

 TestFontMapper ()
 
RetainPtr< CFX_FaceGetCachedTTCFace (void *font_handle, size_t ttc_size, size_t data_size)
 
RetainPtr< CFX_FaceGetCachedFace (void *font_handle, ByteString subst_name, int weight, bool is_italic, size_t data_size)
 
 TestFontMapper ()
 
RetainPtr< CFX_FaceGetCachedTTCFace (void *font_handle, size_t ttc_size, size_t data_size)
 
RetainPtr< CFX_FaceGetCachedFace (void *font_handle, ByteString subst_name, int weight, bool is_italic, size_t data_size)
 
- Public Member Functions inherited from CFX_FontMapper
 CFX_FontMapper (CFX_FontMgr *mgr)
 
 ~CFX_FontMapper ()
 
void SetSystemFontInfo (std::unique_ptr< SystemFontInfoIface > pFontInfo)
 
std::unique_ptr< SystemFontInfoIfaceTakeSystemFontInfo ()
 
void AddInstalledFont (const ByteString &name, FX_Charset charset)
 
void LoadInstalledFonts ()
 
RetainPtr< CFX_FaceFindSubstFont (const ByteString &face_name, bool is_truetype, uint32_t flags, int weight, int italic_angle, FX_CodePage code_page, CFX_SubstFont *subst_font)
 
size_t GetFaceSize () const
 
ByteString GetFaceName (size_t index) const
 
bool HasInstalledFont (ByteStringView name) const
 
bool HasLocalizedFont (ByteStringView name) const
 

Additional Inherited Members

- Public Types inherited from CFX_FontMapper
enum  StandardFont : uint8_t {
  kCourier = 0 , kCourierBold , kCourierBoldOblique , kCourierOblique ,
  kHelvetica , kHelveticaBold , kHelveticaBoldOblique , kHelveticaOblique ,
  kTimes , kTimesBold , kTimesBoldOblique , kTimesOblique ,
  kSymbol , kDingbats , kLast = kDingbats
}
 
- Static Public Member Functions inherited from CFX_FontMapper
static absl::optional< StandardFontGetStandardFontName (ByteString *name)
 
static bool IsStandardFontName (const ByteString &name)
 
static bool IsSymbolicFont (StandardFont font)
 
static bool IsFixedFont (StandardFont font)
 
static constexpr uint32_t MakeTag (char c1, char c2, char c3, char c4)
 
- Static Public Attributes inherited from CFX_FontMapper
static constexpr int kNumStandardFonts = 14
 

Detailed Description

Definition at line 47 of file cfx_fontmapper_unittest.cpp.

Constructor & Destructor Documentation

◆ TestFontMapper() [1/2]

TestFontMapper::TestFontMapper ( )
inline

Definition at line 49 of file cfx_fontmapper_unittest.cpp.

References CFX_FontMapper::CFX_FontMapper(), CFX_GEModule::Get(), and CFX_GEModule::GetFontMgr().

+ Here is the call graph for this function:

◆ TestFontMapper() [2/2]

TestFontMapper::TestFontMapper ( )
inline

Definition at line 49 of file cfx_fontmapper_unittest.cpp.

Member Function Documentation

◆ GetCachedFace() [1/2]

RetainPtr< CFX_Face > TestFontMapper::GetCachedFace ( void * font_handle,
ByteString subst_name,
int weight,
bool is_italic,
size_t data_size )
inline

Definition at line 57 of file cfx_fontmapper_unittest.cpp.

◆ GetCachedFace() [2/2]

RetainPtr< CFX_Face > TestFontMapper::GetCachedFace ( void * font_handle,
ByteString subst_name,
int weight,
bool is_italic,
size_t data_size )
inline

Definition at line 57 of file cfx_fontmapper_unittest.cpp.

◆ GetCachedTTCFace() [1/2]

RetainPtr< CFX_Face > TestFontMapper::GetCachedTTCFace ( void * font_handle,
size_t ttc_size,
size_t data_size )
inline

Definition at line 51 of file cfx_fontmapper_unittest.cpp.

◆ GetCachedTTCFace() [2/2]

RetainPtr< CFX_Face > TestFontMapper::GetCachedTTCFace ( void * font_handle,
size_t ttc_size,
size_t data_size )
inline

Definition at line 51 of file cfx_fontmapper_unittest.cpp.


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