Exemple #1
0
        public static FontStyle ToFontStyle(
            this global::Windows.UI.Text.FontStyle xamlFontStyle)
        {
            FontStyle fontStyle;

            if (xamlFontStyle == global::Windows.UI.Text.FontStyle.Normal)
            {
                fontStyle = FontStyle.Normal;
            }
            else if (xamlFontStyle == global::Windows.UI.Text.FontStyle.Italic)
            {
                fontStyle = FontStyle.Italic;
            }
            else
            {
                throw new ArgumentOutOfRangeException(nameof(xamlFontStyle), xamlFontStyle, "Unsupported font style.");
            }

            return(fontStyle);
        }
Exemple #2
0
 /// <summary></summary>
 public global::Microsoft.Graphics.Canvas.Text.CanvasFontSet GetMatchingFontsFromProperties(global::System.String familyName, global::Windows.UI.Text.FontWeight weight, global::Windows.UI.Text.FontStretch stretch, global::Windows.UI.Text.FontStyle style)
 {
     throw new System.NotImplementedException();
 }