Hi

Im not sure if this is the last time it was changed, but inspecting the log
it was changed a revision 6602 from

unsigned int sizeAdjustment = 0; // was 1.
to
unsigned int sizeAdjustment = 1;

With the following comment: *Reorganised the managment of margins around
glyphs so that is done entirely with src/osgText/Font.cpp rather than the
font plugins or Text.cpp*
**
Not really sure why, but I couldent help looking for it so I might as well
share.

Brgs.

Ralf Stokholm



2010/3/18 Mathias Fröhlich <[email protected]>

>
> Hi,
>
> On Wednesday 17 March 2010, Farshid Lashkari wrote:
> > I'm in the process of porting our application from OSG 1.2 to 2.9. One
> > major issue that immediately stood out was the quality of osgText. All
> the
> > letters seem to be cut off by one pixel along the edges. There has been a
> > lot of changes since 1.2, but I did find one setting that seemed to fix
> the
> > issue for me.
> >
> > On line 539 of Font.cpp there is a hard-coded variable called
> > sizeAdjustment that is set to 1. In OSG 1.2 this value was set to 0.
> > Changing this value back to 0 pretty much resolves the quality issue for
> > me. I've attached a screenshot comparing the result of changing the
> value.
> >
> > Does anybody else notice these artifacts? Is there a downside to changing
> > the sizeAdjustment value back to 0? Any insight is appreciated.
> Yes, I was coding around that in the QFont implementation by an own margin
> that appeared to fix that problem. That left the original reason on the
> todo
> list ...
> Glad to see that we know where this happens.
>
> Greetings
>
> Mathias
>
> --
> Dr. Mathias Fröhlich, science + computing ag, Software Solutions
> Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
> Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
> --
> Vorstand/Board of Management:
> Dr. Bernd Finkbeiner, Dr. Roland Niemeier,
> Dr. Arno Steitz, Dr. Ingrid Zech
> Vorsitzender des Aufsichtsrats/
> Chairman of the Supervisory Board:
> Michel Lepert
> Sitz/Registered Office: Tuebingen
> Registergericht/Registration Court: Stuttgart
> Registernummer/Commercial Register No.: HRB 382196
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Ralf Stokholm
Director R&D
Email: [email protected]
Phone: +45 28 30 83 52
Web: www.arenalogic.com

This transmission and any accompanying documents are intended only for
confidential use of the designated recipient(s) identified above.  This
message contains proprietary information belonging to Arenalogic Aps.  If
you have received this message by error, please notify the sender.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to