1. only glfont is required

2. font stuff is always in points. You raise a good point about the granularity, but this will not be addressed in 601.

3. I'm reluctant to add the Overhang member to the glqtextmetric result. You should use glqextent in laying out text rather than trying to do calcs with extra textmetrics info. I believe that if you did a glqextent on text with a normal and then a bold font you would in fact determine the overhang value more acurately than is returned in textmetrics.

4. SetTextCharacterExtra won't be supported in 601. It may be considered for future releases if there is a strong argument for its support.

----- Original Message ----- From: "bill lam" <[EMAIL PROTECTED]>
To: "Beta forum" <[email protected]>
Sent: Wednesday, August 09, 2006 4:30 AM
Subject: [Jbeta] glqtextmetrics related


environment: J601 p beta/win32
J504
glqtextmetrics '' ; return font information. The context (screen or printer) is selected by glextent and the font is selected by glextentfont. The values are: Height, Ascent, Descent, InternalLeading, ExternalLeading, AverageCharWidth,
MaxCharWidth

J601
glqtextmetrics '' ; return font information: Height, Ascent, Descent,
InternalLeading, ExternalLeading, AverageCharWidth, MaxCharWidth

1. In J601, there is no glextend and glextentfont, so is it sufficient to set
glfont before calling glqtextmetrics?

2. In J504, the values are in logical unit (pixel,twips...) depending on mapping mode. In J601 I suspect the values are always in points, because the values are rounded and point is a rather large unit, it becomes inaccurate. Could the
values either use logical unit, or double precision point values?

3. could it also give the "Overhang" member in TEXTMETRIC? It is useful to
calculate exact width of bold and italic text.

4. Sometimes the font size is correct, but the text is too crowded. Will it be possible to add a gl command that equivalent to SetTextCharacterExtra ?

--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to