(font: TTFont, name: str, id: int, mac: bool | None = None)
| 27 | |
| 28 | |
| 29 | def set_font_name(font: TTFont, name: str, id: int, mac: bool | None = None): |
| 30 | font["name"].setName(name, nameID=id, platformID=3, platEncID=1, langID=0x409) # type: ignore |
| 31 | if mac: |
| 32 | font["name"].setName(name, nameID=id, platformID=1, platEncID=0, langID=0x0) # type: ignore |
| 33 | |
| 34 | |
| 35 | def get_font_name(font: TTFont, id: int) -> str: |
no outgoing calls
no test coverage detected