CBlueUI  
C++ 跨平台跨框架的数据可视化工具
载入中...
搜索中...
未找到
BUI::GFont类 参考

字体 更多...

Public 成员函数

 GFont ()
 ~GFont ()
void CreateFontObject (LPCTSTR name, int font_height, UINT style)
 Create a Font Object object
int FontPixelHeight () const
int FontPointHeight () const
UINT FontStyle () const
LPCTSTR FontName () const
SIZE GetTextSize (LPCTSTR text, int len=-1) const
SIZE GetTextSizeW (LPCWSTR text, int len=-1) const
SIZE GetTextSizeA (const char *text, int len=-1) const
void GetTextCharsSize (LPCTSTR text, std::vector< int > &out_list) const
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *tml, BOOL is_only_max_size=FALSE) const
int GetTextGlyph (GPathStorage &path, LPCTSTR text, int len, int word_space=0)
 GFont ()
 ~GFont ()
void CreateFontObject (LPCTSTR name, int font_height, UINT style)
 Create a Font Object object
int FontPixelHeight () const
int FontPointHeight () const
UINT FontStyle () const
LPCTSTR FontName () const
SIZE GetTextSize (LPCTSTR text, int len=-1) const
SIZE GetTextSizeW (LPCWSTR text, int len=-1) const
SIZE GetTextSizeA (const char *text, int len=-1) const
void GetTextCharsSize (LPCTSTR text, std::vector< int > &out_list) const
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *tml, BOOL is_only_max_size=FALSE) const
int GetTextGlyph (GPathStorage &path, LPCTSTR text, int len, int word_space=0)
 GFont ()
 ~GFont ()
void CreateFontObject (LPCTSTR name, int font_height, UINT style)
 Create a Font Object object
void ChangeSizeWithDPI (double dpi_scale)
 根据动态DPI适应大小尺寸
int FontPixelHeight () const
int FontPointHeight () const
UINT FontStyle () const
LPCTSTR FontName () const
SIZE GetTextSize (LPCTSTR text, int len=-1) const
SIZE GetTextSizeA (LPCSTR text, int len=-1) const
SIZE GetTextSizeW (LPCWSTR text, int len=-1) const
void GetTextCharsSize (LPCTSTR text, std::vector< int > &out_list) const
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *tml, BOOL is_only_max_size=FALSE) const
int GetTextGlyph (GPathStorage &path, LPCTSTR text, int len, int word_space=0)
 GFont ()
 ~GFont ()
void CreateFontObject (LPCTSTR name, int font_height, UINT style)
 Create a Font Object object
int FontPixelHeight () const
int FontPointHeight () const
UINT FontStyle () const
LPCTSTR FontName () const
SIZE GetTextSize (LPCTSTR text, int len=-1) const
SIZE GetTextSizeA (LPCSTR text, int len=-1) const
SIZE GetTextSizeW (LPCWSTR text, int len=-1) const
void GetTextCharsSize (LPCTSTR text, std::vector< int > &out_list) const
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *tml, BOOL is_only_max_size=FALSE) const
int GetTextGlyph (GPathStorage &path, LPCTSTR text, int len, int word_space=0)
 GFont ()
 ~GFont ()
void CreateFontObject (LPCTSTR name, int font_height, UINT style)
 Create a Font Object object
void ChangeSizeWithDPI (double dpi_scale)
 根据动态DPI适应大小尺寸
int FontPixelHeight () const
int FontPointHeight () const
UINT FontStyle () const
LPCTSTR FontName () const
SIZE GetTextSize (LPCTSTR text, int len=-1) const
SIZE GetTextSizeA (LPCSTR text, int len=-1) const
SIZE GetTextSizeW (LPCWSTR text, int len=-1) const
void GetTextCharsSize (LPCTSTR text, std::vector< int > &out_list) const
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *tml, BOOL is_only_max_size=FALSE) const
int GetTextGlyph (GPathStorage &path, LPCTSTR text, int len, int word_space=0)
void ApplyAttribute (float scale)
 GFont ()
 ~GFont ()
void CreateFontObject (LPCTSTR name, int font_height, UINT style)
 Create a Font Object object
void ChangeSizeWithDPI (double dpi_scale)
 根据动态DPI适应大小尺寸
