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
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
I look at the oleg's sample image for linux uploaded, it seems the color is
incorrect, blue become orange. I guess this is related to RGB convection for
glpixels.
windows: RGB is an integer with R in the LSB
I'm also interested to know if R or B being in the LSB for cases
Linux:
Mac:
Mac Intel:
Eric Iverson wrote:
2. font stuff is always in points. You raise a good point about the
granularity, but this will not be addressed in 601.
you may also multiplying the values by 1000, so that it will be in point and
more accurate and remains integer.
--
regards,
bill
just checked glqtextmetrics used in J standard scripts, found
pgetascender=: 3 : 0
if. Poutput=iISI do.
glfont y
1 { 0 . glqtextmetrics''
else.
FontScale * getascender y
end.
)
the line
1 { 0 . glqtextmetrics''
looks strange. Should it be
1 { glqtextmetrics''
--
regards,
bill
You could try doing it with an API call. Use glqhandles to get the
drawing hdc (3rd element) and then do a cd call to
SetTextCharacterExtra. If it works, great. If it doesn't, I'd rather not
hear about it :)
- Original Message -
From: bill lam [EMAIL PROTECTED]
To: Beta forum
Eric Iverson wrote:
You could try doing it with an API call. Use glqhandles to get the
drawing hdc (3rd element) and then do a cd call to
SetTextCharacterExtra. If it works, great. If it doesn't, I'd rather not
hear about it :)
You may want to hear :-)
Actually I had already tried
The qhandles result didn't properly handle the case of the printerhdc.
Please try again in the next release. Note that the glqhandles has to be
done in the print event to get the hdc you want.
- Original Message -
From: bill lam [EMAIL PROTECTED]
To: Beta forum beta@jsoftware.com