Using a Google Font with a + in the name (such as Noto+Sans used in the custom fonts documentation) is broken. The font will produced a 404 error in the playground. This is because the following line of code only uppercases the first letter of the font name:
Describe the bug
Using a Google Font with a
+
in the name (such asNoto+Sans
used in the custom fonts documentation) is broken. The font will produced a 404 error in the playground. This is because the following line of code only uppercases the first letter of the font name:https://github.com/harlan-zw/nuxt-og-image/blob/dd42f7b16c0f7f34dd8aa132dd1736edf6b38f1b/src/runtime/server/routes/__og-image__/font-%5Bname%5D-%5Bweight%5D.%5Bextension%5D.ts#L16
Changing it to something like the following should fix this (at least it did on my machine):
You might also want to update the custom fonts test to also include the
Noto+Sans
examples from the documentation.Reproduction
No response
System / Nuxt Info
No response