Noesis 3.2.0b1 TextBlock Some glyphs are not displayed
Hi
I use *.ttf for icons
in 3.2.0b1 glyphs with a specific unicode are not displayed,
for example, if the glyph is set to unicode 0x0482, it is displayed, and if 0x0483, then it is not visible
in version 3.1.6, all glyphs are visible
I use *.ttf for icons
in 3.2.0b1 glyphs with a specific unicode are not displayed,
for example, if the glyph is set to unicode 0x0482, it is displayed, and if 0x0483, then it is not visible
in version 3.1.6, all glyphs are visible
Re: Noesis 3.2.0b1 TextBlock Some glyphs are not displayed
Could you please paste the full XAML here?
Re: Noesis 3.2.0b1 TextBlock Some glyphs are not displayed
Code: Select all
<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid.Resources>
<FontFamily x:Key="Font.Icons">Fonts/#Icons</FontFamily>
</Grid.Resources>
<TextBlock
Margin="10,100,0,0"
FontFamily="{StaticResource Font.Icons}"
FontSize="120"
TextWrapping="Wrap">
҃҂
</TextBlock>
</Grid>
- Attachments
-
- TestIcons.zip
- (1.24 KiB) Downloaded 52 times
Re: Noesis 3.2.0b1 TextBlock Some glyphs are not displayed
I am not sure if that font is well formed.
First, the character U+483 is an extend Cyrillic codepoint (so in your XAML there is only one grapheme).
Second, by the tables of that font, the U+483 is shaped with a horizontal displacement of -707 units and an empty advance.
I have been analyzing this with the hb-shape tool available in HarfBuzz and the information reported is similar to what Noesis renders.
Did you create this font or was it downloaded from somewhere?
First, the character U+483 is an extend Cyrillic codepoint (so in your XAML there is only one grapheme).
Second, by the tables of that font, the U+483 is shaped with a horizontal displacement of -707 units and an empty advance.
I have been analyzing this with the hb-shape tool available in HarfBuzz and the information reported is similar to what Noesis renders.
Did you create this font or was it downloaded from somewhere?
Re: Noesis 3.2.0b1 TextBlock Some glyphs are not displayed
I created a font for this test in online editor - FontEditor
https://www.fonteditor.fun/fonteditor/index-en.html
TestIcons.xaml in XamlPlayer(3.1.6) outputs 2 glyphs and XamlPlayer (3.2.0) outputs 1 glyph.
in order for XamlPlayer(3.2.0) to display 2 glyphs,
it is enough to assign another unicode to the glyph in the font, for example (0x0481, 0x0492)
After porting to 3.2.0 from version 3.1.6, some icons are not displayed in my application. Only the unicode value is affected.
I assigned unicode in order and it worked as expected in 3.1.6.
3.2.0 handles the unicode value more strictly?
https://www.fonteditor.fun/fonteditor/index-en.html
TestIcons.xaml in XamlPlayer(3.1.6) outputs 2 glyphs and XamlPlayer (3.2.0) outputs 1 glyph.
in order for XamlPlayer(3.2.0) to display 2 glyphs,
it is enough to assign another unicode to the glyph in the font, for example (0x0481, 0x0492)
After porting to 3.2.0 from version 3.1.6, some icons are not displayed in my application. Only the unicode value is affected.
I assigned unicode in order and it worked as expected in 3.1.6.
3.2.0 handles the unicode value more strictly?
Re: Noesis 3.2.0b1 TextBlock Some glyphs are not displayed
If unicode is (Mark nonspacing - Mn), then it cannot be used for Icon in Noesis 3.2
https://www.compart.com/en/unicode/category/Mn#UNC_CAT
Re: Noesis 3.2.0b1 TextBlock Some glyphs are not displayed
Yes, we are now more compatible with Unicode. In 3.2 we implemented a new Shaping algorithm with support for complex scripts, RTL languages, emoji sequences, ligatures, mark positioning...3.2.0 handles the unicode value more strictly?
The U+0048x space doesn't seem to be a good one for storing general symbols.
Re: Noesis 3.2.0b1 TextBlock Some glyphs are not displayed
I just hit a possibly similar issue when upgrading from 3.1.7 to 3.2.0 in Unity.
I was using FontAwesome 5 for standard buttons on a video player e.g:
This renders fine on 3.17 but gets a box-with-X symbol on 3.2.0. The font is being imported and Noesis reports no errors or warnings.
Can we no longer reliably use fonts for icons this way?
I was using FontAwesome 5 for standard buttons on a video player e.g:
Code: Select all
<Button
Click="Video_PlayClicked"
Margin="5"
Visibility="{Binding SessionVM.VideoPlayerVM.IsPaused, Converter={StaticResource BoolToVisibilityConverter}}"
x:Name="playButton">
<TextBlock
FontFamily="Fonts/FontAwesome/#Font Awesome 5 Free"
FontSize="20"
Foreground="White"
Text="" />
</Button>
Can we no longer reliably use fonts for icons this way?
Re: Noesis 3.2.0b1 TextBlock Some glyphs are not displayed
Noesis 3.2 is more Unicode conformant than before.Can we no longer reliably use fonts for icons this way?
Is your XAML working correctly on Blend/WPF ?
-
sfernandez
Site Admin
- Posts: 2991
- Joined:
Re: Noesis 3.2.0b1 TextBlock Some glyphs are not displayed
Also, could you please share the .ttf you are using?
Who is online
Users browsing this forum: Bing [Bot] and 62 guests