- krupitskas
- Posts: 23
- Joined:
Multiple problems with text fonts
Hey there, we have multiple problems with fonts:
1) Fonts that do not support cyrillic (I suppose) can't be found:
I have two fonts: Montserrat and AlexBrush. In my macos Montserrat shows Russian letters as preview and AlexBrush default latin.
I've tried also more fonts, all, which supports cyrrilic - works.
Works means that in the function of FontProvider::FamilyExists(...) it returns true.
2) Dynamically created text doesn't change font-family:
Example:
Also I've tried
No success. It's not even jumping into the
I've debugged place where RegisterFont is happening and used same uri and font family name.
1) Fonts that do not support cyrillic (I suppose) can't be found:
I have two fonts: Montserrat and AlexBrush. In my macos Montserrat shows Russian letters as preview and AlexBrush default latin.
I've tried also more fonts, all, which supports cyrrilic - works.
Works means that in the function of FontProvider::FamilyExists(...) it returns true.
2) Dynamically created text doesn't change font-family:
Example:
Code: Select all
text_block.SetFontFamily(Noesis::MakePtr<Noesis::FontFamily>("Forum"));
Code: Select all
text_block.SetFontFamily(Noesis::MakePtr<Noesis::FontFamily>("bundles/font_bundle","Forum"));
text_block.SetFontFamily(Noesis::MakePtr<Noesis::FontFamily>("bundles/font_bundle", "#Forum"));
Code: Select all
FontProvider::FamilyExists(...)
-
sfernandez
Site Admin
- Posts: 2991
- Joined:
Re: Multiple problems with text fonts
Hi,
1) Could you please open a ticket and attach a font file that doesn't work for you? How are you referencing the font in XAML? As explained in our Text tutorial, if you don't specify a folder before the '#' sign it will try to find the font in the operating system. Are you testing this in macOS?
2) All the code examples create a FontFamily that searches for that font in the operating system. If Forum is not installed it won't work.
To load a font from your FontProvider you have to specify a local path before the # sign:
Please let me know if that works for you.
1) Could you please open a ticket and attach a font file that doesn't work for you? How are you referencing the font in XAML? As explained in our Text tutorial, if you don't specify a folder before the '#' sign it will try to find the font in the operating system. Are you testing this in macOS?
2) All the code examples create a FontFamily that searches for that font in the operating system. If Forum is not installed it won't work.
To load a font from your FontProvider you have to specify a local path before the # sign:
Code: Select all
text_block.SetFontFamily(Noesis::MakePtr<Noesis::FontFamily>("bundles/font_bundle","./#Forum"));
- krupitskas
- Posts: 23
- Joined:
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 64 guests