We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c6a107 commit ae96cadCopy full SHA for ae96cad
ttconv/pprdrv_tt2.cpp
@@ -271,7 +271,15 @@ void GlyphToType3::PSConvert(TTStreamWriter& stream)
271
}
272
273
// For output, a vector is more convenient than a list.
274
- std::vector<FlaggedPoint> points_v(points.begin(), points.end());
+ std::vector<FlaggedPoint> points_v;
275
+ points_v.reserve(points.size());
276
+ for (std::list<FlaggedPoint>::iterator it = points.begin();
277
+ it != points.end();
278
+ it++)
279
+ {
280
+ points_v.push_back(*it);
281
+ }
282
+
283
// The first point
284
stack(stream, 3);
285
PSMoveto(stream, points_v.front().x, points_v.front().y);
0 commit comments