Stream fontStream =
typeof
(MainPage).GetTypeInfo().Assembly.GetManifestResourceStream("UnicodeText.Assets.arial.ttf");
fontStream is always null!!
Stream fontStream = typeof(MainPage).GetTypeInfo().Assembly.GetManifestResourceStream("UnicodeText.Assets.arial.ttf"); |
MainPage |
Name of the current Class |
UnicodeText |
It’s the project name |
Assets |
Asset folder inside the project UnicodeText |
Arial.ttf |
Arial.ttf font file inside the Assets folder |