Exemple #1
0
 public static TextRun Regular(
     ReadOnlyMemory <char> text,
     FontFaceKey font, PtFontSize ptFontSize,
     RgbaFloat color, RgbaFloat?outlineColor)
 {
     return(new(
                font, ptFontSize,
                color, outlineColor,
                text, rubyText : default
Exemple #2
0
 static FontData notFound(FontFaceKey key)
 {
     throw new ArgumentException($"Font '{key}' has not been loaded.");
 }
Exemple #3
0
 public RasterBatch(
     FontFaceKey font,
     PtFontSize fontSize,
     RasterResult[] results,
     RasterResult[]?outlineResults)
 => (Font, FontSize, Results, OutlineResults)
Exemple #4
0
 public FontData GetFontData(FontFaceKey fontFaceKey)
 {