Drop BETA from light weights
This commit is contained in:
parent
c1fb1e9560
commit
6d9f189f67
3 changed files with 12 additions and 20 deletions
4
Makefile
4
Makefile
|
|
@ -243,10 +243,6 @@ build/tmp/a.zip:
|
||||||
cp -a misc/dist/install*.txt "$(ZD)/"
|
cp -a misc/dist/install*.txt "$(ZD)/"
|
||||||
cp -a LICENSE.txt "$(ZD)/"
|
cp -a LICENSE.txt "$(ZD)/"
|
||||||
@#
|
@#
|
||||||
@# Add "beta" to Light and Thin filenames.
|
|
||||||
@# Requires "rename" tool in PATH (`brew install rename` on macOS)
|
|
||||||
rename 's/(Light.*|Thin.*)\./$$1-BETA./' "$(ZD)/Inter"*/*.*
|
|
||||||
@#
|
|
||||||
@# zip
|
@# zip
|
||||||
cd "$(ZD)" && zip -q -X -r "../../../$@" * && cd ../..
|
cd "$(ZD)" && zip -q -X -r "../../../$@" * && cd ../..
|
||||||
@rm -rf "$(ZD)"
|
@rm -rf "$(ZD)"
|
||||||
|
|
|
||||||
24
misc/dist/inter.css
vendored
24
misc/dist/inter.css
vendored
|
|
@ -3,16 +3,16 @@
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("Inter-Thin-BETA.woff2?v=3.11") format("woff2"),
|
src: url("Inter-Thin.woff2?v=3.11") format("woff2"),
|
||||||
url("Inter-Thin-BETA.woff?v=3.11") format("woff");
|
url("Inter-Thin.woff?v=3.11") format("woff");
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("Inter-ThinItalic-BETA.woff2?v=3.11") format("woff2"),
|
src: url("Inter-ThinItalic.woff2?v=3.11") format("woff2"),
|
||||||
url("Inter-ThinItalic-BETA.woff?v=3.11") format("woff");
|
url("Inter-ThinItalic.woff?v=3.11") format("woff");
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
|
|
@ -20,16 +20,16 @@
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("Inter-ExtraLight-BETA.woff2?v=3.11") format("woff2"),
|
src: url("Inter-ExtraLight.woff2?v=3.11") format("woff2"),
|
||||||
url("Inter-ExtraLight-BETA.woff?v=3.11") format("woff");
|
url("Inter-ExtraLight.woff?v=3.11") format("woff");
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("Inter-ExtraLightItalic-BETA.woff2?v=3.11") format("woff2"),
|
src: url("Inter-ExtraLightItalic.woff2?v=3.11") format("woff2"),
|
||||||
url("Inter-ExtraLightItalic-BETA.woff?v=3.11") format("woff");
|
url("Inter-ExtraLightItalic.woff?v=3.11") format("woff");
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
|
|
@ -37,16 +37,16 @@
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("Inter-Light-BETA.woff2?v=3.11") format("woff2"),
|
src: url("Inter-Light.woff2?v=3.11") format("woff2"),
|
||||||
url("Inter-Light-BETA.woff?v=3.11") format("woff");
|
url("Inter-Light.woff?v=3.11") format("woff");
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("Inter-LightItalic-BETA.woff2?v=3.11") format("woff2"),
|
src: url("Inter-LightItalic.woff2?v=3.11") format("woff2"),
|
||||||
url("Inter-LightItalic-BETA.woff?v=3.11") format("woff");
|
url("Inter-LightItalic.woff?v=3.11") format("woff");
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
|
|
|
||||||
|
|
@ -73,10 +73,6 @@ def setFontInfo(font, weight=None):
|
||||||
if weight is None:
|
if weight is None:
|
||||||
weight = font.info.openTypeOS2WeightClass
|
weight = font.info.openTypeOS2WeightClass
|
||||||
|
|
||||||
# Add " BETA" to light weights
|
|
||||||
if weight < 400:
|
|
||||||
font.info.styleName = font.info.styleName + " BETA"
|
|
||||||
|
|
||||||
family = font.info.familyName # i.e. "Inter"
|
family = font.info.familyName # i.e. "Inter"
|
||||||
style = font.info.styleName # e.g. "Medium Italic"
|
style = font.info.styleName # e.g. "Medium Italic"
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue