diff --git a/Makefile b/Makefile index 8747db195..d74a059ac 100644 --- a/Makefile +++ b/Makefile @@ -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 $@ $< diff --git a/init.sh b/init.sh index 3e7c133fb..885b37807 100755 --- a/init.sh +++ b/init.sh @@ -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 diff --git a/misc/fontbuild b/misc/fontbuild index 4ca3f60ba..2bb13b679 100755 --- a/misc/fontbuild +++ b/misc/fontbuild @@ -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(' ', '')