public void SetFontCollection(DWriteFontCollection fontCollection, DWriteTextRange textRange) { if (fontCollection == null) { throw new ArgumentNullException("fontCollection"); } this.handle.SetFontCollection((IDWriteFontCollection)fontCollection.Handle, 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 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 SetFontCollection(DWriteFontCollection fontCollection, DWriteTextRange textRange) { if (fontCollection == null) { throw new ArgumentNullException("fontCollection"); } this.handle.SetFontCollection((IDWriteFontCollection)fontCollection.Handle, textRange); }