Improved GlyphTranslator
Added true type fonts Refactored VertexStorage data types Shortened FlagsAndComamand enum names
This commit is contained in:
parent
3e6f1925d6
commit
fbd4f9e219
32 changed files with 204 additions and 1268 deletions
|
|
@ -120,14 +120,14 @@ namespace MatterHackers.GCodeVisualizer
|
|||
Vector3Float start = this.GetStart(renderInfo);
|
||||
Vector3Float end = this.GetEnd(renderInfo);
|
||||
|
||||
pathStorage.Add(start.x, start.y, ShapePath.FlagsAndCommand.CommandMoveTo);
|
||||
pathStorage.Add(start.x, start.y, ShapePath.FlagsAndCommand.MoveTo);
|
||||
if (end.x != start.x || end.y != start.y)
|
||||
{
|
||||
pathStorage.Add(end.x, end.y, ShapePath.FlagsAndCommand.CommandLineTo);
|
||||
pathStorage.Add(end.x, end.y, ShapePath.FlagsAndCommand.LineTo);
|
||||
}
|
||||
else
|
||||
{
|
||||
pathStorage.Add(end.x + .01, end.y, ShapePath.FlagsAndCommand.CommandLineTo);
|
||||
pathStorage.Add(end.x + .01, end.y, ShapePath.FlagsAndCommand.LineTo);
|
||||
}
|
||||
|
||||
graphics2D.Render(stroke, 0, movementColor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue