about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/alf/fonts.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/alf/fonts.ts b/src/alf/fonts.ts
index 331da868a..1e4e99d3f 100644
--- a/src/alf/fonts.ts
+++ b/src/alf/fonts.ts
@@ -59,11 +59,15 @@ export function applyFonts(
     }
   }
 
+  style.fontVariant = style.fontVariant || []
+
   /**
-   * Disable contextual ligatures
+   * Disable contextual alternates in Inter
    * {@link https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant}
    */
-  style.fontVariant = (style.fontVariant || []).concat('no-contextual')
+  if (fontFamily === 'theme') {
+    style.fontVariant = (style.fontVariant || []).concat('no-contextual')
+  }
 }
 
 /*