Skip to content

Commit

Permalink
Adds fonts summary
Browse files Browse the repository at this point in the history
  • Loading branch information
catusphan committed Nov 15, 2024
1 parent e0767bb commit 4304781
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
30 changes: 15 additions & 15 deletions font_summary.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Font Summary

| Config File | Base Font Name | Ruby Font Name | Base Font Filepath | Ruby Font Filepath |
|-------------|----------------|----------------|--------------------|--------------------|
| catus.bottom.json | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| catus.left.json | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| catus.top.json | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| default.json | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| leo.bottom.json | LXGW WenKai Mono | LXGW WenKai Mono | resources/fonts/LXGWWenKaiMono-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| leo.left.json | LXGW WenKai Mono | LXGW WenKai Mono | resources/fonts/LXGWWenKaiMono-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| leo.top.json | LXGW WenKai Mono | LXGW WenKai Mono | resources/fonts/LXGWWenKaiMono-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| onca.bottom.json | Noto Serif SC | LXGW WenKai Mono | resources/fonts/NotoSerifSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| onca.left.json | Noto Serif SC | LXGW WenKai Mono | resources/fonts/NotoSerifSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| onca.top.json | Noto Serif SC | LXGW WenKai Mono | resources/fonts/NotoSerifSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| tigris.bottom.json | xiaolaiMonoSC | LXGW WenKai Mono | resources/fonts/XiaolaiMonoSC-without-Hangul-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| tigris.left.json | xiaolaiMonoSC | LXGW WenKai Mono | resources/fonts/XiaolaiMonoSC-without-Hangul-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| tigris.top.json | xiaolaiMonoSC | LXGW WenKai Mono | resources/fonts/XiaolaiMonoSC-without-Hangul-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| Config File | Font Name | Base Font Name | Ruby Font Name | Base Font Filepath | Ruby Font Filepath |
|-------------|-----------|----------------|----------------|--------------------|--------------------|
| catus.bottom.json | Pinyin Catus Bottom Sans | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| catus.left.json | Pinyin Catus Left Sans | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| catus.top.json | Pinyin Catus Top Sans | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| default.json | Pinyin Catus Top Sans | Noto Sans SC | LXGW WenKai Mono | resources/fonts/NotoSansSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| leo.bottom.json | Pinyin Leo Bottom Serif | LXGW WenKai Mono | LXGW WenKai Mono | resources/fonts/LXGWWenKaiMono-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| leo.left.json | Pinyin Leo Left Serif | LXGW WenKai Mono | LXGW WenKai Mono | resources/fonts/LXGWWenKaiMono-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| leo.top.json | Pinyin Leo Top Serif | LXGW WenKai Mono | LXGW WenKai Mono | resources/fonts/LXGWWenKaiMono-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| onca.bottom.json | Pinyin Onca Bottom Serif | Noto Serif SC | LXGW WenKai Mono | resources/fonts/NotoSerifSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| onca.left.json | Pinyin Onca Left Serif | Noto Serif SC | LXGW WenKai Mono | resources/fonts/NotoSerifSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| onca.top.json | Pinyin Onca Top Serif | Noto Serif SC | LXGW WenKai Mono | resources/fonts/NotoSerifSC-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| tigris.bottom.json | Pinyin Tigris Bottom Handwritten | xiaolaiMonoSC | LXGW WenKai Mono | resources/fonts/XiaolaiMonoSC-without-Hangul-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| tigris.left.json | Pinyin Tigris Left Handwritten | xiaolaiMonoSC | LXGW WenKai Mono | resources/fonts/XiaolaiMonoSC-without-Hangul-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
| tigris.top.json | Pinyin Tigris Top Handwritten | xiaolaiMonoSC | LXGW WenKai Mono | resources/fonts/XiaolaiMonoSC-without-Hangul-Regular.ttf | resources/fonts/LXGWWenKaiMono-Regular.ttf |
8 changes: 4 additions & 4 deletions tools/summarize_fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ def save_summary_to_json(summary_list):
def convert_summary_to_markdown(summary_list):
markdown_content = "# Font Summary\n\n"

# Markdown table headers (changed order here)
markdown_content += "| Config File | Base Font Name | Ruby Font Name | Base Font Filepath | Ruby Font Filepath |\n"
markdown_content += "|-------------|----------------|----------------|--------------------|--------------------|\n"
# Markdown table headers (changed order here, fontName is second column)
markdown_content += "| Config File | Font Name | Base Font Name | Ruby Font Name | Base Font Filepath | Ruby Font Filepath |\n"
markdown_content += "|-------------|-----------|----------------|----------------|--------------------|--------------------|\n"

# Add rows for each summary entry
for summary in summary_list:
markdown_content += f"| {summary['config']} | {summary.get('baseFontName', 'N/A')} | {summary.get('rubyFontName', 'N/A')} | {summary.get('baseFontFilepath', 'N/A')} | {summary.get('rubyFontFilepath', 'N/A')} |\n"
markdown_content += f"| {summary['config']} | {summary.get('fontName', 'N/A')} | {summary.get('baseFontName', 'N/A')} | {summary.get('rubyFontName', 'N/A')} | {summary.get('baseFontFilepath', 'N/A')} | {summary.get('rubyFontFilepath', 'N/A')} |\n"

return markdown_content

Expand Down

0 comments on commit 4304781

Please sign in to comment.