PRB: FONTMETRIC Returns Different Values for Courier FontID: Q110765 The information in this article applies to:
SYMPTOMSFONTMETRIC(6) and FONTMETRIC(7) do not return the same values for the Courier font. The Courier font on the Macintosh platform is not a monospaced font. FONTMETRIC(6) returns the average character width in pixels. FONTMETRIC(7) returns the maximum character width in pixels. For monospace fonts, these return values should be identical.
RESOLUTIONAs an alternative, you can use the following code. These commands will return the same value if the font is monospace.
STATUSThis behavior is by design.
MORE INFORMATIONTo reproduce this problem, type the following commands in the Command window:
The first command returns 7 and the second command returns 11.
Additional reference words: vFoxMac 3.00b FoxMac 2.50b mono-spaced monospaced KBCategory: kbprg kbprb KBSubcategory: |
Last Reviewed: June 12, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |