Font Support for Windows Phone のドキュメントアップデート

Font Support for Windows Phone

Windows Phone で既定のアプリケーションテンプレートを使った場合に、日本語のフォントが正しく選択されない問題がありますが、対処方法が公式情報としてMSDNライブラリに公開されています。

こちら、WPDev Feedback Japan や米国本社チームとの調整によって対応されました。3月には完了していたのですが、皆様にお知らせするのが遅くなりました。ご協力ありがとうございました。





Fonts and Your Application

While developing your application, it is a good idea to design the application with both reading and UI fonts in mind, especially when dealing with East Asian languages. For example, since the Japanese reading font differs from the Japanese UI font, it's a good idea to test your application in both fonts. You can do this by changing the display language on the device or on the emulator, as described in the How to: Change the Region Settings for Windows Phone Emulator topic.

However, because of how fonts are loaded in XAML, it's important to explicitly add code that defines how the application should handle fonts.

  • If your application is localized for a specific East Asian language such as Japanese, and you want to ensure that the text displays in the expected font for that language, set the language on the outermost PhoneApplicationPage element of the XAML. For example: Language="ja-Jp".

  • Otherwise, add the following code to the constructor in App.xaml.cs:

    RootFrame.Language = XmlLanguage.GetLanguage(CultureInfo.CurrentUICulture.Name);

    The above code will ensure that your text displays in the font that matches the user's current display language.

Skip to main content