int FontPixelHeight () const
int FontPointHeight () const
int GetEmHeight () const
int GetCellAscent () const
UINT FontStyle () const
LPCTSTR FontName () const
SIZE GetTextSize (LPCTSTR text, int len=-1) const
SIZE GetTextSizeW (LPCWSTR text, int len=-1) const
SIZE GetTextSizeA (const char *text, int len=-1) const
void GetTextCharsSize (LPCTSTR text, std::vector< int > &out_list) const
 将字符串每个字符的宽度,读取到数组中
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *tml, BOOL is_only_max_size=FALSE) const
int GetTextGlyph (GPathStorage &path, LPCTSTR text, int len, int word_space=0)
 GFont ()
 ~GFont ()
void CreateFontObject (LPCTSTR name, int font_height, UINT style)
 Create a Font Object object
void ChangeSizeWithDPI (double dpi_scale)
int FontPixelHeight () const
int FontPointHeight () const
UINT FontStyle () const
LPCTSTR FontName () const
SIZE GetTextSize (LPCTSTR text, int len=-1) const
SIZE GetTextSizeW (LPCWSTR text, int len=-1) const
SIZE GetTextSizeA (const char *text, int len=-1) const
void GetTextCharsSize (LPCTSTR text, std::vector< int > &out_list) const
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *tml, BOOL is_only_max_size=FALSE) const
int GetTextGlyph (GPathStorage &path, LPCTSTR text, int len, int word_space=0) const

Public 属性

PangoFontDescription * m_font
int m_dy
QFont m_qt_font
void * m_CTFont
void * m_ttf_font
HFONT m_font_gdi
LOGFONT m_lf
wxFont * m_wxfont

Protected 属性

BeString m_font_name
int m_font_height
int m_point_height
UINT m_font_style
int m_font_size
int m_font_em
int m_font_ascent
int m_height_no_scale

详细描述

字体

构造及析构函数说明

◆ GFont() [1/7]

BUI::GFont::GFont ( )

◆ ~GFont() [1/7]

BUI::GFont::~GFont ( )

◆ GFont() [2/7]

BUI::GFont::GFont ( )

◆ ~GFont() [2/7]

BUI::GFont::~GFont ( )

◆ GFont() [3/7]

BUI::GFont::GFont ( )

◆ ~GFont() [3/7]

BUI::GFont::~GFont ( )

◆ GFont() [4/7]

BUI::GFont::GFont ( )

◆ ~GFont() [4/7]

BUI::GFont::~GFont ( )

◆ GFont() [5/7]

BUI::GFont::GFont ( )

◆ ~GFont() [5/7]

BUI::GFont::~GFont ( )

◆ GFont() [6/7]

BUI::GFont::GFont ( )

◆ ~GFont() [6/7]

BUI::GFont::~GFont ( )

◆ GFont() [7/7]

BUI::GFont::GFont ( )

◆ ~GFont() [7/7]

BUI::GFont::~GFont ( )

成员函数说明

◆ ApplyAttribute()

void BUI::GFont::ApplyAttribute ( float scale)

◆ ChangeSizeWithDPI() [1/4]

void BUI::GFont::ChangeSizeWithDPI ( double dpi_scale)

根据动态DPI适应大小尺寸

参数
dpi_scale缩放比例

◆ ChangeSizeWithDPI() [2/4]

void BUI::GFont::ChangeSizeWithDPI ( double dpi_scale)

根据动态DPI适应大小尺寸

参数
dpi_scale缩放比例

◆ ChangeSizeWithDPI() [3/4]

void BUI::GFont::ChangeSizeWithDPI ( double dpi_scale)

根据动态DPI适应大小尺寸

参数
dpi_scale缩放比例

◆ ChangeSizeWithDPI() [4/4]

void BUI::GFont::ChangeSizeWithDPI ( double dpi_scale)

◆ CreateFontObject() [1/7]

void BUI::GFont::CreateFontObject ( LPCTSTR name,
int font_height,
UINT style )

Create a Font Object object

参数
name字体名称
font_height字体高度
style字体风格:SGFontStyle={FS_BOLD,FS_ITALIC,FS_UNDERLINE}

◆ CreateFontObject() [2/7]

void BUI::GFont::CreateFontObject ( LPCTSTR name,
int font_height,
UINT style )

Create a Font Object object

