Skip to content

Commit

Permalink
fix name #289
Browse files Browse the repository at this point in the history
  • Loading branch information
subframe7536 committed Dec 4, 2024
1 parent fdced27 commit ee68cfc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ def __load_external(self, args):
if self.debug:
self.family_name += " Debug"

self.family_name_compact = self.family_name.replace(" ", "")
name_arr = [word.capitalize() for word in self.family_name.split(" ")]
self.family_name = " ".join(name_arr)
self.family_name_compact = "".join(name_arr)

except ():
print("Fail to load config.json. Please check your config.json.")
Expand Down Expand Up @@ -586,6 +588,8 @@ def build_mono(f: str, font_config: FontConfig, build_option: BuildOption):
freeze_config=font_config.feature_freeze,
)

remove(_path)
_path = joinPaths(build_option.output_ttf, f"{postscript_name}.ttf")
font.save(_path)
font.close()

Expand Down Expand Up @@ -1021,9 +1025,7 @@ def compress_folder(
target_parent_dir_path=archive_dir,
)
with open(
joinPaths(
archive_dir, f"{font_config.family_name_compact}-{f}.sha256"
),
joinPaths(archive_dir, f"{font_config.family_name_compact}-{f}.sha256"),
"w",
encoding="utf-8",
) as hash_file:
Expand Down

0 comments on commit ee68cfc

Please sign in to comment.