简体   繁体   中英

Fonts folder location on Windows Phone 8.1

I am trying install fontconfig on Windows Phone 8.1 and I need to get a location of the fonts on the windows phone.

I am using freetype to render text but I would like to use system fonts to render the text and not include any .ttfs with the app.

string path = Environment.GetFolderPath(Environment.SpecialFolder.Favorites); doesn't seem to work since Environment.SpecialFolder does not exist on Windows Phone.

Where are the fonts located on Windows Phone and is it possible to get a directory path to them via code?

You do not have direct access to system folders with the Windows Phone API and you do not need it. Users cannot install any fonts, nor can the apps, so the available fonts on Windows Phone are always the same. If you want to use a custom font, you need to bundle it with your app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM