Skip to content

Commit 85d97e1

Browse files
committed
Stop asking Besley for tabular figures in the hero stats
Besley's `tnum` set is broken: the tabular zero is frozen at a 55-unit advance on every weight while 1-9 track the weight axis (57 at 400, 59.5 at 600, 66 at 700+). The zero is the one digit that never gets heavier, so at the hero's 800 it renders 17% narrower than its neighbours and reads as if it had lost the bold — "13 930" with a thin final digit. Ask for lining figures instead. Nothing is lost: these counts are static markup, not a column that has to align digit-for-digit. Set through font-feature-settings rather than font-variant-numeric because _body.scss sets an inherited "onum"/"pnum" that outranks the high-level property — the same reason _headings.scss spells out "lnum". Bump to 2.9.7.
1 parent 2e03ef2 commit 85d97e1

6 files changed

Lines changed: 20 additions & 9 deletions

File tree

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ authors:
2727
given-names: Frédérick
2828
orcid: "https://orcid.org/0000-0003-0959-2092"
2929
affiliation: "University of Bayreuth"
30-
version: "2.9.6"
31-
date-released: "2026-08-05"
30+
version: "2.9.7"
31+
date-released: "2026-08-06"
3232
license: GPL-3.0-or-later
3333
repository-code: "https://github.com/fmadore/IWAC-theme"
3434
url: "https://islam.zmo.de/s/westafrica/"

asset/css/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asset/sass/components/banner/_banner.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,17 @@
385385
font-weight: 800;
386386
line-height: 1;
387387
letter-spacing: var(--tracking-display);
388-
font-variant-numeric: tabular-nums;
388+
// Lining figures, NOT tabular. Besley ships a broken `tnum` set: its
389+
// tabular zero is frozen at a 55-unit advance on every weight, while
390+
// 1-9 track the weight axis (57 at 400, 59.5 at 600, 66 at 700+). So
391+
// the zero is the one digit that never gets heavier — at 800 it is 17%
392+
// narrower than its neighbours and reads as un-bolded ("13 930"). The
393+
// heavier the face, the worse; there is no safe weight. These counts
394+
// are static markup, so tabular alignment bought nothing anyway.
395+
// Declared as font-feature-settings rather than font-variant-numeric
396+
// because body's inherited "onum"/"pnum" settings override the
397+
// high-level property (same reason _headings.scss spells out "lnum").
398+
font-feature-settings: "kern" 1, "liga" 1, "lnum" 1;
389399
color: var(--white);
390400

391401
@media (min-width: 400px) { font-size: var(--text-xl); }
@@ -444,7 +454,8 @@
444454
font-weight: 800;
445455
line-height: 1.05;
446456
letter-spacing: var(--tracking-display);
447-
font-variant-numeric: tabular-nums;
457+
// Lining, not tabular — Besley 800's broken zero, see __stat-figure.
458+
font-feature-settings: "kern" 1, "liga" 1, "lnum" 1;
448459
color: var(--white);
449460

450461
@media (min-width: $md) { font-size: var(--text-xl); }

config/theme.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[info]
22
name = "IWAC Theme"
3-
version = "2.9.6"
3+
version = "2.9.7"
44
author = "Frédérick Madore"
55
description = "Islam West Africa Collection Theme - A customized Omeka S theme for the IWAC digital collection at ZMO Berlin. Features light/dark mode toggle and multilingual support."
66
theme_link = "https://github.com/fmadore/IWAC-theme"

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iwac-theme",
3-
"version": "2.9.6",
3+
"version": "2.9.7",
44
"description": "Islam West Africa Collection Theme - A customized Omeka S theme for the IWAC digital collection.",
55
"main": "gulpfile.js",
66
"scripts": {

0 commit comments

Comments
 (0)