You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Samples\ImageSharp\DrawingTextAlongAPath\Program.cs" file contains the code for drawing text along the Bezier curve.
There is a call: // Let's generate the text as a set of vectors drawn along the path var glyphs = TextBuilder.GenerateGlyphs(text, path, textOptions);
The resulting collection glyphs contains paths of the ComplexPolygon type, which have Bounds equal to RectangleF.Empty, although in reality no path is located at the beginning and has zero dimensions. Why do I assume this is a bug? Because, because of these empty paths, the Bounds collection property is equal to RectangleF.Empty.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The "Samples\ImageSharp\DrawingTextAlongAPath\Program.cs" file contains the code for drawing text along the Bezier curve.
There is a call:
// Let's generate the text as a set of vectors drawn along the path var glyphs = TextBuilder.GenerateGlyphs(text, path, textOptions);
The resulting collection
glyphs
contains paths of theComplexPolygon
type, which haveBounds
equal toRectangleF.Empty
, although in reality no path is located at the beginning and has zero dimensions.Why do I assume this is a bug? Because, because of these empty paths, the Bounds collection property is equal to RectangleF.Empty.
Beta Was this translation helpful? Give feedback.
All reactions