Colorful Transparency Algorithm (Windows)

thehorseisbrown
Posts: 3
Dear font technology enthusiasts,
I let Windows draw a few glyphs with transparent background
and to my astonishment, I saw this:

I think it's absolutely gorgeous and it looks intentional to me since the warm values are always on the right.
1) If it indeed is intentional, is the purpose to improve readability? What specifically does the coloring do to the eye?
Can someone elaborate or give some links?
2) I was about to store glyph bitmaps in a single channel and then color the glyphs inside a shader. This discovery makes me wonder how I could use these RGB values inside a shader to produce different colors.
Thank you
I let Windows draw a few glyphs with transparent background
SetBkMode(glyph_hdc, TRANSPARENT);
and to my astonishment, I saw this:

I think it's absolutely gorgeous and it looks intentional to me since the warm values are always on the right.
1) If it indeed is intentional, is the purpose to improve readability? What specifically does the coloring do to the eye?
Can someone elaborate or give some links?
2) I was about to store glyph bitmaps in a single channel and then color the glyphs inside a shader. This discovery makes me wonder how I could use these RGB values inside a shader to produce different colors.
Thank you
Tagged:
0
Comments
-
This is a side effect of ClearType sub-pixel anti-aliasing, enlarged. I guess you must be using an older Windows API, since the newer stuff introduced in Windows 8 and onwards does not do this color fringing. (It also does not work as well, but that is the tradeoff.)
This book is a free download, and the early section has a nice, non-technical explanation of how the early versions of ClearType worked: https://docs.microsoft.com/en-us/typography/cleartype/clear-type-font-collection
Or this explanation from Wikipedia: https://en.wikipedia.org/wiki/ClearType0
Categories
- All Categories
- 46 Introductions
- 3.8K Typeface Design
- 475 Type Design Critiques
- 555 Type Design Software
- 1.1K Type Design Technique & Theory
- 638 Type Business
- 829 Font Technology
- 29 Punchcutting
- 506 Typography
- 120 Type Education
- 312 Type History
- 74 Type Resources
- 109 Lettering and Calligraphy
- 30 Lettering Critiques
- 79 Lettering Technique & Theory
- 528 Announcements
- 84 Events
- 110 Job Postings
- 164 Type Releases
- 169 Miscellaneous News
- 274 About TypeDrawers
- 54 TypeDrawers Announcements
- 118 Suggestions and Bug Reports