Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
调整文件命名以兼容 Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
TakWolf committed Sep 11, 2023
1 parent e18f6b9 commit 0fa1926
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 0 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 4 additions & 0 deletions services/font_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ def collect_glyph_files(font_config: FontConfig) -> tuple[dict[int, str], list[t
code_point = -1
elif c_name == 'space':
code_point = ord(' ')
elif c_name == 'exclamation':
code_point = ord('!')
elif c_name == 'full_stop':
code_point = ord('.')
elif c_name == 'question':
code_point = ord('?')
else:
code_point = ord(c_name)
registry[code_point] = glyph_file_path
Expand Down

0 comments on commit 0fa1926

Please sign in to comment.