adds "-BETA" to end of filenames of thin-master derived font files
This commit is contained in:
parent
cbfd852ceb
commit
b9326c6f99
2 changed files with 25 additions and 23 deletions
24
Makefile
24
Makefile
|
|
@ -179,7 +179,7 @@ ZIP_FILE_DEV := build/release/Inter-UI-${VERSION}-$(shell git rev-parse --short
|
||||||
|
|
||||||
ZD = build/tmp/zip
|
ZD = build/tmp/zip
|
||||||
# intermediate zip target that creates a zip file at build/tmp/a.zip
|
# intermediate zip target that creates a zip file at build/tmp/a.zip
|
||||||
build/tmp/a.zip: all
|
build/tmp/a.zip:
|
||||||
@rm -rf "$(ZD)"
|
@rm -rf "$(ZD)"
|
||||||
@rm -f build/tmp/a.zip
|
@rm -f build/tmp/a.zip
|
||||||
@mkdir -p \
|
@mkdir -p \
|
||||||
|
|
@ -189,30 +189,32 @@ build/tmp/a.zip: all
|
||||||
"$(ZD)/Inter UI (TTF hinted)" \
|
"$(ZD)/Inter UI (TTF hinted)" \
|
||||||
"$(ZD)/Inter UI (TTF variable)" \
|
"$(ZD)/Inter UI (TTF variable)" \
|
||||||
"$(ZD)/Inter UI (OTF)"
|
"$(ZD)/Inter UI (OTF)"
|
||||||
# "$(ZD)/Inter UI (TTF variable hinted)"
|
@#
|
||||||
# copy font files
|
@# copy font files
|
||||||
cp -a $(FONTDIR)/const/*.woff \
|
cp -a $(FONTDIR)/const/*.woff \
|
||||||
$(FONTDIR)/const/*.woff2 \
|
$(FONTDIR)/const/*.woff2 \
|
||||||
$(FONTDIR)/var/*.woff2 "$(ZD)/Inter UI (web)/"
|
$(FONTDIR)/var/*.woff2 "$(ZD)/Inter UI (web)/"
|
||||||
# cp -a $(FONTDIR)/const-hinted/*.woff \
|
|
||||||
# $(FONTDIR)/const-hinted/*.woff2 \
|
|
||||||
# $(FONTDIR)/var-hinted/*.woff2 "$(ZD)/Inter UI (web hinted)/"
|
|
||||||
cp -a $(FONTDIR)/const-hinted/*.woff \
|
cp -a $(FONTDIR)/const-hinted/*.woff \
|
||||||
$(FONTDIR)/const-hinted/*.woff2 \
|
$(FONTDIR)/const-hinted/*.woff2 \
|
||||||
"$(ZD)/Inter UI (web hinted)/"
|
"$(ZD)/Inter UI (web hinted)/"
|
||||||
cp -a $(FONTDIR)/const/*.ttf "$(ZD)/Inter UI (TTF)/"
|
cp -a $(FONTDIR)/const/*.ttf "$(ZD)/Inter UI (TTF)/"
|
||||||
cp -a $(FONTDIR)/const-hinted/*.ttf "$(ZD)/Inter UI (TTF hinted)/"
|
cp -a $(FONTDIR)/const-hinted/*.ttf "$(ZD)/Inter UI (TTF hinted)/"
|
||||||
cp -a $(FONTDIR)/var/*.ttf "$(ZD)/Inter UI (TTF variable)/"
|
cp -a $(FONTDIR)/var/*.ttf "$(ZD)/Inter UI (TTF variable)/"
|
||||||
# cp -a $(FONTDIR)/var-hinted/*.ttf "$(ZD)/Inter UI (TTF variable hinted)/"
|
|
||||||
cp -a $(FONTDIR)/const/*.otf "$(ZD)/Inter UI (OTF)/"
|
cp -a $(FONTDIR)/const/*.otf "$(ZD)/Inter UI (OTF)/"
|
||||||
# copy misc stuff
|
@#
|
||||||
|
@# copy misc stuff
|
||||||
cp -a misc/dist/inter-ui.css "$(ZD)/Inter UI (web)/"
|
cp -a misc/dist/inter-ui.css "$(ZD)/Inter UI (web)/"
|
||||||
cp -a misc/dist/inter-ui.css "$(ZD)/Inter UI (web hinted)/"
|
cp -a misc/dist/inter-ui.css "$(ZD)/Inter UI (web hinted)/"
|
||||||
cp -a misc/dist/*.txt "$(ZD)/"
|
cp -a misc/dist/*.txt "$(ZD)/"
|
||||||
cp -a LICENSE.txt "$(ZD)/"
|
cp -a LICENSE.txt "$(ZD)/"
|
||||||
# zip
|
@#
|
||||||
cd $(ZD) && zip -q -X -r "../../../$@" * && cd ../..
|
@# Add "beta" to Light and Thin filenames.
|
||||||
@rm -rf $(ZD)
|
@# Requires "rename" tool in PATH (`brew install rename` on macOS)
|
||||||
|
rename 's/(Light.*|Thin.*)\./$$1-BETA./' "$(ZD)/Inter UI"*/*.*
|
||||||
|
@#
|
||||||
|
@# zip
|
||||||
|
cd "$(ZD)" && zip -q -X -r "../../../$@" * && cd ../..
|
||||||
|
@rm -rf "$(ZD)"
|
||||||
|
|
||||||
# zip
|
# zip
|
||||||
build/release/Inter-UI-%.zip: build/tmp/a.zip
|
build/release/Inter-UI-%.zip: build/tmp/a.zip
|
||||||
|
|
|
||||||
24
misc/dist/inter-ui.css
vendored
24
misc/dist/inter-ui.css
vendored
|
|
@ -2,45 +2,45 @@
|
||||||
font-family: 'Inter UI';
|
font-family: 'Inter UI';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
src: url("Inter-UI-Thin.woff2") format("woff2"),
|
src: url("Inter-UI-Thin-BETA.woff2") format("woff2"),
|
||||||
url("Inter-UI-Thin.woff") format("woff");
|
url("Inter-UI-Thin-BETA.woff") format("woff");
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Inter UI';
|
font-family: 'Inter UI';
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
src: url("Inter-UI-ThinItalic.woff2") format("woff2"),
|
src: url("Inter-UI-ThinItalic-BETA.woff2") format("woff2"),
|
||||||
url("Inter-UI-ThinItalic.woff") format("woff");
|
url("Inter-UI-ThinItalic-BETA.woff") format("woff");
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Inter UI';
|
font-family: 'Inter UI';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
src: url("Inter-UI-ExtraLight.woff2") format("woff2"),
|
src: url("Inter-UI-ExtraLight-BETA.woff2") format("woff2"),
|
||||||
url("Inter-UI-ExtraLight.woff") format("woff");
|
url("Inter-UI-ExtraLight-BETA.woff") format("woff");
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Inter UI';
|
font-family: 'Inter UI';
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
src: url("Inter-UI-ExtraLightItalic.woff2") format("woff2"),
|
src: url("Inter-UI-ExtraLightItalic-BETA.woff2") format("woff2"),
|
||||||
url("Inter-UI-ExtraLightItalic.woff") format("woff");
|
url("Inter-UI-ExtraLightItalic-BETA.woff") format("woff");
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Inter UI';
|
font-family: 'Inter UI';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
src: url("Inter-UI-Light.woff2") format("woff2"),
|
src: url("Inter-UI-Light-BETA.woff2") format("woff2"),
|
||||||
url("Inter-UI-Light.woff") format("woff");
|
url("Inter-UI-Light-BETA.woff") format("woff");
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Inter UI';
|
font-family: 'Inter UI';
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
src: url("Inter-UI-LightItalic.woff2") format("woff2"),
|
src: url("Inter-UI-LightItalic-BETA.woff2") format("woff2"),
|
||||||
url("Inter-UI-LightItalic.woff") format("woff");
|
url("Inter-UI-LightItalic-BETA.woff") format("woff");
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
|
|
|
||||||
Reference in a new issue