Closed dungsil closed 1 month ago
This is tricky - adding support for east Asian characters is indeed possible, actually I've already figured out a bit, but I don't think Adobe will be happy with this as the code they provide is clearly obfuscated and is not documented anywhere. So I guess we should just add a note in the docs to either directly use the script or use the local provider in such cases. @danielroe What do you think? If we do need to implement this feature, I would be interested to work on it.
@nuxt/font
is fetching CSS files from Adobe Typekit. However, for fonts with East Asian languages, it is unable to fetch the CSS extensions.https://github.com/nuxt/fonts/blob/22ae0b124095a8381971d1bf531ceff3eed53024/src/providers/adobe.ts#L109
Below is the difference in the Adobe fonts screen:
Inter Variable ( css file include )
Pretendard ( javascript file include )
East Asian characters (especially CJK) seem to have a large size, so Adobe can't import the entire font by default or all characters.
If you look at the actual API being called, you'll see that East Asian languages don't come with css files.
Can you add support for these areas? If not, you can update the documentation to avoid confusing Asian users.
In the logs, it looks like this, making it difficult to determine the cause.
Reference: