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

Public 成员函数

 GFont ()
 
 ~GFont ()
 
void CreateFontObject (LPCTSTR name, int fHeight, 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 > &outList) const
 
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *textinfo, BOOL isOnlyMaxSize=FALSE) const
 
int GetTextGlyph (GPathStorage &path, LPCTSTR text, int len, int word_space=0)
 
 GFont ()
 
 ~GFont ()
 
void CreateFontObject (LPCTSTR name, int fHeight, 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 > &outList) const
 
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *textinfo, BOOL isOnlyMaxSize=FALSE) const
 
int GetTextGlyph (GPathStorage &path, LPCTSTR text, int len, int word_space=0)
 
 GFont ()
 
 ~GFont ()
 
void CreateFontObject (LPCTSTR name, int fHeight, 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 > &outList) const
 
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *textinfo, BOOL isOnlyMaxSize=FALSE) const
 
int GetTextGlyph (GPathStorage &path, LPCTSTR text, int len, int word_space=0)
 
 GFont ()
 
 ~GFont ()
 
void CreateFontObject (LPCTSTR name, int fHeight, 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 > &outList) const
 
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *textinfo, BOOL isOnlyMaxSize=FALSE) const
 
int GetTextGlyph (GPathStorage &path, LPCTSTR text, int len, int word_space=0)
 
 GFont ()
 
 ~GFont ()
 
void CreateFontObject (LPCTSTR name, int fHeight, 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 > &outList) const
 
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *textinfo, BOOL isOnlyMaxSize=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 fHeight, 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 GetTextSizeW (LPCWSTR text, int len=-1) const
 
SIZE GetTextSizeA (const char *text, int len=-1) const
 
void GetTextCharsSize (LPCTSTR text, std::vector< int > &outList) const
 将字符串每个字符的宽度,读取到数组中
 
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *textinfo, BOOL isOnlyMaxSize=FALSE) const
 
int GetTextGlyph (GPathStorage &path, LPCTSTR text, int len, int word_space=0)
 
 GFont ()
 
 ~GFont ()
 
void CreateFontObject (LPCTSTR name, int fHeight, 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 > &outList) const
 
int GetTextSizeWithNewline (LPCTSTR text, int len, TextMultilineInfo *textinfo, BOOL isOnlyMaxSize=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_ttfFont
 
HFONT m_hFontGDI
 
LOGFONT m_lf
 
wxFont * m_wxfont
 

Protected 属性

BeString m_fontname
 
int m_fHeight
 
int m_pointHeight
 
UINT m_fStyle
 
int m_font_size
 
int m_fHeightNoScale
 

构造及析构函数说明

◆ 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  fHeight,
UINT  style 
)

Create a Font Object object

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

◆ CreateFontObject() [2/7]

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

Create a Font Object object

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

◆ CreateFontObject() [3/7]

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

Create a Font Object object

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

◆ CreateFontObject() [4/7]

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

Create a Font Object object

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

◆ CreateFontObject() [5/7]

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

Create a Font Object object

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

◆ CreateFontObject() [6/7]

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

Create a Font Object object

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

◆ CreateFontObject() [7/7]

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

Create a Font Object object

参数
name字体名称
fHeight字体高度
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

◆ GetTextCharsSize() [1/7]

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

◆ GetTextCharsSize() [2/7]

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

◆ GetTextCharsSize() [3/7]

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

◆ GetTextCharsSize() [4/7]

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

◆ GetTextCharsSize() [5/7]

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

◆ GetTextCharsSize() [6/7]

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

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

◆ GetTextCharsSize() [7/7]

void BUI::GFont::GetTextCharsSize ( LPCTSTR  text,
std::vector< int > &  outList 
) 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 *  textinfo,
BOOL  isOnlyMaxSize = FALSE 
) const

◆ GetTextSizeWithNewline() [2/7]

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

◆ GetTextSizeWithNewline() [3/7]

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

◆ GetTextSizeWithNewline() [4/7]

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

◆ GetTextSizeWithNewline() [5/7]

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

◆ GetTextSizeWithNewline() [6/7]

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

◆ GetTextSizeWithNewline() [7/7]

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

类成员变量说明

◆ m_CTFont

void* BUI::GFont::m_CTFont

◆ m_dy

int BUI::GFont::m_dy

◆ m_fHeight

int BUI::GFont::m_fHeight
protected

◆ m_fHeightNoScale

int BUI::GFont::m_fHeightNoScale
protected

◆ m_font

PangoFontDescription * BUI::GFont::m_font

◆ m_font_size

int BUI::GFont::m_font_size
protected

◆ m_fontname

BeString BUI::GFont::m_fontname
protected

◆ m_fStyle

UINT BUI::GFont::m_fStyle
protected

◆ m_hFontGDI

HFONT BUI::GFont::m_hFontGDI

◆ m_lf

LOGFONT BUI::GFont::m_lf

◆ m_pointHeight

int BUI::GFont::m_pointHeight
protected

◆ m_qt_font

QFont BUI::GFont::m_qt_font

◆ m_ttfFont

void* BUI::GFont::m_ttfFont

◆ m_wxfont

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