参数
name字体名称
font_height字体高度
style字体风格:SGFontStyle={FS_BOLD,FS_ITALIC,FS_UNDERLINE}

◆ CreateFontObject() [3/7]

void BUI::GFont::CreateFontObject ( LPCTSTR name,
int font_height,
UINT style )

Create a Font Object object

参数
name字体名称
font_height字体高度
style字体风格:SGFontStyle={FS_BOLD,FS_ITALIC,FS_UNDERLINE}

◆ CreateFontObject() [4/7]

void BUI::GFont::CreateFontObject ( LPCTSTR name,
int font_height,
UINT style )

Create a Font Object object

参数
name字体名称
font_height字体高度
style字体风格:SGFontStyle={FS_BOLD,FS_ITALIC,FS_UNDERLINE}

◆ CreateFontObject() [5/7]

void BUI::GFont::CreateFontObject ( LPCTSTR name,
int font_height,
UINT style )

Create a Font Object object

参数
name字体名称
font_height字体高度
style字体风格:SGFontStyle={FS_BOLD,FS_ITALIC,FS_UNDERLINE}

◆ CreateFontObject() [6/7]

void BUI::GFont::CreateFontObject ( LPCTSTR name,
int font_height,
UINT style )

Create a Font Object object

参数
name字体名称
font_height字体高度
style字体风格:SGFontStyle={FS_BOLD,FS_ITALIC,FS_UNDERLINE}

◆ CreateFontObject() [7/7]

void BUI::GFont::CreateFontObject ( LPCTSTR name,
int font_height,
UINT style )

Create a Font Object object

参数
name字体名称
font_height字体高度
style字体风格:SGFontStyle={FS_BOLD,FS_ITALIC,FS_UNDERLINE}

◆ FontName() [1/7]

LPCTSTR BUI::GFont::FontName ( ) const

◆ FontName() [2/7]

LPCTSTR BUI::GFont::FontName ( ) const

◆ FontName() [3/7]

LPCTSTR BUI::GFont::FontName ( ) const

◆ FontName() [4/7]

LPCTSTR BUI::GFont::FontName ( ) const

◆ FontName() [5/7]

LPCTSTR BUI::GFont::FontName ( ) const

◆ FontName() [6/7]

LPCTSTR BUI::GFont::FontName ( ) const

◆ FontName() [7/7]

LPCTSTR BUI::GFont::FontName ( ) const

◆ FontPixelHeight() [1/7]

int BUI::GFont::FontPixelHeight ( ) const

◆ FontPixelHeight() [2/7]

int BUI::GFont::FontPixelHeight ( ) const

◆ FontPixelHeight() [3/7]

int BUI::GFont::FontPixelHeight ( ) const

◆ FontPixelHeight() [4/7]

int BUI::GFont::FontPixelHeight ( ) const

◆ FontPixelHeight() [5/7]

int BUI::GFont::FontPixelHeight ( ) const

◆ FontPixelHeight() [6/7]

int BUI::GFont::FontPixelHeight ( ) const

◆ FontPixelHeight() [7/7]

int BUI::GFont::FontPixelHeight ( ) const

◆ FontPointHeight() [1/7]

int BUI::GFont::FontPointHeight ( ) const

◆ FontPointHeight() [2/7]

int BUI::GFont::FontPointHeight ( ) const

◆ FontPointHeight() [3/7]

int BUI::GFont::FontPointHeight ( ) const

◆ FontPointHeight() [4/7]

int BUI::GFont::FontPointHeight ( ) const

◆ FontPointHeight() [5/7]

int BUI::GFont::FontPointHeight ( ) const

◆ FontPointHeight() [6/7]

int BUI::GFont::FontPointHeight ( ) const

◆ FontPointHeight() [7/7]

int BUI::GFont::FontPointHeight ( ) const

◆ FontStyle() [1/7]

UINT BUI::GFont::FontStyle ( ) const

◆ FontStyle() [2/7]

UINT BUI::GFont::FontStyle ( ) const

◆ FontStyle() [3/7]

UINT BUI::GFont::FontStyle ( ) const

◆ FontStyle() [4/7]

UINT BUI::GFont::FontStyle ( ) const

◆ FontStyle() [5/7]

UINT BUI::GFont::FontStyle ( ) const

◆ FontStyle() [6/7]

