I'm creating library in Xamarin platform and I need to get device (android,iOS and windows) font file.
In android I can get the font files from/system/fonts folder.
Android:
string[] fontfiles = System.IO.Directory.GetFiles("/system/fonts");
Can anyone share your idea to get font file from the Windows device?.
Thanks in Advance.
Sasi.
You can't get system font file in Windows Phone, but you can get the system font. Refer to ptallett's blog, do the following steps :
In order to get system font in UWP, we must use
DirectX, install theseNuGetpacakges into your project :GetFontFiles()will return all system fonts.Using DependencyService in your
PCLto get the result :