Crate sdf_glyph_renderer[][src]

Structs

BitmapGlyph

A raw bitmap containing only the alpha channel.

Enums

Error

Functions

clamp_to_u8

Compresses a Vec into a Vec for efficiency.

render_sdf

Render a signed distance field for the given bitmap, recording distances out to radius pixels from the shape outline (the rest will be clamped). The range of the output field is [-1.0, 1.0], normalised to units of radius.