UINT BUI::GFont::FontStyle ( ) const

◆ FontStyle() [7/7]

UINT BUI::GFont::FontStyle ( ) const

◆ GetCellAscent()

int BUI::GFont::GetCellAscent ( ) const

◆ GetEmHeight()

int BUI::GFont::GetEmHeight ( ) const

◆ GetTextCharsSize() [1/7]

void BUI::GFont::GetTextCharsSize ( LPCTSTR text,
std::vector< int > & out_list ) const

◆ GetTextCharsSize() [2/7]

void BUI::GFont::GetTextCharsSize ( LPCTSTR text,
std::vector< int > & out_list ) const

◆ GetTextCharsSize() [3/7]

void BUI::GFont::GetTextCharsSize ( LPCTSTR text,
std::vector< int > & out_list ) const

◆ GetTextCharsSize() [4/7]

void BUI::GFont::GetTextCharsSize ( LPCTSTR text,
std::vector< int > & out_list ) const

◆ GetTextCharsSize() [5/7]

void BUI::GFont::GetTextCharsSize ( LPCTSTR text,
std::vector< int > & out_list ) const

◆ GetTextCharsSize() [6/7]

void BUI::GFont::GetTextCharsSize ( LPCTSTR text,
std::vector< int > & out_list ) const

将字符串每个字符的宽度,读取到数组中

◆ GetTextCharsSize() [7/7]

void BUI::GFont::GetTextCharsSize ( LPCTSTR text,
std::vector< int > & out_list ) const

◆ GetTextGlyph() [1/7]

int BUI::GFont::GetTextGlyph ( GPathStorage & path,
LPCTSTR text,
int len,
int word_space = 0 )

◆ GetTextGlyph() [2/7]

int BUI::GFont::GetTextGlyph ( GPathStorage & path,
LPCTSTR text,
int len,
int word_space = 0 )

◆ GetTextGlyph() [3/7]

int BUI::GFont::GetTextGlyph ( GPathStorage & path,
LPCTSTR text,
int len,
int word_space = 0 )

◆ GetTextGlyph() [4/7]

int BUI::GFont::GetTextGlyph ( GPathStorage & path,
LPCTSTR text,
int len,
int word_space = 0 )

◆ GetTextGlyph() [5/7]

int BUI::GFont::GetTextGlyph ( GPathStorage & path,
LPCTSTR text,
int len,
int word_space = 0 )

◆ GetTextGlyph() [6/7]

int BUI::GFont::GetTextGlyph ( GPathStorage & path,
LPCTSTR text,
int len,
int word_space = 0 )

◆ GetTextGlyph() [7/7]

int BUI::GFont::GetTextGlyph ( GPathStorage & path,
LPCTSTR text,
int len,
int word_space = 0 ) const

◆ GetTextSize() [1/7]

SIZE BUI::GFont::GetTextSize ( LPCTSTR text,
int len = -1 ) const

◆ GetTextSize() [2/7]

SIZE BUI::GFont::GetTextSize ( LPCTSTR text,
int len = -1 ) const

◆ GetTextSize() [3/7]

SIZE BUI::GFont::GetTextSize ( LPCTSTR text,
int len = -1 ) const

◆ GetTextSize() [4/7]

SIZE BUI::GFont::GetTextSize ( LPCTSTR text,
int len = -1 ) const

◆ GetTextSize() [5/7]

SIZE BUI::GFont::GetTextSize ( LPCTSTR text,
int len = -1 ) const

◆ GetTextSize() [6/7]

SIZE BUI::GFont::GetTextSize ( LPCTSTR text,
int len = -1 ) const

◆ GetTextSize() [7/7]

SIZE BUI::GFont::GetTextSize ( LPCTSTR text,
int len = -1 ) const

◆ GetTextSizeA() [1/7]

SIZE BUI::GFont::GetTextSizeA ( const char * text,
int len = -1 ) const

◆ GetTextSizeA() [2/7]

SIZE BUI::GFont::GetTextSizeA ( const char * text,
int len = -1 ) const

◆ GetTextSizeA() [3/7]

SIZE BUI::GFont::GetTextSizeA ( const char * text,
int len = -1 ) const

◆ GetTextSizeA() [4/7]

SIZE BUI::GFont::GetTextSizeA ( const char * text,
int len = -1 ) const

