Exemplo n.º 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));
 }
Exemplo n.º 2
0
 public Typeface GetTypeface(FontFamily fontFamily, FontWeight fontWeight, FontStyle fontStyle)
 {
     //ToDo: Implement caching.
     return(new Typeface(fontFamily, fontWeight, fontStyle));
 }