,

Understanding the Built-In Fonts

The Unicode font Segoe WP is the Windows Phone system font. It has kern pairing, which defines the distance between each character pair combination. It does not have font hinting. It is natively available in the following five styles:

Image Regular

Image Bold

Image Semi-bold

Image Semi-light

Image Black

The standard fonts used by Windows Phone XAML apps all have at least native variants for bold and italic. The following example, located in the ControlExamplesView.xaml page in the downloadable sample code, displays the list of standard fonts used by Latin, Cyrillic, and Greek-based languages. A Run is used to display each font with the font name as example text. See the following excerpt:

<TextBlock>
    <Run FontFamily="Arial">Arial</Run><LineBreak />
    <Run FontFamily="Arial Black">Arial Black</Run><LineBreak />
    <Run FontFamily="Calibri">Calibri</Run><LineBreak />
    <Run FontFamily="Comic Sans MS">Comic Sans MS</Run><LineBreak />
    <Run FontFamily="Courier New">Courier New</Run><LineBreak />
    <Run FontFamily="Georgia">Georgia</Run><LineBreak />
    <Run FontFamily="Lucida Sans Unicode">Lucida Sans Unicode</Run><LineBreak />
    <Run FontFamily="Portable User Interface">Portable User Interface</Run>
        <LineBreak />
    <Run FontFamily="Segoe WP">Segoe WP</Run><LineBreak />
    <Run FontFamily="Segoe WP Black">Segoe WP Black</Run><LineBreak />
    <Run FontFamily="Segoe WP Bold">Segoe WP Bold</Run><LineBreak />
    <Run FontFamily="Segoe WP Light">Segoe WP Light</Run><LineBreak />
    <Run FontFamily="Segoe WP Semibold">Segoe WP Semibold</Run><LineBreak />
    <Run FontFamily="Segoe WP SemiLight">Segoe WP SemiLight</Run><LineBreak />
    <Run FontFamily="Tahoma">Tahoma</Run><LineBreak />
    <Run FontFamily="Times New Roman">Times New Roman</Run><LineBreak />
    <Run FontFamily="Trebuchet MS">Trebuchet MS</Run><LineBreak />
    <Run FontFamily="Verdana">Verdana</Run><LineBreak />
    <Run FontFamily="Webdings">Webdings</Run> (Webdings)
</TextBlock>

The result is shown in Figure 6.4.

Image

FIGURE 6.4 Built-in font families.

The following East Asian languages are also supported:

Image Japanese—Meiryo UI

Image Simplified Chinese—Microsoft YaHei

Image Simplified Chinese—SimSum. This font is included only on devices that have the Chinese (Simplified) display language.

Image Korean—Malgun Gothic


Tip

Because the Segoe font is such an integral part of the Microsoft Design Language UI experience, use alternative fonts sparingly.


All fonts in the list of built-in fonts are free to use in your applications. There are, however, times when you may want to customize the font used to make your application stand out from the crowd. Fortunately, this is possible in Windows Phone using font embedding.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.38.130