Space provider

The space provider maps characters to clear widths (advances).

The value of its type field is "space". Its priority is 4. It stores space glyphs.

Structure

{
    "type": "space",
    "advances": {
        "character": int,
        ...
    }
}
advances : dict[str, int]

Object of character to width. Values cannot be < -256 or > 256.

Negative widths

Values of advances are allowed to be any integer whose absolute value is <= 256.

Negative width values will function as expected, and produce glyphs that subtract from the current advance, rather than add to it.

Therefore, using these characters will "move back" the cursor for the character after.

API

mcfonts.provider.space.SpaceProvider