mirror of
https://github.com/rsms/inter.git
synced 2024-11-15 19:47:47 +01:00
makefile blackitalic
This commit is contained in:
parent
a8e39fcb3b
commit
fef07785c6
3 changed files with 13 additions and 5 deletions
3
Makefile
3
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 $@ $<
|
||||
|
||||
|
|
8
init.sh
8
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
|
||||
|
||||
|
|
|
@ -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(' ', '')
|
||||
|
|
Loading…
Reference in a new issue