Hi Syd,
I use the <text> (aka OSG Text) a lot in Aircraft/A380/XML/Flightdeck/Pedestal/mcdu_new_display_01.xml But if you are after a zero filled format, have a look in Aircraft/A380/XML/Glareshield/fcu.xml <text> <name>FCU.hdg.degs</name> <axis-alignment>yz-plane</axis-alignment> <alignment>right-bottom</alignment> <offsets> <pitch-deg>-90.0</pitch-deg> <x-m>-0.068</x-m> <y-m>-0.035</y-m> <z-m>-0.0009</z-m> </offsets> <type>number-value</type> <property type="string">/instrumentation/afs/heading-bug-deg</property> <format type="string">%03.0f</format> <font>led.txf</font> <character-size type="double">0.009</character-size> </text> I'm not sure what you were after with %2.0f but the example you give looks correct to me. I don't think I've had to use scaling on any text values though. S. On Thu, 2011-02-10 at 13:26 -0700, syd adams wrote: > Hi guys, > I.ve been working at changing over the Citation X EFIS to use 3d text > ,but having a few problems. The property scale and offset don't work > here , and formating doesnt behave like I expected ... for example , > <format>%2.0f</format> for altitude at 3029.23341234 prints 3029 . > Scaling the property by 0.01 prints the same. > Are there any working examples I can compare with ? I'm also wondering > if it's an OSG error, (2.9.10), but I'm not to familiar with > Callbacks.... the text code has several " if(numeric)" checks , but I > can't figure out where "numeric" is set . > Thanks in advance if anyone can shed light on this. > Syd > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Flightgear-devel mailing list > Flightgear-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flightgear-devel ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel