简体   繁体   English

Windows Phone 8.1上的字体文件夹位置

[英]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. 我正在尝试在Windows Phone 8.1上安装fontconfig,我需要在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. 我正在使用freetype渲染文本,但是我想使用系统字体来渲染文本,并且不包含任何.ttfs的应用程序。

string path = Environment.GetFolderPath(Environment.SpecialFolder.Favorites); doesn't seem to work since Environment.SpecialFolder does not exist on Windows Phone. 由于Windows Phone上不存在Environment.SpecialFolder ,因此似乎无法正常工作。

Where are the fonts located on Windows Phone and is it possible to get a directory path to them via code? Windows Phone上的字体在哪里,是否可以通过代码获取它们的目录路径?

You do not have direct access to system folders with the Windows Phone API and you do not need it. 您无法使用Windows Phone API直接访问系统文件夹,并且不需要它。 Users cannot install any fonts, nor can the apps, so the available fonts on Windows Phone are always the same. 用户无法安装任何字体,也无法安装应用程序,因此Windows Phone上的可用字体始终相同。 If you want to use a custom font, you need to bundle it with your app. 如果要使用自定义字体,则需要将其与应用程序捆绑在一起。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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