コード例 #1
0
 public IFormattedTextImpl CreateFormattedText(
     string text,
     string fontFamily,
     double fontSize,
     FontStyle fontStyle,
     TextAlignment textAlignment,
     Avalonia.Media.FontWeight fontWeight,
     TextWrapping wrapping)
 {
     return(new FormattedTextImpl(s_pangoContext, text, fontFamily, fontSize, fontStyle, textAlignment, fontWeight));
 }
コード例 #2
0
ファイル: FontManagerImpl.cs プロジェクト: sankeyou/Avalonia
 public Typeface GetTypeface(FontFamily fontFamily, FontWeight fontWeight, FontStyle fontStyle)
 {
     //ToDo: Implement caching.
     return(new Typeface(fontFamily, fontWeight, fontStyle));
 }