NoesisGUI Font Selecting "algorithm"
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
Re: NoesisGUI Font Selecting "algorithm"
We follow the WPF font selection model. Could you try in Blend to check we are doing the same? If not, please report a ticket. Thanks!
Re: NoesisGUI Font Selecting "algorithm"
Thanks for the quick answer, WPF font selection seems amazingly complex...
It's hard to say exactly what font Blend selects at the end, but changing FontWeigth from "Medium" to "Bold" in Blend selects different fonts whereas NoesisGUI selects the same one, so I guess there's a difference here.
It's hard to say exactly what font Blend selects at the end, but changing FontWeigth from "Medium" to "Bold" in Blend selects different fonts whereas NoesisGUI selects the same one, so I guess there's a difference here.
Re: NoesisGUI Font Selecting "algorithm"
Thank you! could you please also attach a xaml reproducing the problem? (showing differences between noesis and blend)
Re: NoesisGUI Font Selecting "algorithm"
Thanks again!
Who is online
Users browsing this forum: Bing [Bot], laudaicat and 7 guests