mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
change font paths
This commit is contained in:
@@ -1083,7 +1083,7 @@ class SongInfo:
|
|||||||
codepoint_count = ray.ffi.new('int *', 0)
|
codepoint_count = ray.ffi.new('int *', 0)
|
||||||
unique_codepoints = set(text)
|
unique_codepoints = set(text)
|
||||||
codepoints = ray.load_codepoints(''.join(unique_codepoints), codepoint_count)
|
codepoints = ray.load_codepoints(''.join(unique_codepoints), codepoint_count)
|
||||||
return ray.load_font_ex('Graphics\\Modified-DFPKanteiryu-XB.ttf', 32, codepoints, 0)
|
return ray.load_font_ex(str(Path('Graphics/Modified-DFPKanteiryu-XB.ttf')), 32, codepoints, 0)
|
||||||
|
|
||||||
def update(self, current_ms: float):
|
def update(self, current_ms: float):
|
||||||
self.fade_in.update(current_ms)
|
self.fade_in.update(current_ms)
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ class FontText:
|
|||||||
codepoints_no_dup = set()
|
codepoints_no_dup = set()
|
||||||
codepoints_no_dup.update(global_data.song_title)
|
codepoints_no_dup.update(global_data.song_title)
|
||||||
codepoints = ray.load_codepoints(''.join(codepoints_no_dup), codepoint_count)
|
codepoints = ray.load_codepoints(''.join(codepoints_no_dup), codepoint_count)
|
||||||
self.font = ray.load_font_ex('Graphics\\Modified-DFPKanteiryu-XB.ttf', 32, codepoints, 0)
|
self.font = ray.load_font_ex(str(Path('Graphics/Modified-DFPKanteiryu-XB.ttf')), 32, codepoints, 0)
|
||||||
self.text = OutlinedText(self.font, str(text), font_size, ray.WHITE, ray.BLACK, outline_thickness=5)
|
self.text = OutlinedText(self.font, str(text), font_size, ray.WHITE, ray.BLACK, outline_thickness=5)
|
||||||
|
|
||||||
self.texture = self.text.texture
|
self.texture = self.text.texture
|
||||||
|
|||||||
Reference in New Issue
Block a user