File tree Expand file tree Collapse file tree
src/ImageSharp.Drawing/Processing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -513,7 +513,7 @@ public void DrawText(
513513 public void DrawGlyphs (
514514 Brush brush ,
515515 Pen pen ,
516- IReadOnlyList < GlyphPathCollection > glyphs )
516+ IEnumerable < GlyphPathCollection > glyphs )
517517 {
518518 this . EnsureNotDisposed ( ) ;
519519 Guard . NotNull ( brush , nameof ( brush ) ) ;
@@ -524,9 +524,8 @@ public void DrawGlyphs(
524524 DrawingOptions baseOptions = state . Options ;
525525 IReadOnlyList < IPath > clipPaths = state . ClipPaths ;
526526
527- for ( int glyphIndex = 0 ; glyphIndex < glyphs . Count ; glyphIndex ++ )
527+ foreach ( GlyphPathCollection glyph in glyphs )
528528 {
529- GlyphPathCollection glyph = glyphs [ glyphIndex ] ;
530529 if ( glyph . LayerCount == 0 )
531530 {
532531 continue ;
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ public void DrawText(
211211 public void DrawGlyphs (
212212 Brush brush ,
213213 Pen pen ,
214- IReadOnlyList < GlyphPathCollection > glyphs ) ;
214+ IEnumerable < GlyphPathCollection > glyphs ) ;
215215
216216 /// <summary>
217217 /// Measures the logical advance of the text in pixel units.
You can’t perform that action at this time.
0 commit comments