Use Google Font with both the latin subset AND a special character

895 views Asked by At

I'm using google fonts to include the Ubuntu Mono font. I need the latin subset, and a special character (█). Google doesn't return this character with the font with or without a subset defined.

After looking at this page I tried using &text=█ in the url, which works!

However, it's not possible to combine the subset= and text= parameters, and I am thus unable to get the font to include both the standard subset AND the special character I require. Is it possible to get the API to return what I want?

Import for all common subsets:
<link href="https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@400;700&display=swap" rel="stylesheet">

Import for special character:
<link href="https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@400;700&text=█" rel="stylesheet">

Import for both:
???

0

There are 0 answers