comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Why the font is smaller in the IDLgrBuffer ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Why the font is smaller in the IDLgrBuffer ? [message #65330] Fri, 27 February 2009 08:48 Go to next message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Juas jUas,

I figured that there was a reason for the variability of the font
size.

For example, you've an example (http://www.dfanning.com/tip_examples/
zfonts.pro) where you use the ZBUFFER for DirectGraphics and you
multiply the charsize*4 for the same reason.

I think maybe there is a way to know how can we preserve the original
font size...
I tried to get the TextDimensions of the IDLgrText inside the buffer
using GetTextDimensions method. Then I increased the font size using
the relation between the real font size and the size inside the
buffer. It doesn't works.

> They figured mental anguish should be the right of *all* IDL programmers.

Bernat
Re: Why the font is smaller in the IDLgrBuffer ? [message #65333 is a reply to message #65330] Fri, 27 February 2009 08:13 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
bernat writes:

> I've an IDLgrView with some IDLgrTexts using a certain IDLgrFont and I
> convert all of that to an IDLgrImage using an IDLgrBuffer.
> The Buffer has the same dimensions of the View and I use the Draw and
> Read methods.
>
> On the result, the font of all texts is modified and smaller than the
> original.
> Why ?

This is a fairness issue. Direct graphics programmers have
had to deal with this since, well, forever with the Z-graphics
buffer. So the good folks at ITTVIS couldn't let the object
graphics programmers get off scott free. They figured
mental anguish should be the right of *all* IDL programmers.

Cheers,

David

P.S. I don't know this for a fact. It's just my theory. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Why the font is smaller in the IDLgrBuffer ? [message #65420 is a reply to message #65333] Fri, 27 February 2009 11:53 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
I'm pretty sure you need to change the resolution of the IDLgrBuffer so
it matches your screen resolution. The default DPI is 72 which is
usually not your window manager's DPI. I think MS Windows is 96 by
default but I don't know. You can run 'xdpiinfo' (?) on x-windows based
machines to see what your DPI is (or something like that, I'm on a
windows box now so I can't check).

-Rick


David Fanning wrote:
> bernat writes:
>
>> I've an IDLgrView with some IDLgrTexts using a certain IDLgrFont and I
>> convert all of that to an IDLgrImage using an IDLgrBuffer.
>> The Buffer has the same dimensions of the View and I use the Draw and
>> Read methods.
>>
>> On the result, the font of all texts is modified and smaller than the
>> original.
>> Why ?
>
> This is a fairness issue. Direct graphics programmers have
> had to deal with this since, well, forever with the Z-graphics
> buffer. So the good folks at ITTVIS couldn't let the object
> graphics programmers get off scott free. They figured
> mental anguish should be the right of *all* IDL programmers.
>
> Cheers,
>
> David
>
> P.S. I don't know this for a fact. It's just my theory. :-)
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Hide functions from other procedures
Next Topic: Re: 1e38 limit?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:27:38 PDT 2025

Total time taken to generate the page: 0.00563 seconds