Rasterizer:getCurves

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


curves = Rasterizer:getCurves(character, three)

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.).

curves = Rasterizer:getCurves(codepoint, three)

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