以下成員源於類 QFontMetrics 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
int
|
charWidth (const QString & text , int pos ) const |
Returns the width of the character at position pos in the string text .
The whole string is needed, as the glyph drawn may change depending on the context (the letter before and after the current one) for some languages (e.g. Arabic).
This function also takes non spacing marks and ligatures into account.