Repository navigation
Description
Current behavior
Using the Segoe MDL2 Assets fonts built into UWP doesn't work on Android FontIcons. Depending on the use-case the app will crash or show invalid icons.
Expected behavior
I expect the Segoe MDL2 Assets to be loaded in Uno Projects by default so you can use the same assets in UWP right out of the box.
This is related to other issues reported to Symbol Icons not working, but the asset file is different:
- Related: Symbolicon cannot be used #225
- Related: SymbolIcon doesn't work on Android #273
- Related: SymbolIcon still doesn't work on Android and is clipped on WebASM #1332
This problem is different from the related items as it uses the official Segoe MDL2 Assets where the other GitHub issues use the related font winjs-symbols.ttf#Symbols.
How to reproduce it (as minimally and precisely as possible)
Workaround
If you install the font manually to the android project you can specify the platform path to the font and everything will work correctly
<FontIcon android:FontFamily="ms-appx:///Assets/Fonts/SegMDL2.ttf" win:FontFamily="Segoe MDL2 Assets" Glyph="" Width="50" Height="50" />Environment
Nuget Package: Uno.UI
Package Version(s): 2.0.532
Affected platform(s):
- iOS (untested)
- Android
- WebAssembly (untested)
- WebAssembly renderers for Xamarin.Forms (untested)
- macOS (untested)
- Windows
- Build tasks
- Solution Templates
Visual Studio:
- 2017 (version: )
- 2019 (version: 16.2.5)
- for Mac (version: )
Relevant plugins:
- Resharper (version: N/A)
Anything else we need to know?
I was able to provide a workaround by downloading the font from the official microsoft docs and adding it to the android project.


Activity
jeromelaban commentedon Apr 17, 2020
Thanks for your report, I'll close this issue in favor of #3011