예제 #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)
 {