Exemplo n.º 1
0
        public DWriteFontList GetMatchingFonts(DWriteFontWeight weight, DWriteFontStretch stretch, DWriteFontStyle style)
        {
            IDWriteFontList matchingFonts;

            this.handle.GetMatchingFonts(weight, stretch, style, out matchingFonts);
            return(new DWriteFontList(matchingFonts));
        }
Exemplo n.º 2
0
        public DWriteFont GetFirstMatchingFont(DWriteFontWeight weight, DWriteFontStretch stretch, DWriteFontStyle style)
        {
            IDWriteFont matchingFont;

            this.handle.GetFirstMatchingFont(weight, stretch, style, out matchingFont);
            return(new DWriteFont(matchingFont));
        }
Exemplo n.º 3
0
        public DWriteTextFormat CreateTextFormat(
            string fontFamilyName,
            DWriteFontCollection fontCollection,
            DWriteFontWeight fontWeight,
            DWriteFontStyle fontStyle,
            DWriteFontStretch fontStretch,
            float fontSize,
            string localeName)
        {
            IDWriteTextFormat textFormat;

            this.handle.CreateTextFormat(
                fontFamilyName,
                fontCollection == null ? null : (IDWriteFontCollection)fontCollection.Handle,
                fontWeight,
                fontStyle,
                fontStretch,
                fontSize,
                localeName,
                out textFormat);
            return(new DWriteTextFormat(textFormat));
        }
Exemplo n.º 4
0
 public void SetFontStretch(DWriteFontStretch fontStretch, DWriteTextRange textRange)
 {
     this.handle.SetFontStretch(fontStretch, textRange);
 }
 public DWriteTextFormat CreateTextFormat(
     string fontFamilyName,
     DWriteFontCollection fontCollection,
     DWriteFontWeight fontWeight,
     DWriteFontStyle fontStyle,
     DWriteFontStretch fontStretch,
     float fontSize,
     string localeName)
 {
     IDWriteTextFormat textFormat;
     this.handle.CreateTextFormat(
         fontFamilyName,
         fontCollection == null ? null : (IDWriteFontCollection)fontCollection.Handle,
         fontWeight,
         fontStyle,
         fontStretch,
         fontSize,
         localeName,
         out textFormat);
     return new DWriteTextFormat(textFormat);
 }
 public void SetFontStretch(DWriteFontStretch fontStretch, DWriteTextRange textRange)
 {
     this.handle.SetFontStretch(fontStretch, textRange);
 }
 public DWriteFontList GetMatchingFonts(DWriteFontWeight weight, DWriteFontStretch stretch, DWriteFontStyle style)
 {
     IDWriteFontList matchingFonts;
     this.handle.GetMatchingFonts(weight, stretch, style, out matchingFonts);
     return new DWriteFontList(matchingFonts);
 }
 public DWriteFont GetFirstMatchingFont(DWriteFontWeight weight, DWriteFontStretch stretch, DWriteFontStyle style)
 {
     IDWriteFont matchingFont;
     this.handle.GetFirstMatchingFont(weight, stretch, style, out matchingFont);
     return new DWriteFont(matchingFont);
 }