You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So on Windows 10, we cannot package Segoe Fluent Icon font directly in the package. So I wrote a font downloader which download and extract the font to application local folder. Then I update the FontFamily. But it seems that using {x:Bind} to bind to FontFamily will have issues rendering on windows 10. It renders as a block character. Directly setting FontFamily in xaml have no such issues.
Steps to reproduce the bug
Create a new WinUI3 Packaged project
Use this xaml
<TextBlockText="Set FontFamily to Segoe Fluent Icon in XAML" />
<FontIconFontFamily="ms-appdata:///local/Segoe%20Fluent%20Icons.ttf#Segoe Fluent Icons"Glyph="" />
<TextBlockText="Set FontFamily to Segoe MDL2 in XAML" />
<FontIconFontFamily="ms-appdata:///local/segmdl2.ttf#Segoe MDL2 Assets"Glyph="" />
<TextBlockText="Set FontFamily to Segoe Fluent Icon in binding" />
<FontIconFontFamily="{x:Bind FluentIconFont}"Glyph="" />
<TextBlockText="Set FontFamily to Segoe MDL2 in binding" />
<FontIconFontFamily="{x:Bind MDLIconFont}"Glyph="" />
Describe the bug
So on Windows 10, we cannot package Segoe Fluent Icon font directly in the package. So I wrote a font downloader which download and extract the font to application local folder. Then I update the
FontFamily
. But it seems that using{x:Bind}
to bind toFontFamily
will have issues rendering on windows 10. It renders as a block character. Directly settingFontFamily
in xaml have no such issues.Steps to reproduce the bug
Code behind
Segoe Fluent Icons.ttf
toAppData\Local\Packages\{...id...}\LocalState
Expected behavior
No response
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002
Windows version
Windows 10 (1809): Build 17763
Additional context
No response
The text was updated successfully, but these errors were encountered: