Skip to content

Commit

Permalink
make empty text run content empty
Browse files Browse the repository at this point in the history
  • Loading branch information
emmauss committed Aug 15, 2024
1 parent 9fe3415 commit 95a7871
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ public static TextLineImpl CreateEmptyTextLine(int firstTextSourceIndex, double
var glyph = glyphTypeface.GetGlyph(s_empty[0]);
var glyphInfos = new[] { new GlyphInfo(glyph, firstTextSourceIndex, 0.0) };

var shapedBuffer = new ShapedBuffer(s_empty.AsMemory(), glyphInfos, glyphTypeface, properties.FontRenderingEmSize,
var shapedBuffer = new ShapedBuffer(ReadOnlyMemory<char>.Empty, glyphInfos, glyphTypeface, properties.FontRenderingEmSize,
(sbyte)flowDirection);

var textRuns = new TextRun[] { new ShapedTextRun(shapedBuffer, properties) };
Expand Down

0 comments on commit 95a7871

Please sign in to comment.