📄 mgfontmetrics.h
字号:
#ifndef _MGFONTMETRICS_H_#define _MGFONTMETRICS_H_class MGHTMLPart;#include "mgfont.h"class MGFontMetrics{public: MGFontMetrics(); ~MGFontMetrics(); MGFontMetrics( const MGFont&, MGHTMLPart* ); MGFontMetrics( const MGFontMetrics& ); MGFontMetrics( const MGPainter* ); int ascent() const; int descent() const; int width( char ) const; int width( MGChar ) const; int width( const MGString&, int len = -1 ) const; int height() const; MGRect boundingRect( const MGString&, int len = -1 ) const; MGRect boundingRect( const MGChar& ); int leftBearing( MGChar ) const; int rightBearing( MGChar ) const; int getFirstWordLen (const MGString&, int len, int* nr_delim = NULL) const; int getFirstCharLen (const MGString&, int len) const; bool fixedPitch () const;protected: friend class MGFontInfo;#if( _CURRENT_PLATFORM == _PLATFORM_MINIGUI ) MGFont font; MGHTMLPart* part;#endif};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -