Skip to content

Commit

Permalink
chore: clear opened files on generate
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamyrt committed Jul 20, 2024
1 parent 529a8c0 commit 4fa1246
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
3 changes: 3 additions & 0 deletions scripts/builder/font.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def set_version(self, version: str):
self._font.versionMajor = int(parts[0])
self._font.versionMinor = int(parts[1])

def clear_opened_files(self):
self._font.DisplayStrings = ""

def build(self, formats: list[str], out_dir: str, store_temp=False) -> bool:
print("Preparing build environment")
temp_dir, ds_file = self._prepare_build()
Expand Down
1 change: 1 addition & 0 deletions scripts/lilex.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
)
def generate(args, font: GlyphsFont):
"""Saves the generated source file with features and classes"""
font.clear_opened_files()
if args.params:
for master in font.file.masters:
names = []
Expand Down
33 changes: 14 additions & 19 deletions sources/Lilex.glyphs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
.appVersion = "3134";
.appVersion = "3306";
.formatVersion = 3;
DisplayStrings = (
"ё",
"/bar_greater.liga.cv11",
"/less_bar.liga.cv11"
);
axes = (
{
name = Weight;
Expand Down Expand Up @@ -132,23 +127,23 @@ size = 6;
},
{
pos = 363;
size = "-6";
size = -6;
},
{
pos = 335;
size = 6;
},
{
pos = 329;
size = "-6";
size = -6;
},
{
pos = 0;
size = "-12";
size = -12;
},
{
pos = "-200";
size = "-12";
pos = -200;
size = -12;
}
);
},
Expand Down Expand Up @@ -146472,10 +146467,6 @@ value = "Copyright 2019-2023 The Lilex Project Authors (https://github.com/misha
);
},
{
key = designerURL;
value = "https://myrt.co";
},
{
key = designers;
values = (
{
Expand All @@ -146485,8 +146476,8 @@ value = "Mike Abbink, Paul van der Laan, Pieter van Rosmalen, Mikhael Khrustik";
);
},
{
key = licenseURL;
value = "http://scripts.sil.org/OFL";
key = designerURL;
value = "https://myrt.co";
},
{
key = licenses;
Expand All @@ -146498,8 +146489,8 @@ value = "This Font Software is licensed under the SIL Open Font License, Version
);
},
{
key = manufacturerURL;
value = "https://myrt.co";
key = licenseURL;
value = "http://scripts.sil.org/OFL";
},
{
key = manufacturers;
Expand All @@ -146509,6 +146500,10 @@ language = dflt;
value = "Mikhael Khrustik";
}
);
},
{
key = manufacturerURL;
value = "https://myrt.co";
}
);
stems = (
Expand Down

0 comments on commit 4fa1246

Please sign in to comment.