Re: [osg-users] osgText::Text character spacing

2011-06-16 Thread Robert Osfield
Hi Thorsten, I'm just following up of the txd font sizing issue, looking to resolve outstanding issues before I tag the OSG-3.0 branch tomorrow. I'd probably need to find someone knowing more about osg to do that. Currently I'm also trying to find out/estimate how many of our aircraft are

Re: [osg-users] osgText::Text character spacing

2011-05-19 Thread Thorsten Brehm
Hi Robert, On Wed, May 18, 2011 at/14:18:05/, Robert Osfield wrote: Could you create a small example that prints the a set of different fonts at different sizes against quad the same hight as the font for reference. Running this against OSG-2.8.x and OSG-2.9.15+/svn/trunk will reveal a bit

Re: [osg-users] osgText::Text character spacing

2011-05-18 Thread Thorsten Brehm
On 17.05.2011 01:57, Robert Osfield wrote: Text sizing will be a little different as I there were bugs in the way that 2D and 3D text was sized, while now the two are consistent, and different resolutions of the glyphs don't affect the results. These bug fixes will lead to changes in sizes

Re: [osg-users] osgText::Text character spacing

2011-05-18 Thread Robert Osfield
Hi Thorsten, On Wed, May 18, 2011 at 9:00 PM, Thorsten Brehm bre...@gmail.com wrote: I was able to reproduce the problem now. Sometimes the font is slightly too large, sometimes too small, and sometimes almost unchanged. Example: http://imageshack.us/photo/my-images/101/osgtxfcomparison.jpg/

Re: [osg-users] osgText::Text character spacing

2011-05-17 Thread Robert Osfield
Hi Thirston, On Mon, May 16, 2011 at 10:55 PM, Thorsten Brehm bre...@gmail.com wrote: thanks for looking into the txf font issue. Your patch fixed the issue for me - thanks resolving this so quickly! Good to hear things working better again. I got one report though, saying the txf font is

Re: [osg-users] osgText::Text character spacing

2011-05-16 Thread Thorsten Brehm
Robert, thanks for looking into the txf font issue. Your patch fixed the issue for me - thanks resolving this so quickly! I got one report though, saying the txf font is still slightly larger than it used to be - so some of our text labels don't fit any longer. I haven't been able to

Re: [osg-users] osgText::Text character spacing

2011-05-13 Thread Frederic Bouvier
Hi Robert Thorsten, I simply merged r12395 in my 2.9.14 branch and got this : http://frbouvi.free.fr/flightsim/fgfs-txf-fonts.jpg oversized font! Regards, -Fred - Robert Osfield a écrit : Hi Thorsten, I have tracked down the problem to the txf plugin not setting the width and

Re: [osg-users] osgText::Text character spacing

2011-05-13 Thread Robert Osfield
Hi Frederic, I've just modified the osgtext example to use the Helvetica.txf and see the problem with oversized text.. The text has the right spacing, but is just too large... I didn't spot the size problem yesterday as the osgtext3D usage had the viewer moving the eye point back to view the

Re: [osg-users] osgText::Text character spacing

2011-05-13 Thread Magnus Kessler
On Friday 13 May 2011 09:19:38 Frederic Bouvier wrote: Hi Robert Thorsten, I simply merged r12395 in my 2.9.14 branch and got this : http://frbouvi.free.fr/flightsim/fgfs-txf-fonts.jpg oversized font! Yes, I see the same with yesterday's head revisions of OSG and flightgear/simgear.

Re: [osg-users] osgText::Text character spacing

2011-05-13 Thread Robert Osfield
Hi Frederic and Magnus, On Fri, May 13, 2011 at 9:14 AM, Robert Osfield robert.osfi...@gmail.com wrote: Not sure where the culprit lies, it might be lack of scaling on the osgText side, or perhaps just needing to rescale the sizes in txf.  I will  dig into the code and see what is going on. I

Re: [osg-users] osgText::Text character spacing

