• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

u8slvn / until-zero / 5707743469

pending completion
5707743469

push

github

u8slvn
feat: add auto font loading

13 of 13 new or added lines in 3 files covered. (100.0%)

542 of 574 relevant lines covered (94.43%)

2.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/until_zero/font.py
1
from __future__ import annotations
×
2

3
import sys
×
4

5
import pyglet  # type: ignore
×
6

7
from until_zero.constants import ASSETS_DIR
×
8

9

10
FONT_NAME = "CozetteVector"
×
11
FONT_PATH = ASSETS_DIR.joinpath(f"fonts/{FONT_NAME}.ttf")
×
12

13

14
def load_font() -> None:
×
15
    if sys.platform.startswith("win"):
×
16
        pyglet.options["win32_gdi_font"] = True
×
17
    pyglet.font.add_file(str(FONT_PATH))
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc