@@ -138,7 +138,7 @@ def generate_font(jp_style, eng_style, merged_style):
138138
139139 # Discord用の調整
140140 if options .get ("discord" ):
141- create_discord (eng_font )
141+ create_discord (eng_font , jp_font , jp_style )
142142
143143 # 重複するグリフを削除する
144144 delete_duplicate_glyphs (jp_font , eng_font )
@@ -319,7 +319,7 @@ def adjust_some_glyph(jp_font, jp_style, eng_font, eng_style):
319319 for glyph_name in [0x002B ]:
320320 glyph = eng_font [glyph_name ]
321321 scale_glyph (glyph , 1 , 1.15 )
322- # 全角チルダを垂直に反転
322+ # 波ダッシュを垂直に反転
323323 tilde = jp_font [0x301C ]
324324 inverse_glyph (tilde )
325325 # 英語フォントにカスタムグリフを適用する
@@ -329,7 +329,7 @@ def adjust_some_glyph(jp_font, jp_style, eng_font, eng_style):
329329 eng_font .mergeFonts (f"{ SOURCE_FONTS_DIR } /inconsolata/custom_glyphs-{ eng_style } .sfd" )
330330 eng_font .selection .none ()
331331 # 日本語フォントにカスタムグリフを適用する
332- # - ぱぴぷぺぽ パピプペポ の半濁点を調整 30 %拡大
332+ # - ぱぴぷぺぽ パピプペポ の半濁点を調整 20 %拡大
333333 for uni in [
334334 0x3071 ,
335335 0x3074 ,
@@ -344,19 +344,6 @@ def adjust_some_glyph(jp_font, jp_style, eng_font, eng_style):
344344 ]:
345345 glyph = jp_font [uni ]
346346 glyph .clear ()
347- # - カ力 エ工 ロ口 ー一 ニ二 (カタカナ・漢字) へヘ (ひらがな・カタカナ) 後者のグリフに特徴付け
348- for uni in [
349- 0x529B ,
350- 0x5DE5 ,
351- 0x53E3 ,
352- 0x30FC ,
353- 0x4E00 ,
354- 0x4E8C ,
355- 0x30D8 ,
356- 0x30D9 ,
357- ]:
358- glyph = jp_font [uni ]
359- glyph .clear ()
360347 jp_font .mergeFonts (f"{ SOURCE_FONTS_DIR } /biz-ud-gothic/custom_glyphs-{ jp_style } .sfd" )
361348
362349
@@ -401,7 +388,7 @@ def inverse_glyph(glyph):
401388 glyph .transform (psMat .translate (0 , before_top_y - after_top_y ))
402389
403390
404- def create_discord (eng_font ):
391+ def create_discord (eng_font , jp_font , jp_style ):
405392 """Discord用の調整を行う"""
406393 # Discord用の調整
407394 discord_char_list = "07DZlrz|"
@@ -512,6 +499,36 @@ def create_discord(eng_font):
512499 glyph = eng_font [glyph_name ]
513500 scale_glyph (glyph , 1.15 , 1.15 )
514501
502+ # 日本語フォントにカスタムグリフを適用する
503+ # - ぱぴぷぺぽ パピプペポ の半濁点を調整 30%拡大
504+ # - カタカナ ヘペベ に特徴付け
505+ # - カ力 エ工 ロ口 ー一 ニ二 のグリフに特徴付け
506+ for uni in [
507+ 0x3071 ,
508+ 0x3074 ,
509+ 0x3077 ,
510+ 0x307A ,
511+ 0x307D ,
512+ 0x30D1 ,
513+ 0x30D4 ,
514+ 0x30D7 ,
515+ 0x30DA ,
516+ 0x30DD ,
517+ 0x30D8 ,
518+ 0x30D9 ,
519+ 0x529B ,
520+ 0x5DE5 ,
521+ 0x53E3 ,
522+ 0x30FC ,
523+ 0x4E00 ,
524+ 0x4E8C ,
525+ ]:
526+ glyph = jp_font [uni ]
527+ glyph .clear ()
528+ jp_font .mergeFonts (
529+ f"{ SOURCE_FONTS_DIR } /biz-ud-gothic/custom_glyphs_discord-{ jp_style } .sfd"
530+ )
531+
515532
516533def adjust_em (font ):
517534 """フォントのEMを揃える"""
0 commit comments