开发者

Why can't I render text identical (pixel-perfect) as Ubuntu 11 using FreeType2.4.4?

开发者 https://www.devze.com 2023-03-09 08:45 出处:网络
I\'ve been working on this for days. I\'m trying to render a character (with subpixel hint开发者_开发技巧ing) that exactly resemble the Ubuntu\'s LCD slight mode. I\'ve already set FT_LOAD_FORCE_AUTO

I've been working on this for days.

I'm trying to render a character (with subpixel hint开发者_开发技巧ing) that exactly resemble the Ubuntu's LCD slight mode. I've already set FT_LOAD_FORCE_AUTOHINT | FT_LOAD_TARGET_LIGHT as load flags.

Below shows the contrast, both Georgia, 12px, #fff. As you can see, on Firefox colors are milder and there is an extra column on either side. By the way, gnome-terminal's rendering is identical to Firefox's.

Why can't I render text identical (pixel-perfect) as Ubuntu 11 using FreeType2.4.4?

There are 4 levels of hinting in Ubuntu — None/Sligh/Medium/Full. How do I render my text in these levels? I know Ubuntu uses Pango for text rendering and Pango in turn uses Freetype to rasterize glyphs, so I think using Freetype, it is possible to exactly resemble what Ubuntu does.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号