以下成员源于类 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.