• 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 XML Gauge Strings - character spacing

Messages
204
Country
portugal
Quick question:

Is there a way to define character spacing in a XML gauge string?
I know we can define line spacing, but the SDK doesn't mention character spacing...

Thanks.
 
Quick question:
Is there a way to define character spacing in a XML gauge string?

Are you referring to the space character (Ascii code 32), which is entered in the string the same way as any other character? A space by itself might be enclosed in single quotes '_' depending upon use (the underscore there should be the space character). Without seeing your specific script we cannot be more precise, but there should be nothing different about space than the alphanumerics.

Bob
 
Last edited:
Are you referring to the space character (Ascii code 32), which is entered in the string the same way as any other character? A space by itself might be enclosed in single quotes '_' depending upon use (the underscore there should be the space character). Without seeing your specific script we cannot be more precise, but there should be nothing different about space than the alphanumerics.

Bob
No, I don't mean the space character; I mean the distance between characters, like we can arrange in MS Word for example. According to the SDK, we can align text to the left, center, or right, we can define the line spacing, but I see no reference for character spacing, but I believe I've seen some character manipulation on text gauges, but probably not programmed in XML. That's what I'm seeking...
 
okay ... sorry, I misunderstood the question at first.

One thing you might try is to use <Text> rather than <FormattedText>.

Code:
<Element Name="TEXT Spacing">	
  <Position X="40" Y="35"/>					
    <Text X="100" Y="10" Length="4" Font="Courier New" FontWeight="200" Color="gray" Adjust="Center" VerticalAdjust="Center" Multiline="No" Fixed="Yes">								
      <String>TEXT</String>
    </Text>
</Element>

In the preceding code, change the value of X="___" and you will change the character spacing. Note if you change Fixed to Fixed="No", the effect goes away.

See if that gets you where you want to go.

Bob
 
Kerning is the name of what you seek. It is the technical name for the spacing between characters. There is no provision for adjusting the kerning of any of the character sets in XML or C...
 
There is no provision for adjusting the kerning of any of the character sets in XML or C...

I don't agree with that. Attached is an example using <Text> and changing X value. FS9.

Bob
 

Attachments

  • Text Spacing.jpg
    Text Spacing.jpg
    26.8 KB · Views: 478
Last edited:
It still isn't kerning which can only be achieved with those TrueType fonts that include an optional kern table wich gives the spacing between pairs of characters.
 
It still isn't kerning which can only be achieved with those TrueType fonts that include an optional kern table wich gives the spacing between pairs of characters.

Well, now I understand what kerning is, thanks. After Bill's post and yours, I had to look it up. :o

I'm still not sure from Joao's post, but I guess its certainly possible he may only be looking for basic character spacing which can be accomplished in <Text>. After all, it has to do with a gauge in Flight Sim, not a word processor.

Anyway, now I know what kerning is!

Bob
 
Well, now I understand what kerning is, thanks. After Bill's post and yours, I had to look it up. :o

I'm still not sure from Joao's post, but I guess its certainly possible he may only be looking for basic character spacing which can be accomplished in <Text>. After all, it has to do with a gauge in Flight Sim, not a word processor.

Anyway, now I know what kerning is!

Bob
It's Kerning alright, what I meant in the first place, and I was expecting there was no support for that, as Bill confirmed.
But as Bob mentioned, I seek a solution "to change" character spacing in a text gauge, and Bob just pointed a valuable option which is to adjust (what I would call) the text box length, with the text fixed into it - its kinda justifying text within a cell - I believe it fits my goal. Thanks everyone.:)
 
Just be very careful that you set the exact size for the display before hand. As I mentioned, the chief problem with the simple <Text> display method is that it will be affected if the size of the screen or monitor resolution is changed.
 
Back
Top