2011-05-13 Thread Magnus Kessler
On Friday 13 May 2011 12:28:37 Robert Osfield wrote: Hi Frederic and Magnus, On Fri, May 13, 2011 at 9:14 AM, Robert Osfield robert.osfi...@gmail.com wrote: Not sure where the culprit lies, it might be lack of scaling on the osgText side, or perhaps just needing to rescale the sizes in

Re: [osg-users] osgText::Text character spacing

2011-05-13 Thread Robert Osfield
Hi Magnus, On Fri, May 13, 2011 at 5:16 PM, Magnus Kessler magnus.kess...@gmx.net wrote: Thanks, Robert. Your fix seems to work fine in FlightGear now. Text is now rendered at the right size and with suitable spacing between letters again. Good to hear it working once more. I still haven't

Re: [osg-users] osgText::Text character spacing

2011-05-13 Thread Robert Osfield
Hi All, On Fri, May 13, 2011 at 5:45 PM, Robert Osfield robert.osfi...@gmail.com wrote: I still haven't tracked down the bugs I'm seeing on rendering using txf with the osgtext example, so there is chance that you might see problems later with more intensive use.  I'm still hunting this bug

Re: [osg-users] osgText::Text character spacing

2011-05-12 Thread Robert Osfield
Hi Thorsten, On Mon, May 9, 2011 at 6:41 PM, Thorsten Brehm bre...@gmail.com wrote: Oh, of course, that's our main font: http://www.gitorious.org/fg/fgdata/blobs/raw/958c11a1b8e67c24035c19d2ef75aeeec387c58b/Fonts/Helvetica.txf Plenty more txf fonts available here:

Re: [osg-users] osgText::Text character spacing

2011-05-12 Thread Robert Osfield
Hi Thorsten, I have tracked down the problem to the txf plugin not setting the width and height of the glyph, adding this addressed the sizing/spacing problems I saw when running the osgtext3D --2d --no-3d -f Helvetica.txf test. My fix is now checked into svn/trunk. Could you please test

Re: [osg-users] osgText::Text character spacing

2011-05-09 Thread Robert Osfield
Hi Thorsten, On Sun, May 8, 2011 at 6:49 PM, Thorsten Brehm bre...@gmail.com wrote: Yes, it's the font which makes the difference! We're using txf font files - not freetype. None of our txf fonts works with =r12068. Maybe our files are broken somehow, and don't supply the required kerning

Re: [osg-users] osgText::Text character spacing

2011-05-09 Thread Thorsten Brehm
Hi Robert, On 09.05.2011 09:28, Robert Osfield wrote: Good news, it does rather sound like it's a problem with the txf plugin that hasn't been updated correctly to handle the revisions to osgText. Could you send me an example txf file so that I can test it at my end. Oh, of course, that's

[osg-users] osgText::Text character spacing

2011-05-08 Thread Thorsten Brehm
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

Re: [osg-users] osgText::Text character spacing

2011-05-08 Thread Robert Osfield
Hi Thorsten, What happens when you run osgtext and osgtext3D? The spacing is correct for me for svn/trunk for these two example applications. What OS/Build tools are you using? What version of freetype? Robert. On Sun, May 8, 2011 at 3:23 PM, Thorsten Brehm bre...@gmail.com wrote: Hi, I'm

Re: [osg-users] osgText::Text character spacing

2011-05-08 Thread Thorsten Brehm
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

Re: [osg-users] osgText::Text character spacing

2011-05-08 Thread Robert Osfield
Hi Thorsten, On Sun, May 8, 2011 at 4:35 PM, Thorsten Brehm bre...@gmail.com wrote: 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

Re: [osg-users] osgText::Text character spacing

2011-05-08 Thread Thorsten Brehm
Hi Robert, On Sun, May 8, 2011 at 6:37 PM, Robert Osfield wrote: Curious that osgtext3D is failing. I wonder if you system is picking up fonts that don't have support for reading polygonal descriptions of the fonts. Or perhaps it's the freetype version. It might be worth checking what fonts