◆ GetTextSizeA() [5/7]

SIZE BUI::GFont::GetTextSizeA ( LPCSTR text,
int len = -1 ) const

◆ GetTextSizeA() [6/7]

SIZE BUI::GFont::GetTextSizeA ( LPCSTR text,
int len = -1 ) const

◆ GetTextSizeA() [7/7]

SIZE BUI::GFont::GetTextSizeA ( LPCSTR text,
int len = -1 ) const

◆ GetTextSizeW() [1/7]

SIZE BUI::GFont::GetTextSizeW ( LPCWSTR text,
int len = -1 ) const

◆ GetTextSizeW() [2/7]

SIZE BUI::GFont::GetTextSizeW ( LPCWSTR text,
int len = -1 ) const

◆ GetTextSizeW() [3/7]

SIZE BUI::GFont::GetTextSizeW ( LPCWSTR text,
int len = -1 ) const

◆ GetTextSizeW() [4/7]

SIZE BUI::GFont::GetTextSizeW ( LPCWSTR text,
int len = -1 ) const

◆ GetTextSizeW() [5/7]

SIZE BUI::GFont::GetTextSizeW ( LPCWSTR text,
int len = -1 ) const

◆ GetTextSizeW() [6/7]

SIZE BUI::GFont::GetTextSizeW ( LPCWSTR text,
int len = -1 ) const

◆ GetTextSizeW() [7/7]

SIZE BUI::GFont::GetTextSizeW ( LPCWSTR text,
int len = -1 ) const

◆ GetTextSizeWithNewline() [1/7]

int BUI::GFont::GetTextSizeWithNewline ( LPCTSTR text,
int len,
TextMultilineInfo * tml,
BOOL is_only_max_size = FALSE ) const

◆ GetTextSizeWithNewline() [2/7]

int BUI::GFont::GetTextSizeWithNewline ( LPCTSTR text,
int len,
TextMultilineInfo * tml,
BOOL is_only_max_size = FALSE ) const

◆ GetTextSizeWithNewline() [3/7]

int BUI::GFont::GetTextSizeWithNewline ( LPCTSTR text,
int len,
TextMultilineInfo * tml,
BOOL is_only_max_size = FALSE ) const

◆ GetTextSizeWithNewline() [4/7]

int BUI::GFont::GetTextSizeWithNewline ( LPCTSTR text,
int len,
TextMultilineInfo * tml,
BOOL is_only_max_size = FALSE ) const

◆ GetTextSizeWithNewline() [5/7]

int BUI::GFont::GetTextSizeWithNewline ( LPCTSTR text,
int len,
TextMultilineInfo * tml,
BOOL is_only_max_size = FALSE ) const

◆ GetTextSizeWithNewline() [6/7]

int BUI::GFont::GetTextSizeWithNewline ( LPCTSTR text,
int len,
TextMultilineInfo * tml,
BOOL is_only_max_size = FALSE ) const

◆ GetTextSizeWithNewline() [7/7]

int BUI::GFont::GetTextSizeWithNewline ( LPCTSTR text,
int len,
TextMultilineInfo * tml,
BOOL is_only_max_size = FALSE ) const

类成员变量说明

◆ m_CTFont

void* BUI::GFont::m_CTFont

◆ m_dy

int BUI::GFont::m_dy

◆ m_font

PangoFontDescription * BUI::GFont::m_font

◆ m_font_ascent

int BUI::GFont::m_font_ascent
protected

◆ m_font_em

int BUI::GFont::m_font_em
protected

◆ m_font_gdi

HFONT BUI::GFont::m_font_gdi

◆ m_font_height

int BUI::GFont::m_font_height
protected

◆ m_font_name

BeString BUI::GFont::m_font_name
protected

◆ m_font_size

int BUI::GFont::m_font_size
protected

◆ m_font_style

UINT BUI::GFont::m_font_style
protected

◆ m_height_no_scale

int BUI::GFont::m_height_no_scale
protected

◆ m_lf

LOGFONT BUI::GFont::m_lf

◆ m_point_height

int BUI::GFont::m_point_height
protected

◆ m_qt_font

QFont BUI::GFont::m_qt_font

◆ m_ttf_font

void* BUI::GFont::m_ttf_font

◆ m_wxfont

wxFont* BUI::GFont::m_wxfont
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有