Skip to content

Commit 2055c98

Browse files
committed
Use fonts the theme actually bundles
butterscotch asked for Fraunces and signal for IBM Plex Mono. Neither is registered in theme.json or present in assets/fonts, and the theme self-hosts every face - so those headings fell back to Georgia at a synthetic weight, and to whatever monospace the visitor's own system happened to have. Fraunces gives way to Noto Serif Display, the nearest bundled high-contrast display serif, and IBM Plex Mono to Space Mono, the only monospace here. All four now name their family as var(--wp--preset--font-family--<slug>) the way the other forty variations do, rather than a raw stack. A raw stack is what let two unregistered families through unnoticed, and it also leaves the Site Editor's typography panel showing no font selected.
1 parent efba3a9 commit 2055c98

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎styles/butterscotch.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"text": "var(--wp--preset--color--foreground)"
147147
},
148148
"typography": {
149-
"fontFamily": "'Fraunces', 'Fraunces Variable', Georgia, 'Times New Roman', serif",
149+
"fontFamily": "var(--wp--preset--font-family--noto-serif-display)",
150150
"fontWeight": "800"
151151
}
152152
},
@@ -175,7 +175,7 @@
175175
}
176176
},
177177
"typography": {
178-
"fontFamily": "'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif"
178+
"fontFamily": "var(--wp--preset--font-family--heebo)"
179179
}
180180
}
181181
}

‎styles/heath.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"text": "var(--wp--preset--color--foreground)"
147147
},
148148
"typography": {
149-
"fontFamily": "'Inter', 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif",
149+
"fontFamily": "var(--wp--preset--font-family--inter)",
150150
"fontWeight": "600"
151151
}
152152
},
@@ -168,7 +168,7 @@
168168
}
169169
},
170170
"typography": {
171-
"fontFamily": "'Manrope', 'Manrope Variable', system-ui, -apple-system, sans-serif"
171+
"fontFamily": "var(--wp--preset--font-family--manrope)"
172172
}
173173
}
174174
}

‎styles/marzipan.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"text": "var(--wp--preset--color--foreground)"
147147
},
148148
"typography": {
149-
"fontFamily": "'Source Serif Pro', 'Source Serif 4', Georgia, 'Times New Roman', serif",
149+
"fontFamily": "var(--wp--preset--font-family--source-serif-pro)",
150150
"fontWeight": "700"
151151
}
152152
},
@@ -168,7 +168,7 @@
168168
}
169169
},
170170
"typography": {
171-
"fontFamily": "'Manrope', 'Manrope Variable', system-ui, -apple-system, sans-serif"
171+
"fontFamily": "var(--wp--preset--font-family--manrope)"
172172
}
173173
}
174174
}

‎styles/signal.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"text": "var(--wp--preset--color--foreground)"
147147
},
148148
"typography": {
149-
"fontFamily": "'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace",
149+
"fontFamily": "var(--wp--preset--font-family--space-mono)",
150150
"fontWeight": "400",
151151
"textTransform": "uppercase"
152152
}
@@ -176,7 +176,7 @@
176176
}
177177
},
178178
"typography": {
179-
"fontFamily": "'Manrope', 'Manrope Variable', system-ui, -apple-system, sans-serif"
179+
"fontFamily": "var(--wp--preset--font-family--manrope)"
180180
}
181181
}
182182
}

0 commit comments

Comments
 (0)