示例#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
示例#2
0
 static FontData notFound(FontFaceKey key)
 {
     throw new ArgumentException($"Font '{key}' has not been loaded.");
 }
示例#3
0
 public RasterBatch(
     FontFaceKey font,
     PtFontSize fontSize,
     RasterResult[] results,
     RasterResult[]?outlineResults)
 => (Font, FontSize, Results, OutlineResults)
示例#4
0
 public FontData GetFontData(FontFaceKey fontFaceKey)
 {