unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.66k stars 699 forks source link

[Skia] Issue with FontIcon MaterialDesign font family with some type of glyphs #12271

Open FrozDark opened 1 year ago

FrozDark commented 1 year ago

Current behavior

Skia hangs up when using some kind of glyphs from MaterialDesign font family like CartMinus or CartArrowDown

<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Expander
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Header="Not Issued FontIcon">
                <Button>
                    <FontIcon FontFamily="{StaticResource MDFontFamily}" Glyph="{x:Bind fi:MaterialDesignIcons.PackageVariant}" />
                </Button>
            </Expander>
            <Expander
                Grid.Row="1"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Header="Issued FontIcon">
                <Button>
                    <FontIcon FontFamily="{StaticResource MDFontFamily}" Glyph="{x:Bind fi:MaterialDesignIcons.CartMinus}" />
                </Button>
            </Expander>
            <Expander
                Grid.Row="2"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Header="Issued FontIcon">
                <Button>
                    <FontIcon FontFamily="{StaticResource MDFontFamily}" Glyph="{x:Bind fi:MaterialDesignIcons.CartArrowDown}" />
                </Button>
            </Expander>
        </Grid>

Expected behavior

Working

How to reproduce it (as minimally and precisely as possible)

Repro: SkiaFontIconUnoIssues.zip

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

Uno 4.9.0 dev.1033

Affected platforms

Skia (WPF), Skia (GTK on Linux/macOS/Windows), Skia (Linux Framebuffer), Skia (Tizen)

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

Droid works well with no issue

FrozDark commented 11 months ago

@MartinZikmund is there any progress on this issue?

jeromelaban commented 11 months ago

This is partially fixed in https://github.com/unoplatform/uno/pull/13390. Though some symbols still won't show properly if the system font does not have those symbols.