Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added fonts/Overpass/otf/Overpass-Black.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-BlackItalic.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-Bold.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-BoldItalic.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-ExtraBold.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-ExtraBoldItalic.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-ExtraLight.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-ExtraLightItalic.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-Italic.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-Light.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-LightItalic.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-Medium.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-MediumItalic.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-Regular.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-SemiBold.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-SemiBoldItalic.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-Thin.otf
Binary file not shown.
Binary file added fonts/Overpass/otf/Overpass-ThinItalic.otf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-Black.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-BlackItalic.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-Bold.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-BoldItalic.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-ExtraBold.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-ExtraLightItalic.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-Italic.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-Light.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-LightItalic.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-Medium.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-MediumItalic.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-Regular.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-SemiBold.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-SemiBoldItalic.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-Thin.ttf
Binary file not shown.
Binary file added fonts/Overpass/ttf/Overpass-ThinItalic.ttf
Binary file not shown.
Binary file not shown.
Binary file added fonts/Overpass/variable/Overpass[wght].ttf
Binary file not shown.
Binary file added fonts/Overpass/webfonts/Overpass-Black.woff2
Binary file not shown.
Binary file not shown.
Binary file added fonts/Overpass/webfonts/Overpass-Bold.woff2
Binary file not shown.
Binary file added fonts/Overpass/webfonts/Overpass-BoldItalic.woff2
Binary file not shown.
Binary file added fonts/Overpass/webfonts/Overpass-ExtraBold.woff2
Binary file not shown.
Binary file not shown.
Binary file added fonts/Overpass/webfonts/Overpass-ExtraLight.woff2
Binary file not shown.
Binary file not shown.
Binary file added fonts/Overpass/webfonts/Overpass-Italic.woff2
Binary file not shown.
Binary file added fonts/Overpass/webfonts/Overpass-Light.woff2
Binary file not shown.
Binary file not shown.
Binary file added fonts/Overpass/webfonts/Overpass-Medium.woff2
Binary file not shown.
Binary file not shown.
Binary file added fonts/Overpass/webfonts/Overpass-Regular.woff2
Binary file not shown.
Binary file added fonts/Overpass/webfonts/Overpass-SemiBold.woff2
Binary file not shown.
Binary file not shown.
Binary file added fonts/Overpass/webfonts/Overpass-Thin.woff2
Binary file not shown.
Binary file added fonts/Overpass/webfonts/Overpass-ThinItalic.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added fonts/OverpassMonoUI/OverpassMonoUI[wght].ttf
Binary file not shown.
Binary file added fonts/OverpassUI/OverpassUI-Italic[wght].ttf
Binary file not shown.
Binary file added fonts/OverpassUI/OverpassUI[wght].ttf
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
276,117 changes: 138,392 additions & 137,725 deletions sources/Overpass.glyphs

Large diffs are not rendered by default.

File renamed without changes.
23 changes: 23 additions & 0 deletions sources/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
set -e

SOURCES_DIR="$(cd "$(dirname "$0")" && pwd)"

mkdir -p "$SOURCES_DIR/../fonts/OverpassUI"
mkdir -p "$SOURCES_DIR/../fonts/OverpassMonoUI"

echo "=== Build Overpass ==="
cd "$SOURCES_DIR/scripts" && gftools builder config.yaml

echo "=== Build Overpass UI ==="
cd "$SOURCES_DIR/scripts" && gftools builder config-ui.yaml

echo "=== Build Overpass Mono ==="
cd "$SOURCES_DIR/scripts" && gftools builder config_mono.yaml

echo "=== Build Overpass Mono UI ==="
cd "$SOURCES_DIR/scripts" && gftools builder config_mono-ui.yaml

rm -f "$SOURCES_DIR/../fonts/OverpassUI/OverpassUI[wght,ital].ttf"

echo "Build terminé."
38 changes: 38 additions & 0 deletions sources/scripts/config-ui.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
sources:
- ../Overpass.glyphs
axisOrder:
- wght
- ital
familyName: Overpass UI
cleanUp: true

recipe:
"../../fonts/OverpassUI/OverpassUI[wght,ital].ttf":
- source: ../Overpass.glyphs
- operation: exec
exe: fontmake
args: -g ../Overpass.glyphs -o variable --output-path ../../fonts/OverpassUI/OverpassUI[wght,ital].ttf --filter FlattenComponentsFilter --filter DecomposeTransformedComponentsFilter
- operation: exec
exe: python3
args: rename_family.py ../../fonts/OverpassUI/OverpassUI[wght,ital].ttf ../../fonts/OverpassUI/OverpassUI[wght,ital].ttf "Overpass UI"
- operation: exec
exe: python3
args: patch_metrics.py ../../fonts/OverpassUI/OverpassUI[wght,ital].ttf ../../fonts/OverpassUI/OverpassUI[wght,ital].ttf
- operation: exec
exe: gftools
args: gen-stat ../../fonts/OverpassUI/OverpassUI[wght,ital].ttf --src stat.yaml --inplace
- operation: exec
exe: gftools
args: fix-nonhinting ../../fonts/OverpassUI/OverpassUI[wght,ital].ttf ../../fonts/OverpassUI/OverpassUI[wght,ital].ttf --no-backup

"../../fonts/OverpassUI/OverpassUI[wght].ttf":
- source: ../../fonts/OverpassUI/OverpassUI[wght,ital].ttf
- operation: subspace
axes: ital=0
args: --update-name-table

