Skip to content

Commit

Permalink
Adjust some nerd glyph
Browse files Browse the repository at this point in the history
  • Loading branch information
yuru7 committed Jun 16, 2024
1 parent c73cd41 commit b30f8b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fontforge_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,8 +885,8 @@ def add_nerd_font_glyphs(jp_font, eng_font):
elif nerd_glyph.width > half_width:
nerd_glyph.transform(psMat.scale(half_width / nerd_glyph.width, 1))
# グリフの高さ・位置を調整する
nerd_glyph.transform(psMat.scale(1, 1.21))
nerd_glyph.transform(psMat.translate(0, -24))
# nerd_glyph.transform(psMat.scale(1, 1.02))
nerd_glyph.transform(psMat.translate(0, 33))
elif nerd_glyph.width < (EM_ASCENT + EM_DESCENT) * 0.6:
# 幅が狭いグリフは中央寄せとみなして調整する
nerd_glyph.transform(
Expand Down

0 comments on commit b30f8b2

Please sign in to comment.