[Jbeta] glqtextmetrics related

2006-08-09 Thread bill lam
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

Re: [Jbeta] glqtextmetrics related

2006-08-09 Thread Eric Iverson
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

[Jbeta] definition of RGB value for glpixels

2006-08-09 Thread bill lam
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:

Re: [Jbeta] glqtextmetrics related

2006-08-09 Thread bill lam
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

[Jbeta] glqtextmetrics in jzplot

2006-08-09 Thread bill lam
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

Re: [Jbeta] glqtextmetrics related

2006-08-09 Thread Eric Iverson
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

Re: [Jbeta] glqtextmetrics related

2006-08-09 Thread bill lam
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

Re: [Jbeta] glqtextmetrics related

2006-08-09 Thread Eric Iverson
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