Hi Robert,
On Sun, May 8, 2011, Robert Osfield wrote:
> What happens when you run osgtext and osgtext3D? The spacing is
> correct for me for svn/trunk for these two example applications.
The osgtext example also works for me. osgtext3D just exits with
errorcode 1 - but that's likely an unrelated issue. So it must be
triggered by something that our application does differently compared to
the osgtext example.
> What OS/Build tools are you using? What version of freetype?
Linux/x86_64, gcc 4.4.1. Freetype 1.3.1.
Application is FlightGear. We got several reports on this issue -
involving different compilers/OS/... etc. AFAICS OSG >=2.9.11 is the
only thing common to all reports. Also, according to our devel list, no
one has reported any success with osgtext/OSG>=2.9.11 yet. So, it either
has to be a problem with OSG, or a problem with the way our own sources
use osgText (maybe we're somehow relying on some bug which was fixed by
r12068 or the osgText change reveals some problem on our side which so
far had no effect).
What exactly was the intention of the particular change (see diff in
previous email)?
cheers,
Thorsten
> On Sun, May 8, 2011 at 3:23 PM, Thorsten Brehm <[email protected]> wrote:
>> Hi,
>>
>> I'm having a problem with osgText::Text since r12068. Everything is
fine up
>> to r12067, so I'm absolutely certain it's related to this commit:
>> http://www.openscenegraph.org/projects/osg/changeset/12068
>>
>> With this change, osgText::Text has excessive character spacing.
Characters
>> are so far apart that any text is unreadable (only 2-4 characters
fit on the
>> screen using "usual" character sizes/widths...).
>>
>> I've attached a patch which "fixes" the issue for me and restores
"normal"
>> spacing. However, it's simply reverting the relevant changes of r12068.
>> There probably was a good reason to change these lines in the first
place.
>> But I'm at loss why it's not working for me. Maybe something was
broken - or
>> is there anything that requires applications to be adapted when using
>>>=r12068 osgText::Text?
>>
>> That's a sample of how the application is using osgText - nothing fancy
>> really:
>> text = new osgText::Text;
>> text->setFont(font);
>> text->setCharacterSize(0.06);
>> text->setColor(osg::Vec4(1, 1, 1, 1));
>> text->setPosition(osg::Vec3(0, 0.82, 0));
>> text->setAlignment(osgText::Text::CENTER_CENTER);
>> text->setText(Message);
>>
>> Any ideas?
>>
>> cheers,
>> Thorsten
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org