Skip to content

Commit

Permalink
Use maximum height value for region calculation
Browse files Browse the repository at this point in the history
- this has been done before the fix for svg-net#741 and ensures
  that no invalid regions are created
- fixes svg-net#775
  • Loading branch information
mrbean-bremen committed Jan 3, 2021
1 parent 49f52e9 commit 5f589b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Text/GdiFontDefn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public IList<RectangleF> MeasureCharacters(ISvgRenderer renderer, string text)

var location = new PointF(0f, 0f);
var size = System.Drawing.Size.Ceiling(g.MeasureString(text, _font, location, format));
var layoutRect = new RectangleF(location, size);
var layoutRect = new RectangleF(location, new SizeF(size.Width, 1000));

for (var s = 0; s <= (text.Length - 1) / 32; s++)
{
Expand Down

0 comments on commit 5f589b2

Please sign in to comment.