Glyph tracing

class retrofont.trace.Tracer

Glyph tracer.

get_paths()

Get the result of the traced glyph.

Return type:

list[list[tuple[int, int]]]

Returns:

Traced glyph paths.

load(glyph)

Load a glyph.

Parameters:

glyph (bytes) – A glyph.

Return type:

None

trace()

Trace the loaded glyph.

Return type:

None

retrofont.trace.get_lsb(paths)

Find the left-side border of a glyph.

Parameters:

paths (list[list[tuple[int, int]]]) – Glyph outlines.

Return type:

int

Returns:

Left-side border of the glyph.