Welcome to MSDN Blogs Sign in | Join | Help

Glyphs Alpha Bug

It has come to our attention that the .NET 3.0 Framework XPS Viewer has a bug where the alpha component of the <Glyphs> Fill attribute value renders too lightly due to gamma correction introduced through the use of ClearType algorithms. Producers may wish to avoid this by using the Opacity attribute as shown in the second example below.

<Glyphs OriginX="50" OriginY="50" FontRenderingEmSize="20" FontUri="../Resources/Fonts/times.ttf" UnicodeString="Hello world!" Fill="#7F000000" Opacity="1.0" />

<Glyphs OriginX="50" OriginY="80" FontRenderingEmSize="20" FontUri="../Resources/Fonts/times.ttf" UnicodeString="Hello world!" Fill="#FF000000" Opacity="0.5" />

Published Friday, September 08, 2006 4:13 PM by xps

Comments

No Comments
New Comments to this post are disabled
 
Page view tracker