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

Commit

Permalink
调整日志格式
Browse files Browse the repository at this point in the history
  • Loading branch information
TakWolf committed Jul 20, 2023
1 parent 8bb1478 commit 7b0d5a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions services/font_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def format_glyph_files(font_config: FontConfig):
glyph_data.insert(0, [0 for _ in range(glyph_width)])
glyph_data.append([0 for _ in range(glyph_width)])
glyph_util.save_glyph_data_to_png(glyph_data, glyph_file_path)
logger.info(f"Format glyph file: '{glyph_file_path}'")
logger.info("Format glyph file: '%s'", glyph_file_path)


def collect_glyph_files(font_config: FontConfig) -> tuple[dict[int, str], dict[str, str]]:
Expand Down Expand Up @@ -116,14 +116,14 @@ def make_font_files(font_config: FontConfig, character_mapping: dict[int, str],
otf_builder = builder.to_otf_builder()
otf_file_path = os.path.join(font_config.outputs_dir, f'{font_config.full_outputs_name}.otf')
otf_builder.save(otf_file_path)
logger.info(f"Make font file: '{otf_file_path}'")
logger.info("Make font file: '%s'", otf_file_path)
otf_builder.font.flavor = 'woff2'
woff2_file_path = os.path.join(font_config.outputs_dir, f'{font_config.full_outputs_name}.woff2')
otf_builder.save(woff2_file_path)
logger.info(f"Make font file: '{woff2_file_path}'")
logger.info("Make font file: '%s'", woff2_file_path)
ttf_file_path = os.path.join(font_config.outputs_dir, f'{font_config.full_outputs_name}.ttf')
builder.save_ttf(ttf_file_path)
logger.info(f"Make font file: '{ttf_file_path}'")
logger.info("Make font file: '%s'", ttf_file_path)
bdf_file_path = os.path.join(font_config.outputs_dir, f'{font_config.full_outputs_name}.bdf')
builder.save_bdf(bdf_file_path)
logger.info(f"Make font file: '{bdf_file_path}'")
logger.info("Make font file: '%s'", bdf_file_path)
2 changes: 1 addition & 1 deletion services/publish_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ def make_release_zips():
for font_config in configs.font_configs:
font_file_name = f'{font_config.full_outputs_name}.{font_format}'
file.write(os.path.join(font_config.outputs_dir, font_file_name), os.path.join(font_config.outputs_name, font_file_name))
logger.info(f"Make release zip: '{file_path}'")
logger.info("Make release zip: '%s'", file_path)

0 comments on commit 7b0d5a4

Please sign in to comment.