mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-08 04:55:47 +08:00
14 lines
312 B
Python
14 lines
312 B
Python
from pathlib import Path
|
|
|
|
from PIL import ImageFont
|
|
|
|
FONT_ORIGIN_PATH = Path(__file__).parent / 'FirstWorld.ttf'
|
|
|
|
|
|
def first_word_origin(size: int) -> ImageFont.FreeTypeFont:
|
|
return ImageFont.truetype(str(FONT_ORIGIN_PATH), size=size)
|
|
|
|
|
|
fw_font_12 = first_word_origin(12)
|
|
fw_font_120 = first_word_origin(34)
|