makefile blackitalic

This commit is contained in:
Rasmus Andersson 2018-09-14 08:50:06 -07:00
parent a8e39fcb3b
commit fef07785c6
3 changed files with 13 additions and 5 deletions

View file

@ -86,6 +86,9 @@ $(FONTDIR)/const/Inter-UI-Black.%: src/Inter-UI.designspace $(Black_ufo_d)
$(FONTDIR)/const/Inter-UI-Italic.%: src/Inter-UI.designspace $(Italic_ufo_d)
misc/fontbuild compile -o $@ src/Inter-UI-Italic.ufo
$(FONTDIR)/const/Inter-UI-BlackItalic.%: src/Inter-UI.designspace $(BlackItalic_ufo_d)
misc/fontbuild compile -o $@ src/Inter-UI-BlackItalic.ufo
$(FONTDIR)/const/Inter-UI-%.otf: build/ufo/Inter-UI-%.ufo src/Inter-UI.designspace $(Regular_ufo_d) $(Black_ufo_d)
misc/fontbuild compile -o $@ $<

View file

@ -309,15 +309,15 @@ else
Regular \
Black \
Italic \
BlackItalic \
)
derived_styles=( \
"Medium : Regular Black" \
"MediumItalic : Regular Black Italic" \
"MediumItalic : Italic BlackItalic" \
"Bold : Regular Black" \
"BoldItalic : Regular Black Italic" \
"BoldItalic : Italic BlackItalic" \
"ExtraBold : Regular Black" \
"ExtraBoldItalic : Regular Black Italic" \
"BlackItalic : Regular Black Italic" \
"ExtraBoldItalic : Italic BlackItalic" \
)
web_formats=( woff woff2 ) # Disabled/unused: eot

View file

@ -474,7 +474,12 @@ class Main(object):
ufo_path = pjoin(master_dir, 'Inter-UI-Italic.ufo')
source.styleName = "Italic"
source.name = "italic"
source.font.info.styleName = "Italic"
source.font.info.styleName = source.styleName
elif source.styleName == "Black Italic Italic":
ufo_path = pjoin(master_dir, 'Inter-UI-BlackItalic.ufo')
source.styleName = "Black Italic"
source.name = "blackitalic"
source.font.info.styleName = source.font.info.styleName
else:
# name "Inter UI Black" => "black"
source.name = source.styleName.lower().replace(' ', '')