fzg - oss pixel font, combining fairfax, zlabs and galmuri

bugs fix

Astro2539 dc246971 60e329bd

+1 -1
data/ZLabsBitmapHC.kbitx
··· 20 20 <name id="12" value="https://github.com/Astro-2539/" /> 21 21 <name id="13" value="This Font Software is licensed under the SIL Open Font License, Version 1.1." /> 22 22 <name id="14" value="https://openfontlicense.org/" /> 23 - <name id="19" value="像素之光點亮文字之美 The luster of pixals lights up the beauty of words." /> 23 + <name id="19" value="像素之光點亮文字之美 The luster of pixels lights up the beauty of words." /> 24 24 <g u="19982" x="0" y="10" w="12" d="DAsCQQpBCkkCQQpBCkkKQQpJAkEKQQfD/wD/CUEC" /> 25 25 <g u="19985" x="0" y="9" w="12" d="CwsBSAZBA0EGQQNBBkEDQQZBA0ECSwNBBEEFQQRBBUEEQQVBBEECSw" /> 26 26 <g u="20011" x="1" y="10" w="12" d="DAlBB8P/AP8FQQNBA0EHQQdBCEEIQQhBCEEIQQhBCEEE" />
+1 -1
data/ZLabsBitmapHC_fallback.kbitx
··· 20 20 <name id="12" value="https://github.com/Astro-2539/" /> 21 21 <name id="13" value="This Font Software is licensed under the SIL Open Font License, Version 1.1." /> 22 22 <name id="14" value="https://openfontlicense.org/" /> 23 - <name id="19" value="像素之光點亮文字之美 The luster of pixals lights up the beauty of words." /> 23 + <name id="19" value="像素之光點亮文字之美 The luster of pixels lights up the beauty of words." /> 24 24 <g u="19982" x="0" y="10" w="12" d="DAsCQQpBCkkCQQpBCkkKQQpJAkEKQQfD/wD/CUEC" /> 25 25 <g u="19985" x="0" y="9" w="12" d="CwsBSAZBA0EGQQNBBkEDQQZBA0ECSwNBBEEFQQRBBUEEQQVBBEECSw" /> 26 26 <g u="20011" x="1" y="10" w="12" d="DAlBB8P/AP8FQQNBA0EHQQdBCEEIQQhBCEEIQQhBCEEE" />
+1 -1
src/ZLabsBitmapHC_diff.kbitx
··· 21 21 <name id="12" value="https://github.com/Astro-2539/"/> 22 22 <name id="13" value="This Font Software is licensed under the SIL Open Font License, Version 1.1."/> 23 23 <name id="14" value="https://openfontlicense.org/"/> 24 - <name id="19" value="&#20687;&#32032;&#20043;&#20809;&#40670;&#20142;&#25991;&#23383;&#20043;&#32654; The luster of pixals lights up the beauty of words."/> 24 + <name id="19" value="&#20687;&#32032;&#20043;&#20809;&#40670;&#20142;&#25991;&#23383;&#20043;&#32654; The luster of pixels lights up the beauty of words."/> 25 25 <g u="19982" x="0" y="10" w="12" d="DAsCQQpBCkkCQQpBCkkKQQpJAkEKQQfD/wD/CUEC" /> 26 26 <g u="19985" x="0" y="9" w="12" d="CwsBSAZBA0EGQQNBBkEDQQZBA0ECSwNBBEEFQQRBBUEEQQVBBEECSw" /> 27 27 <g u="20011" x="1" y="10" w="12" d="DAlBB8P/AP8FQQNBA0EHQQdBCEEIQQhBCEEIQQhBCEEE" />
+9 -2
tools/build.py
··· 11 11 from kbitx_marge_fallback import merge_kbitx_files 12 12 13 13 def fix_mono_mode(font: TTFont): 14 - font['OS/2'].xAvgCharWidth = 600 15 14 font['post'].isFixedPitch = 1 15 + font['OS/2'].panose.bFamilyType = 2 16 + font['OS/2'].panose.bProportion = 9 # 修改字体的 Panose 属性,使其能够被识别为等宽字体 17 + font['OS/2'].xAvgCharWidth = 600 # 修复 Panose 属性引起的字宽问题 18 + font['OS/2'].achVendID = "ZLAB" 19 + font['OS/2'].ulCodePageRange1 = 0b1100000000101100000000000001101 20 + font['OS/2'].ulCodePageRange2 = 0b10000110101010000000000000000 # 为字体添加微软编码页属性,防止某些程序不识别 16 21 17 22 18 23 def main(): 19 24 if path_define.build_dir.exists(): 20 25 shutil.rmtree(path_define.build_dir) 26 + if path_define.data_dir.exists(): 27 + shutil.rmtree(path_define.data_dir) 21 28 path_define.outputs_dir.mkdir(parents=True) 22 29 path_define.releases_dir.mkdir(parents=True) 23 30 ··· 119 126 120 127 for font_format in options.font_formats: 121 128 with zipfile.ZipFile(path_define.releases_dir.joinpath(f'ZLabsBitmap-{font_format}.zip'), 'w') as file: 122 - file.write(path_define.project_root_dir.joinpath('LICENSE'), 'LICENSE') 129 + file.write(path_define.project_root_dir.joinpath('LICENSE-OFL'), 'LICENSE') 123 130 for font_file_path in path_define.outputs_dir.iterdir(): 124 131 if font_file_path.name.endswith(f'.{font_format}'): 125 132 file.write(font_file_path, font_file_path.name)