Rasterizer:getCurves

Edit

Returns the bezier curve control points defining the shape of a glyph.



Arguments

NameTypeDescription
characterstring A character.
threeboolean Whether the control points should be 3D or 2D.

Returns

NameTypeDescription
curvestable A table of curves. Each curve is a table of numbers representing the control points (2 for a line, 3 for a quadratic curve, etc.).

Arguments

NameTypeDescription
codepointnumber A codepoint.
threeboolean Whether the control points should be 3D or 2D.

Returns

NameTypeDescription
curvestable A table of curves. Each curve is a table of numbers representing the control points (2 for a line, 3 for a quadratic curve, etc.).

See also