why is my truetype font of size 11 rendering different than windows?

why is my truetype font of size 11 rendering different than windows?,第1张

why is my truetype font of size 11 rendering different than windows?

Font rendering is a complex and subtle process, and one that has been
implemented a number of times. In your case, PIL and Windows look different
because they are using completely different font rendering engines. Windows
uses its built-in rendering, and PIL is using the Freetype it was compiled
with.

I don’t know how each environment interprets its “size” parameter, but even if
you get them interpreted the same, the rendering will simply be different. The
way to get the same pixels as Notepad is to launch Notepad and grab the
screen.

Perhaps if you explain more about why you want the same rendering as Notepad,
we’ll have creative solutions to your problem.



欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5668248.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存