mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
Update utils.py
This commit is contained in:
@@ -200,7 +200,7 @@ class OutlinedText:
|
|||||||
if reload_font:
|
if reload_font:
|
||||||
codepoint_count = ray.ffi.new('int *', 0)
|
codepoint_count = ray.ffi.new('int *', 0)
|
||||||
codepoints = ray.load_codepoints(''.join(global_data.font_codepoints), codepoint_count)
|
codepoints = ray.load_codepoints(''.join(global_data.font_codepoints), codepoint_count)
|
||||||
global_data.font = ray.load_font_ex(str(Path(f'Skins/{global_data.config["paths"]["skin"]}/Modified-DFPKanteiryu-XB.ttf')), 40, codepoints, len(global_data.font_codepoints))
|
global_data.font = ray.load_font_ex(str(Path(f'Skins/{global_data.config["paths"]["skin"]}/Graphics/Modified-DFPKanteiryu-XB.ttf')), 40, codepoints, len(global_data.font_codepoints))
|
||||||
logger.info(f"Reloaded font with {len(global_data.font_codepoints)} codepoints")
|
logger.info(f"Reloaded font with {len(global_data.font_codepoints)} codepoints")
|
||||||
return global_data.font
|
return global_data.font
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user