1
1
mirror of https://github.com/rsms/inter.git synced 2024-12-25 08:33:40 +03:00

Drop BETA from light weights

This commit is contained in:
Rasmus Andersson 2020-02-08 14:59:33 -08:00
parent c1fb1e9560
commit 6d9f189f67
3 changed files with 12 additions and 20 deletions

View File

@ -243,10 +243,6 @@ build/tmp/a.zip:
cp -a misc/dist/install*.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
cd "$(ZD)" && zip -q -X -r "../../../$@" * && cd ../..
@rm -rf "$(ZD)"

24
misc/dist/inter.css vendored
View File

@ -3,16 +3,16 @@
font-style: normal;
font-weight: 100;
font-display: swap;
src: url("Inter-Thin-BETA.woff2?v=3.11") format("woff2"),
url("Inter-Thin-BETA.woff?v=3.11") format("woff");
src: url("Inter-Thin.woff2?v=3.11") format("woff2"),
url("Inter-Thin.woff?v=3.11") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 100;
font-display: swap;
src: url("Inter-ThinItalic-BETA.woff2?v=3.11") format("woff2"),
url("Inter-ThinItalic-BETA.woff?v=3.11") format("woff");
src: url("Inter-ThinItalic.woff2?v=3.11") format("woff2"),
url("Inter-ThinItalic.woff?v=3.11") format("woff");
}
@font-face {
@ -20,16 +20,16 @@
font-style: normal;
font-weight: 200;
font-display: swap;
src: url("Inter-ExtraLight-BETA.woff2?v=3.11") format("woff2"),
url("Inter-ExtraLight-BETA.woff?v=3.11") format("woff");
src: url("Inter-ExtraLight.woff2?v=3.11") format("woff2"),
url("Inter-ExtraLight.woff?v=3.11") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 200;
font-display: swap;
src: url("Inter-ExtraLightItalic-BETA.woff2?v=3.11") format("woff2"),
url("Inter-ExtraLightItalic-BETA.woff?v=3.11") format("woff");
src: url("Inter-ExtraLightItalic.woff2?v=3.11") format("woff2"),
url("Inter-ExtraLightItalic.woff?v=3.11") format("woff");
}
@font-face {
@ -37,16 +37,16 @@
font-style: normal;
font-weight: 300;
font-display: swap;
src: url("Inter-Light-BETA.woff2?v=3.11") format("woff2"),
url("Inter-Light-BETA.woff?v=3.11") format("woff");
src: url("Inter-Light.woff2?v=3.11") format("woff2"),
url("Inter-Light.woff?v=3.11") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 300;
font-display: swap;
src: url("Inter-LightItalic-BETA.woff2?v=3.11") format("woff2"),
url("Inter-LightItalic-BETA.woff?v=3.11") format("woff");
src: url("Inter-LightItalic.woff2?v=3.11") format("woff2"),
url("Inter-LightItalic.woff?v=3.11") format("woff");
}
@font-face {

View File

@ -73,10 +73,6 @@ def setFontInfo(font, weight=None):
if weight is None:
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"
style = font.info.styleName # e.g. "Medium Italic"