Skip to content

Commit

Permalink
Merge pull request #27 from coreyhu/1.251_testing
Browse files Browse the repository at this point in the history
Version 1.251
  • Loading branch information
coreyhu authored Jun 3, 2021
2 parents e70cf53 + d7ad07c commit 3b85730
Show file tree
Hide file tree
Showing 64 changed files with 38,734 additions and 98,014 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The variable font file utilizes 2 axes for tuning weight (100-900) and italics (

## Current Status

Version 1.250 is the latest stable version and contains the following glyphs:
Version 1.251 is the latest stable version and contains the following glyphs:

AÁÂÄÀÅÃÆBCÇDÐEÉÊËÈFGHIÍÎÏÌJKLMNÑOÓÔÖÒØÕŒPÞQRSẞTUÚÛÜÙVWẂŴẄẀXYÝŶŸỲZaáâäàåãæbcćçdðeéêëèfghiıíîïìjklmnñoóôöòøõœpþqrsßtuúûüùvwẃŵẅẁxyýŷÿỳzªºμ0123456789₀₁₂₃₄₅₆₇₈₉⁰¹²³⁴⁵⁶⁷⁸⁹⁄½¼¾⅛⅜⅝⅞.,:;…!¡?¿·•\*#/\(){}[]-–—\_‚„“”‘’«»‹›‵"'    
.null ¢¤$€£¥+−×÷=≠><≥≤±≈~¬^∅∞∫∏∑√∂µ%‰↑↗→↘↓↙←↖↔↕◊@&¶§©®™°|¦†‡�ʼ̧̈̇̀́̂̊̃¨˙`´˝ˆˇ˘˚˜¯¸˛
Expand Down
Binary file modified fonts/gfvariable/Urbanist-Italic[wght].ttf
Binary file not shown.
Binary file modified fonts/gfvariable/Urbanist[wght].ttf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-Black.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-BlackItalic.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-Bold.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-BoldItalic.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-ExtraBold.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-ExtraBoldItalic.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-ExtraLight.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-ExtraLightItalic.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-Italic.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-Light.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-LightItalic.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-Medium.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-MediumItalic.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-Regular.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-SemiBold.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-SemiBoldItalic.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-Thin.otf
Binary file not shown.
Binary file modified fonts/otf/Urbanist-ThinItalic.otf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-Black.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-BlackItalic.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-Bold.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-BoldItalic.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-ExtraBold.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-ExtraBoldItalic.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-ExtraLight.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-ExtraLightItalic.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-Italic.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-Light.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-LightItalic.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-Medium.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-MediumItalic.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-Regular.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-SemiBold.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-SemiBoldItalic.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-Thin.ttf
Binary file not shown.
Binary file modified fonts/ttf/Urbanist-ThinItalic.ttf
Binary file not shown.
Binary file modified fonts/variable/Urbanist[ital,wght].ttf
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-Black.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-BlackItalic.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-Bold.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-BoldItalic.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-ExtraBold.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-ExtraBoldItalic.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-ExtraLight.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-ExtraLightItalic.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-Italic.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-Light.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-LightItalic.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-Medium.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-MediumItalic.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-Regular.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-SemiBold.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-SemiBoldItalic.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-Thin.woff2
Binary file not shown.
Binary file modified fonts/webfonts/Urbanist-ThinItalic.woff2
Binary file not shown.
20 changes: 19 additions & 1 deletion scripts/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import glob
from fontTools import ttLib
from fontTools.varLib import instancer
from fontTools.ttLib import TTFont
from fontTools.ttLib.ttFont import newTable
from fontbakery.constants import MacStyle, FsSelection, NameID, PlatformID, WindowsEncodingID, WindowsLanguageID
Expand Down Expand Up @@ -38,17 +39,33 @@ def set_windows_subfamily_name(ttFont, subfamily_name):
WindowsLanguageID.ENGLISH_USA
)

def split_partial_font(ttFont):
os.makedirs("../fonts/gfvariable", exist_ok=True)
roman_partial = instancer.instantiateVariableFont(ttFont, {"ital": 0})
roman_partial.save("../fonts/gfvariable/Urbanist[wght].ttf")

italic_partial = instancer.instantiateVariableFont(ttFont, {"ital": 1})
italic_partial.save("../fonts/gfvariable/Urbanist-Italic[wght].ttf")


if __name__ == "__main__":
for font_path in glob.glob("../fonts/variable/Urbanist-*.ttf"):
# Rename Urbanist font in variable directory
new_path = re.sub(r"Urbanist-.*?\[", "Urbanist[", font_path)
os.rename(font_path, new_path)


for font_path in glob.glob("../fonts/*variable/*.ttf"):
# Add avar table to all variable fonts
with open(font_path, "rb") as f:
ttFont = TTFont(f)
add_avar_table(ttFont)
ttFont.save(font_path)

for font_path in glob.glob("../fonts/variable/Urbanist*.ttf"):
# Split font into partial Roman and Italic VFs
with open(font_path, "rb") as f:
ttFont = TTFont(f)
split_partial_font(ttFont)

for font_path in glob.glob("../fonts/*variable/Urbanist-Italic*.ttf"):
# set windows subfamily name to Italic in name table
Expand All @@ -62,6 +79,7 @@ def set_windows_subfamily_name(ttFont, subfamily_name):
ttFont.save(font_path)

for font_path in glob.glob("../fonts/ttf/*Italic.ttf"):
# Fix Italic Angle
with open(font_path, "rb") as f:
ttFont = TTFont(f)
fix_italic_angle(ttFont)
Expand Down
Loading

0 comments on commit 3b85730

Please sign in to comment.