• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 different font faces in one string

Messages
58
Country
netherlands
Hi,

Does there exist a code in a formatted text element to change the font type as with color and size?
something like:
........
<Font FontSize="12"/>
<Font Fontface="arial"/>
<String>
......\{fnt???}....


jan
 
I don't know about FS2004 because I use only FSX, maybe you do like alternatcolor for the font :


Code:
<AlternateFont id="Font2">
      <Bright>True</Bright>
       <FontColor>0x01E00D</FontColor>
       <FontFace>LUCIDA CONSOLE</FontFace>
        <FontHeight>14</FontHeight>
</AlternateFont>
<AlternateFont id="Font3">
       <Bright>True</Bright>
       <FontColor>RED</FontColor>
       <FontFace>ARIAL</FontFace>
      <FontHeight>12</FontHeight>
</AlternateFont>

......


.......

and use \{fnt2}% ........\{fnt3}% to toggle font to font in the gauge string .......

But I am not sure that works in FS2004

I hope that help you...

François
 
I am sorry. This code works with FSX SP2. Wait some FS9 specialists.

regards

Francois
 
Jan, you're saying that the font and font size escape sequences indicated in this wiki don't work for FS9? That's too bad.

For sure, alternate colors works in FS9, as I am sure you of course know.

Bob
 
Hi Bob,

Font color and size is not the problem, but the font face; need arial and symbol in the same string.
Busy cleaning up some code making a 787 panel and was looking for a solution to replace some overdue code:
At the moment i use 2 elements with different font and size for the same string and that works fine.
 
One of the solutions could be to make your own font with different 'normal' and 'bold' shapes, and then use \{b} and \{nr} for selection.
 
For FS9 syntax, try this:

Code:
<FormattedText X="277" Y="84" Font="Arial Black" FontSize="9" LineSpacing="10" Adjust="Left" Color="0xF0D0D0" Bright="Yes">
   <Color Value="Cyan"/>
   <Font FontSize="12"/>
   <Font FontFace="Courier"/>
   \{lsp=14}\{ladj=C}\{clr2}\{fnt1}RUNWAY\{fnt}\n
   et cetera...
The snippet above will switch to Cyan color {clr2} and the Courier 12pt font {fnt1} then switch back to the "defaults" specified in the <FormattedText...> entry which is Arial Black, 9pt and 0xF0D0D0 color.

Take note that the alternate color is indexed 2, but the alternate font size and face are indexed 1. This is just another of the many inconsistencies that will drive anyone to drink!
 
Last edited:
Fr. Bill,

I did, see first post, but no succes.
Try these 2 elements and see what happens...

Code:
<Element>
<FormattedText X="277" Y="100" Font="symbol" FontSize="15" Adjust="Left" Color="silver" Bright="Yes">
<Font FontSize="20"/>
<Font FontFace="arial"/>
<String>\n\n
TEST
\n\{fnt1}&#127;&#127;&#127; TEST\{fnt}
</String>
</FormattedText>
</Element>

<Element>
<FormattedText X="277" Y="100" Font="arial" FontSize="15" Adjust="Left" Color="silver" Bright="Yes">
<Font FontSize="20"/>
<Font FontFace="symbol"/>
<String>\n\n\n\n
TEST
\n\{fnt1}&#127;&#127;&#127; TEST\{fnt}
</String>
</FormattedText>
</Element>
 
That's a shame, Jan. I haven't had the FS9 SDK installed for years so was relying on my (frequently) faulty memory. So you will have to continue on using your current method of using two <String> sections to achieve your goal... :(
 
Back
Top