diff --git a/redist/Saxy.otf b/redist/Saxy.otf index f4f2fb1..7c37977 100644 Binary files a/redist/Saxy.otf and b/redist/Saxy.otf differ diff --git a/redist/Saxy.ttf b/redist/Saxy.ttf index 9274f76..ff28020 100644 Binary files a/redist/Saxy.ttf and b/redist/Saxy.ttf differ diff --git a/redist/saxy.woff2 b/redist/saxy.woff2 index 2a5081b..598aa75 100644 Binary files a/redist/saxy.woff2 and b/redist/saxy.woff2 differ diff --git a/src/MASTER.svg b/src/MASTER.svg index 7efdc4e..712eb2b 100644 --- a/src/MASTER.svg +++ b/src/MASTER.svg @@ -10,7 +10,7 @@ - + diff --git a/src/build.py b/src/build.py index 716b940..f2673d6 100644 --- a/src/build.py +++ b/src/build.py @@ -46,7 +46,7 @@ def add_kerning(font): font.addKerningClass("kern", "kern-1", tuple(svg_map), tuple(svg_map), tuple(offsets_tuple)) if __name__ == "__main__": - svg_map = generate_svgs.generate(master_svg, output_dir, template_svg, master_char) + svg_map = generate_svgs.generate(master_svg, output_dir, template_svg, master_char, ["nine"]) font = fontforge.font() # new font for char in svg_map: diff --git a/src/generate_svgs.py b/src/generate_svgs.py index 919e0e0..07aa52e 100644 --- a/src/generate_svgs.py +++ b/src/generate_svgs.py @@ -48,14 +48,14 @@ def check_output_dir(output_dir): def generate_merge(merge_char, names, values, template: str, output_dir, exclude_from_master_char): inside_str = "" - for svg in values: - if not svg in exclude_from_master_char: - inside_str += '\n ' + svg + for index in range(len(names)): + if not names[index] in exclude_from_master_char: + inside_str += '\n ' + values[index] value = template.replace('', inside_str) - value = value.replace('class="key"', 'class="key" fill="none" stroke="black" stroke-width="3px"').replace('class="normal"', 'class="normal" fill="none" stroke="black" stroke-width="3px"') - + value = value.replace('class="key"', 'class="key" fill="none" stroke="black" stroke-width="3px"') + value = value.replace('class="normal"', 'class="normal" fill="black" stroke="none" stroke-width="3px"') with open(os.path.join(os.path.dirname(current_file_path), output_dir, merge_char + ".svg"), 'w') as file: file.write(value)