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

Function ftLineTo

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

Source from the content-addressed store, hash-verified

72}
73
74static int ftLineTo(const FT_Vector *to, void *user) {
75 FtContext *context = reinterpret_cast<FtContext *>(user);
76 Point2 endpoint = ftPoint2(*to, context->scale);
77 if (endpoint != context->position) {
78 context->contour->addEdge(EdgeHolder(context->position, endpoint));
79 context->position = endpoint;
80 }
81 return 0;
82}
83
84static int ftConicTo(const FT_Vector *control, const FT_Vector *to, void *user) {
85 FtContext *context = reinterpret_cast<FtContext *>(user);

Callers

nothing calls this directly

Calls 3

ftPoint2Function · 0.85
EdgeHolderClass · 0.85
addEdgeMethod · 0.45

Tested by

no test coverage detected