NoesisGUI Font Selecting "algorithm"
Posted: 11 Sep 2020, 09:58
Hi,
I'm working on the final look of my interface, and my UI designer picked up some specific fonts to achieve a nice look.
I discovered NoesisGUI uses the FontFamily and other fonts attributes like FontWeight, FontStyle and FontStrech to select the font file used to display texts elements.
My problem is being able to select a defined font file among a family, NoesisGUI seems to follow some rules I don't understand.
For example, if I want to select the "Gotham-Light.otf" font among all the Gotham font files I have, I tried to use:
This works nicely, selects and loads the "Gotham-Light.otf" file to draw the TextBlock.
Now, if I want to select the "Gotham-Medium.otf" font, I try:
I doesn't works, and selects the "Gotham Black" font.
Now, if I want to select the "Gotham-Bold.otf" font, I would try to use:
it doesn't works and also selects the "Gotham Black" font !
I don't even know what FontWeight to use to select "Gotham-Book.otf" font.
How can I select my fonts ? How Noesis does exactly match the fonts files and their attributes ? I wasn't abel to find the answer anywhere.
Thanks a lot,
Frank
I'm working on the final look of my interface, and my UI designer picked up some specific fonts to achieve a nice look.
I discovered NoesisGUI uses the FontFamily and other fonts attributes like FontWeight, FontStyle and FontStrech to select the font file used to display texts elements.
My problem is being able to select a defined font file among a family, NoesisGUI seems to follow some rules I don't understand.
For example, if I want to select the "Gotham-Light.otf" font among all the Gotham font files I have, I tried to use:
Code: Select all
FontFamily="./#Gotham" FontWeight="Light" FontStyle="Normal" FontStretch="Normal"
Now, if I want to select the "Gotham-Medium.otf" font, I try:
Code: Select all
FontFamily="./#Gotham" FontWeight="Medium" FontStyle="Normal" FontStretch="Normal"
Now, if I want to select the "Gotham-Bold.otf" font, I would try to use:
Code: Select all
FontFamily="./#Gotham" FontWeight="Bold" FontStyle="Normal" FontStretch="Normal"
I don't even know what FontWeight to use to select "Gotham-Book.otf" font.
How can I select my fonts ? How Noesis does exactly match the fonts files and their attributes ? I wasn't abel to find the answer anywhere.
Thanks a lot,
Frank