TTF provider

The TTF provider allows using a pre-compiled TrueType or OpenType font.

The value of its type field is "ttf". Its priority is 2. It stores no glyphs.

Warning

Saving this provider is not supported except for saving to Minecraft.

Structure

{
    "type": "ttf",
    "oversample": int,
    "shift": list of two ints,
    "size": int,
    "skip": list of strings or string,
    "file": resource location
}
oversample : int

Resolution to render at. Values that don't match the font's em size will cause it to be anti-aliased.

shift : tuple[int, int]

Horizontal and vertical shift, respectively.

size : int

Divisor of the em size for glyph scaling.

skip : str | list[str]

Characters to ignore and not create mappings for.

file : str

Resource location to font file to use.

API

mcfonts.provider.ttf.TTFProvider