Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
- Fixing periodcentered coz-m#52
- Fixing Interpolation issue coz-m#50
- Fixing interpolation issue coz-m#49
- Disabled hinting (set to full GASP blur) coz-m#45

Version string bumped to 1.007 (keeping all in alignment)
  • Loading branch information
aaronbell committed Nov 26, 2024
1 parent b174f3a commit 174bd28
Show file tree
Hide file tree
Showing 105 changed files with 30,363 additions and 30,189 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@

.DS_Store
*.upstream.yaml
venv
*.ufo

sources/MPLUS-1.designspace
sources/MPLUS-2.designspace
sources/MPLUS-code.designspace
sources/MPLUS-kanji.designspace
40 changes: 20 additions & 20 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,36 +83,34 @@ def make_static(instance_descriptor, generator, prefix):

style_name = instance.info.styleName

if prefix == "MplusCodeLatin":
if prefix == "MPLUSCodeLatin":
prefix = instance_descriptor.familyName

DSIG_modification(static_ttf)

print ("["+prefix+"-"+str(style_name).replace(" ","")+"] Saving")
output = "fonts/ttf/"+prefix.replace(" ","")+"-"+str(style_name).replace(" ","")+".ttf"
outputOTF = "fonts/otf/"+prefix.replace(" ","")+"-"+str(style_name).replace(" ","")+".otf"
if "1" in str(output) or "2" in str(output):
GASP_set(static_ttf)
GASP_set(static_ttf)
static_ttf.save(output)
static_otf.save(outputOTF)
if "Latin" in output:
autohint(output)

psautohint.__main__.main([outputOTF])
cffsubr.__main__.main(["-i", outputOTF])


def autohint(file):
print ("["+str(file).split("/")[2]+"] Autohinting")
subprocess.check_call(
[
"ttfautohint",
"--stem-width",
"nsn",
str(file),
str(file)[:-4]+"-hinted.ttf",
]
)
shutil.move(str(file)[:-4]+"-hinted.ttf", str(file))
# def autohint(file):
# print ("["+str(file).split("/")[2]+"] Autohinting")
# subprocess.check_call(
# [
# "ttfautohint",
# "--stem-width",
# "nsn",
# str(file),
# str(file)[:-4]+"-hinted.ttf",
# ]
# )
# shutil.move(str(file)[:-4]+"-hinted.ttf", str(file))

def build_variable(type:str, ds: DesignSpaceDocument) -> None:
output = Path("fonts/ttf")
Expand All @@ -137,7 +135,8 @@ def build_variable(type:str, ds: DesignSpaceDocument) -> None:

varFont.save(output/"MPLUSCodeLatin[wdth,wght].ttf")
fixStat(output/"MPLUSCodeLatin[wdth,wght].ttf","sources/MPLUS_STAT.yaml")
autohint(output/"MPLUSCodeLatin[wdth,wght].ttf")
GASP_set(varFont)
#autohint(output/"MPLUSCodeLatin[wdth,wght].ttf")
prefix = "MPLUSCodeLatin"

if type == "one" or type == "two":
Expand Down Expand Up @@ -270,8 +269,9 @@ def cleanup():
if args.sources:
print ("[MPLUS] Generating UFO sources")
for file in sources.glob("*.glyphs"):
print ("["+str(file).split("/")[1]+"] generating source")
main(("glyphs2ufo", str(file), "--write-public-skip-export-glyphs"))
if "-U" not in str(file):
print ("["+str(file).split("/")[1]+"] generating source")
main(("glyphs2ufo", str(file), "--write-public-skip-export-glyphs"))

print ("[MPLUS] Generating Japanese instances for code use") #these are needed as MPlus1 & Kanji don't have the same master positions as Code

Expand Down
Binary file modified fonts/otf/Mplus1-Black.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1-Bold.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1-ExtraBold.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1-ExtraLight.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1-Light.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1-Medium.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1-Regular.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1-SemiBold.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1-Thin.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1Code-Bold.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1Code-ExtraLight.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1Code-Light.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1Code-Medium.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1Code-Regular.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1Code-SemiBold.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus1Code-Thin.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus2-Black.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus2-Bold.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus2-ExtraBold.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus2-ExtraLight.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus2-Light.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus2-Medium.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus2-Regular.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus2-SemiBold.otf
Binary file not shown.
Binary file modified fonts/otf/Mplus2-Thin.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode50-Bold.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode50-ExtraLight.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode50-Light.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode50-Medium.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode50-Regular.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode50-SemiBold.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode50-Thin.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode60-Bold.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode60-ExtraLight.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode60-Light.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode60-Medium.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode60-Regular.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode60-SemiBold.otf
Binary file not shown.
Binary file removed fonts/otf/MplusCode60-Thin.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin50-Bold.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin50-ExtraLight.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin50-Light.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin50-Medium.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin50-Regular.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin50-SemiBold.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin50-Thin.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin60-Bold.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin60-ExtraLight.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin60-Light.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin60-Medium.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin60-Regular.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin60-SemiBold.otf
Binary file not shown.
Binary file modified fonts/otf/MplusCodeLatin60-Thin.otf
Binary file not shown.
Binary file modified fonts/ttf/MPLUS1Code[wght].ttf
Binary file not shown.
Binary file modified fonts/ttf/MPLUS1[wght].ttf
Binary file not shown.
Binary file modified fonts/ttf/MPLUS2[wght].ttf
Binary file not shown.
Binary file modified fonts/ttf/MPLUSCodeLatin[wdth,wght].ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1-Black.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1-Bold.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1-ExtraBold.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1-ExtraLight.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1-Light.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1-Medium.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1-Regular.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1-SemiBold.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1-Thin.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1Code-Bold.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1Code-ExtraLight.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1Code-Light.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1Code-Medium.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1Code-Regular.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1Code-SemiBold.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus1Code-Thin.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus2-Black.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus2-Bold.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus2-ExtraBold.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus2-ExtraLight.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus2-Light.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus2-Medium.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus2-Regular.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus2-SemiBold.ttf
Binary file not shown.
Binary file modified fonts/ttf/Mplus2-Thin.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin50-Bold.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin50-ExtraLight.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin50-Light.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin50-Medium.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin50-Regular.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin50-SemiBold.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin50-Thin.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin60-Bold.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin60-ExtraLight.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin60-Light.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin60-Medium.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin60-Regular.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin60-SemiBold.ttf
Binary file not shown.
Binary file modified fonts/ttf/MplusCodeLatin60-Thin.ttf
Binary file not shown.
Loading

0 comments on commit 174bd28

Please sign in to comment.