I'm working on a site which uses one font for most locales, in Japan the site uses a specific font for Japanese characters, both are imported using the @font-face
rule and a controlled using the font stack, the Latin font does not contain Japanese characters so the Japanese font is used instead.
@font-face {
font-family: "Latin-font";
src: url("./latin-font.woff") format("woff");
}
@font-face {
font-family: "Japanese-font";
src: url("./japanese-font.woff") format("woff");
}
body {
font-family: "Latin-font", "Japanese-font", sans-serif;
}
These characters are often mixed throughout the site, we might have the text for example: Fooフーbarバー
. Our designers have noticed that, due the to the fonts that we are using, the size of the Latin characters is disproportionate to the Japanese characters. They would like all Latin characters to be displayed slightly larger across the site.
Here is a visual example of what they would like:
To achieve this I have wrapped the Latin characters in a span
, which works here for demonstration but with the number of individual contributors to the site, it would be impossible to achieve this at scale. Instead it would be best if the fonts were imported at a specific size if possible.
I have tried looking through MDN documentation and tried a few prototypes with properties like font-stretch
and font-variation-settings
but I have not been able to make one font larger than the other.
Is there any way to achieve this? The only option I can see right now would be to make updates to the font file itself, increasing the size of each character.