Patrick Daehne wrote:
Hello Allen,
- The maxExtend parameter of the text layout params seems to be
ignored. Is this a known issue?
Yes, maxExtend is not implemented. maxExtend just exists to include all VRML
parameters into the interface, it is a placeholder for a future
implementation.
- The length parameter for a line doesn't scale as I would expect from
reading the VRML spec. It does scale on screen string to take up less
space, but it does not compress the characters/glyphs themselves for
rendering. Instead it stacks the letter up on top of each other which
doesn't look very good IMHO. Would it be possible to just scale the text?
Well, the X3D/VRML spec from http://www.web3d.org/ says:
"If the string is too short, it is stretched (either by scaling the text or
by adding space between the characters). If the string is too long, it is
compressed (either by scaling the text or by subtracting space between the
characters)."
My implementation of the length parameter adds or subtracts space between
the characters. Scaling is not possible, because the result of the layout
operation is only the position of the glyphs (no scaling factor). It would
be possible to implement scaling on Linux, because on Linux I'm using my own
layout algorithm. But on Windows and MacOS, I just take the layout result
from the native APIs, so there is no chance to implement scaling.
Understood. I was really hoping for a scaling implementation but I can
understand why you weren't able to do that. Without scaling, shrinking
text really just doesn't look good because the textured glyphs start to
overlap each other. The end result is just that the text ends up
looking poor and isn't good enough for me to use in a professional
application. I will just have to watch out for this and make sure none
of my text has to be shrunk.
Thanks,
Allen
PS. I really like the quality of the text and the text API overall. It
is a very good design. I think I am just pushing it in some ways that
are a little outside the norm. :)
BTW, for vertical (top-to-bottom) text, the Freetype2 library is broken and
provides invalid metrics, so I had to implement a workaround that does not
produce very good results. Maybe that is the reason why your text looks
ugly.
Bye,
Patrick
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users