tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
load italic fonts for custom google fonts
awarm.space
19 hours ago
0654ea2e
c48ba9ba
+1
-1
1 changed file
expand all
collapse all
unified
split
src
fonts.ts
+1
-1
src/fonts.ts
···
119
119
120
120
// Treat as just a font name - construct a basic family param with common weights
121
121
const fontName = trimmed.replace(/\+/g, " ");
122
122
-
const googleFontsFamily = `${trimmed.replace(/ /g, "+")}:wght@400;700`;
122
122
+
const googleFontsFamily = `${trimmed.replace(/ /g, "+")}:ital,wght@0,400;0,700;1,400;1,700`;
123
123
return { fontName, googleFontsFamily };
124
124
}
125
125