mildronize / mildronize.github.io-old

My current site
MIT License
4 stars 1 forks source link

No correct position Thai Font issue on Gatsby render social card #22

Open mildronize opened 3 years ago

mildronize commented 3 years ago

Problem

https://stackoverflow.com/questions/68883872/jimp-loadfont-function-renders-non-english-thai-font-ugly-with-vowel-character

image

Related file: /plugins/gatsby-plugin-social-sharing-cards/index.js

Solution

Consider to use sharp instead.

We can you use SVG rendering instead of using bitmap (jimp lib) method.

Possible solution will may proof by: https://github.com/mildronize/custom-font-family-rendering-svg-on-netlify