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

Function ftConicTo

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

Source from the content-addressed store, hash-verified

82}
83
84static int ftConicTo(const FT_Vector *control, const FT_Vector *to, void *user) {
85 FtContext *context = reinterpret_cast<FtContext *>(user);
86 Point2 endpoint = ftPoint2(*to, context->scale);
87 if (endpoint != context->position) {
88 context->contour->addEdge(EdgeHolder(context->position, ftPoint2(*control, context->scale), endpoint));
89 context->position = endpoint;
90 }
91 return 0;
92}
93
94static int ftCubicTo(const FT_Vector *control1, const FT_Vector *control2, const FT_Vector *to, void *user) {
95 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