• 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.

FSXA Font size

euroastar350

Resource contributor
Messages
863
Country
us-delaware
H i guys,

I am currrently working on the radios on my Bell 222 and I am looking for a way to increase the font size for the digital displays. As shown in the screenshot, the font size is small and is cut off around the corners. What I want to do is increase the size of the font to where it fills the entire rectangle which is 103x35 in size. Here is the code I am using which is used for all 6 radios. Any help is appreciated.

Code:
<Gauge Name="Transponder" Version="1.0">
   <Image Name="radio_display_bckgrnd.bmp"/>
   <Element>
      <Visible>(A:ELECTRICAL MASTER BATTERY,bool)</Visible>
      <Element>
         <Position X="80" Y="34"/>
         <Text X="112" Y="34" Length="5" Font="MS 33558" Fixed="Yes" Adjust="Center" VerticalAdjust="Center" Color="WHITE" Bright="Yes">
            <String>%((A:TRANSPONDER1 CODE, Hz))%!4.0f!</String>
         </Text>
      </Element>
   </Element>
</Gauge>
2014-10-15_18-55-21-967.jpg
 
Why dont you give FormattedText a try rather than Text? Easier to change font size, however, you can still get it to work with Text by adjusting X, Y and Length. As a suggestion, add BackgroundColor="yellow", or some color, to easily see the size and shape of the text background. When happy with the result, then delete BackgroundColor if you want (but I always include BackgroundColor when working in FSX in order to mitigate the text anti aliasing effects).

Your XML shows Transponder but your pic shows radios. And in the radios, it actually looks like you may be using separate digits in which case you may have a spacing issue controlled by Position and X.

Finally, for the readout of transponder code, give enum units a try instead of Hz.

Here's an old example using Text.

Code:
<Element Name="XPNDR">
  <Position X="535" Y="400"/>
    <Visible>(L:APT_DETAIL_PAGE, bool) 0 ==</Visible>
      <Text X="50" Y="15" Length="4" Font="digital readout" FontWeight="120" Color="white" BackgroundColor="#101010" Adjust="center" VerticalAdjust="Center" Multiline="No" Fixed="Yes" Bright="Yes">
        <String>%((A:TRANSPONDER1 CODE, enum))%!04.0f!%</String>
      </Text>
</Element>

Bob
 
Last edited:
Using the formatted text option, I have the transponder showing nicely. I am using the same code for the rest of the radios, with modifications of course, but getting the rest to display properly is a real chore :eek:
 
I fixed the issue. The font I wanted to use wasn't displaying correctly, so I had to chose an alternate.
 
My strings have 'FontSize=' in them.

<Text Bright="Yes" X="90" Y="40" Length="7" Multiline="No" Font="Arial Bold" FontSize="22" Color="#00D6FF" Adjust="Right" VerticalAdjust="Center">
 
Back
Top