On 7/2/07, Csaba Halász <[EMAIL PROTECTED]> wrote:
Well, the X11 refers to the set of returned values.
Quote from the docs: Return a string describing the format of a given
face, using values which can be used as an X11 FONT_PROPERTY. Possible
values are 'TrueType', 'Type 1', 'BDF', 'PCF', 'Type 42', 'CID Type
1', 'CFF', 'PFR', and 'Windows FNT'.
What kind of autodetection do you have in mind? I can't say exactly
under what circumstances monochrome rendering could be preferable.
Looking at the above shopping list is does look like this font
property is the appropriate method to determining if monochrome is
appropriate.
It
might even be affected by external factors, such as scaling or
rotation.
Indeed. I suspect that automatic mipmap generation is having an
effect in this case. Is the screen res much lower that the font
resolution being chosen? If so then minification of the texture will
be active, so that mipmapping on the font texture will used.
mipmapping is good for general texturing for avoiding texture aliasing
artifacts but it won't always reproduce fine details well - so this
will include font rendering.
Creating the mipmap levels by hand might be appropriate - one could
possible even use freetype to help create optimized glyps for each
mipmap level.
W.r.t mipmapping loosing quality, matching the font res to the
projected screen res of the text will help even things up a bit.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/