"../../fonts/OverpassUI/OverpassUI-Italic[wght].ttf":
- source: ../../fonts/OverpassUI/OverpassUI[wght,ital].ttf
- operation: subspace
axes: ital=1
args: --update-name-table
11 changes: 8 additions & 3 deletions sources/config.yaml → sources/scripts/config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
sources:
- Overpass.designspace
- Overpass-Italic.designspace
- ../Overpass.glyphs
axisOrder:
- wght
- ital
familyName: Overpass
cleanUp: true
stat:
Overpass[wght].ttf:
- name: Weight
Expand Down Expand Up @@ -64,4 +65,8 @@ stat:
tag: ital
values:
- name: Italic
value: 1
value: 1
vfDir: "../../fonts/variable"
ttDir: "../../fonts/ttf"
otDir: "../../fonts/otf"
woffDir: "../../fonts/webfonts"
22 changes: 22 additions & 0 deletions sources/scripts/config_mono-ui.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
sources:
- ../OverpassMono.glyphs
axisOrder:
- wght
familyName: Overpass Mono UI
cleanUp: true

recipe:
"../../fonts/OverpassMonoUI/OverpassMonoUI[wght].ttf":
- source: ../OverpassMono.glyphs
- operation: exec
exe: fontmake
args: -g ../OverpassMono.glyphs -o variable --output-path ../../fonts/OverpassMonoUI/OverpassMonoUI[wght].ttf --filter FlattenComponentsFilter --filter DecomposeTransformedComponentsFilter
- operation: exec
exe: python3
args: rename_family.py ../../fonts/OverpassMonoUI/OverpassMonoUI[wght].ttf ../../fonts/OverpassMonoUI/OverpassMonoUI[wght].ttf "Overpass Mono UI"
- operation: exec
exe: python3
args: patch_metrics.py ../../fonts/OverpassMonoUI/OverpassMonoUI[wght].ttf ../../fonts/OverpassMonoUI/OverpassMonoUI[wght].ttf
- operation: exec
exe: gftools
args: fix-nonhinting ../../fonts/OverpassMonoUI/OverpassMonoUI[wght].ttf ../../fonts/OverpassMonoUI/OverpassMonoUI[wght].ttf --no-backup
10 changes: 5 additions & 5 deletions sources/config_mono.yaml → sources/scripts/config_mono.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sources:
- OverpassMono.glyphs
- ../OverpassMono.glyphs
axisOrder:
- wght
familyName: Overpass Mono
Expand Down Expand Up @@ -28,7 +28,7 @@ stat:
value: 800
- name: Black
value: 900
vfDir: "../fonts/variable_mono"
ttDir: "../fonts/ttf_mono"
otDir: "../fonts/otf_mono"
woffDir: "../fonts/webfonts_mono"
vfDir: "../../fonts/variable_mono"
ttDir: "../../fonts/ttf_mono"
otDir: "../../fonts/otf_mono"
woffDir: "../../fonts/webfonts_mono"
14 changes: 14 additions & 0 deletions sources/scripts/patch_metrics.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import sys
from fontTools.ttLib import TTFont

font = TTFont(sys.argv[1])

font["OS/2"].sTypoAscender = 2000
font["OS/2"].sTypoDescender = -600
font["hhea"].ascent = 2000
font["hhea"].descent = -600

print(f"winAscent={font['OS/2'].usWinAscent}, winDescent={font['OS/2'].usWinDescent}")
print("Metrics patched: typo/hhea Ascender=2000, Descender=-600")

font.save(sys.argv[2])
34 changes: 34 additions & 0 deletions sources/scripts/rename_family.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
"""
Rename family — remplace "Overpass" par "Overpass UI" dans tous les namerecords.

Usage : python3 rename_family.py input.ttf output.ttf "Overpass UI"
"""
import sys
from fontTools.ttLib import TTFont

font = TTFont(sys.argv[1])
new_family = sys.argv[3] if len(sys.argv) > 3 else "Overpass UI"
old_family = "Overpass"

name_table = font["name"]

for record in name_table.names:
try:
value = record.toUnicode()
except Exception:
continue

# IDs concernés : 1 (Family), 3 (Unique ID), 4 (Full name),
# 6 (PostScript name), 16 (Typographic family),
# 21 (WWS family)
if record.nameID in (1, 3, 4, 6, 16, 21):
if old_family in value:
new_value = value.replace(old_family, new_family)
record.string = new_value.encode(
"utf-16-be" if record.isUnicode() else "latin-1"
)
print(f" nameID {record.nameID}: {value!r} → {new_value!r}")

# Mettre à jour aussi openTypeNamePreferredFamilyName si présent (nameID 16)
print(f"Family renamed: '{old_family}' → '{new_family}'")
font.save(sys.argv[2])
33 changes: 33 additions & 0 deletions sources/scripts/stat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
OverpassUI[wght,ital].ttf:
- name: Weight
tag: wght
values:
- name: Thin
value: 100
- name: ExtraLight
value: 200
- name: Light
value: 300
- name: Regular
value: 400
linkedValue: 700
flags: 2
- name: Medium
value: 500
- name: SemiBold
value: 600
- name: Bold
value: 700
- name: ExtraBold
value: 800
- name: Black
value: 900
- name: Italic
tag: ital
values:
- name: Roman
value: 0
flags: 2
linkedValue: 1
- name: Italic
value: 1