Hi to all, Just registered here, Hope I'm in the right forums (if not my apologizes).
I was hoping to pick someones knowledgeable brain....... I'm having a bit of trouble implementing the AlternateFont objects in one of the xml gauges I'm creating... I'm using the \{fnt1} and \{fnt} to turn on and off the alternate font using the child properties, but I can only get it to recognize the Font Size, not the the new "Font" I want to switch to... I'm fairly new to xml, so I maybe setting up the child properties incorrectly... here's a snippet of one of the elements... child properties are in bold.
What I'm trying to do is change the "KT" to Font "Arial" and Font Size "16"... the font size part is working, just can't change the font to Arial.
I've included the Url's for reference. my understanding from the aforementioned url's this should work, as Microsoft states
Any help would be much a appreciated.
http://msdn.microsoft.com/en-us/library/cc526953.aspx#AlternateFont
http://msdn.microsoft.com/en-us/library/cc526953.aspx#EscapeCodes
Best regards,
John H,
I was hoping to pick someones knowledgeable brain....... I'm having a bit of trouble implementing the AlternateFont objects in one of the xml gauges I'm creating... I'm using the \{fnt1} and \{fnt} to turn on and off the alternate font using the child properties, but I can only get it to recognize the Font Size, not the the new "Font" I want to switch to... I'm fairly new to xml, so I maybe setting up the child properties incorrectly... here's a snippet of one of the elements... child properties are in bold.
Code:
<Element>
<Visible>(L:SPEED_HOLD, bool) (L:Mach-IAS select, bool) ! &&</Visible>
<Position X="0" Y="0"/>
<FormattedText X="40" Y="32" Font="QUARTZ" FontSize="30" Adjust="Left" Color="#BDBDDF" Bright="Yes">
[B]<Font ID="fnt1" Font="Arial" FontSize="16"/>[/B]
<String>%((A:Autopilot airspeed hold var,knots))%!03d!%[B]\{fnt1}[COLOR="Red"]KT[/COLOR]\{fnt}[/B]%</String>
</FormattedText>
</Element>
What I'm trying to do is change the "KT" to Font "Arial" and Font Size "16"... the font size part is working, just can't change the font to Arial.
I've included the Url's for reference. my understanding from the aforementioned url's this should work, as Microsoft states
"Changes a section of the text to a different font. Refer to the Escape Codes section on the codes to use to turn an alternate font on and off. Note that there can be several alternate fonts."
Any help would be much a appreciated.
http://msdn.microsoft.com/en-us/library/cc526953.aspx#AlternateFont
http://msdn.microsoft.com/en-us/library/cc526953.aspx#EscapeCodes
Best regards,
John H,


