MCPcopy Create free account
hub / github.com/MyGUI/mygui / ftMoveTo

Function ftMoveTo

MyGUIEngine/src/msdfgen/ext/import-font.cpp:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66static int ftMoveTo(const FT_Vector *to, void *user) {
67 FtContext *context = reinterpret_cast<FtContext *>(user);
68 if (!(context->contour && context->contour->edges.empty()))
69 context->contour = &context->shape->addContour();
70 context->position = ftPoint2(*to, context->scale);
71 return 0;
72}
73
74static int ftLineTo(const FT_Vector *to, void *user) {
75 FtContext *context = reinterpret_cast<FtContext *>(user);

Callers

nothing calls this directly

Calls 3

ftPoint2Function · 0.85
addContourMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected