@@ -138,7 +138,7 @@ class GlyphShapeBuilder {
138
138
void lineTo (const float64_t2 to)
139
139
{
140
140
if (to != lastPosition) {
141
- currentContour->addEdge (new msdfgen::LinearSegment (msdfPoint (lastPosition), msdfPoint (to)));
141
+ currentContour->addEdge (msdfgen::EdgeHolder (msdfPoint (lastPosition), msdfPoint (to)));
142
142
lastPosition = to;
143
143
}
144
144
}
@@ -147,15 +147,15 @@ class GlyphShapeBuilder {
147
147
// [last position, control, end]
148
148
void quadratic (const float64_t2 control, const float64_t2 to)
149
149
{
150
- currentContour->addEdge (new msdfgen::QuadraticSegment (msdfPoint (lastPosition), msdfPoint (control), msdfPoint (to)));
150
+ currentContour->addEdge (msdfgen::EdgeHolder (msdfPoint (lastPosition), msdfPoint (control), msdfPoint (to)));
151
151
lastPosition = to;
152
152
}
153
153
154
154
// Continue the last moveTo or lineTo with a cubic bezier:
155
155
// [last position, control1, control2, end]
156
156
void cubic (const float64_t2 control1, const float64_t2 control2, const float64_t2 to)
157
157
{
158
- currentContour->addEdge (new msdfgen::CubicSegment (msdfPoint (lastPosition), msdfPoint (control1), msdfPoint (control2), msdfPoint (to)));
158
+ currentContour->addEdge (msdfgen::EdgeHolder (msdfPoint (lastPosition), msdfPoint (control1), msdfPoint (control2), msdfPoint (to)));
159
159
lastPosition = to;
160
160
}
161
161
0 commit comments