Partilhar via


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" />