Font Generator
Details
- File:
FontGenerator/__init__.py - Details: Python 3.9
- Date: 2022-10-08
- Version: v1.0.0
Description
This utility module can be used to generate font files for the OTOS Graphics library.
Author
Sebastian Oberschwendtner, sebastian.oberschwendtner@gmail.com
Code
Class FontData
@dataclasses.dataclass
class FontData()
Data type to store font data.
__init__
def __init__()
Constructor of the font data type.
Class Font
@dataclasses.dataclass
class Font()
Class to generate font files.
__init__
def __init__(font_file: pathlib.Path, font_size: int)
Constructor of the font class.
convert
def convert()
Convert the font file to a font file.
Class Fonts
class Fonts()
Class to generate multiple font files.
__init__
def __init__(font_file: pathlib.Path, font_sizes: list)
Constructor of the fonts class.
convert
def convert()
Convert all fonts.
export
def export(export_path: pathlib.Path)
Export the font file.