WPf プロジェクトに次の Xaml があるとします。
<StackPanel
VerticalAlignment="Center">
<TextBlock
FontSize="40"
FontFamily="Segoe UI"
FontWeight="Light"
Text="This is a test (light)" />
<TextBlock
FontSize="40"
FontFamily="Segoe UI Light"
Text="This is a test (font.light)" />
<TextBlock
FontSize="40"
FontFamily="Segoe UI"
Text="This is a test (normal)" />
<TextBlock
FontSize="40"
FontFamily="Segoe UI"
FontWeight="SemiBold"
Text="This is a test (semibold)" />
<TextBlock
FontSize="40"
FontFamily="Segoe UI Semibold"
Text="This is a test (font.semibold)" />
<TextBlock
FontSize="40"
FontFamily="Segoe UI"
FontWeight="Bold"
Text="This is a test (bold)" />
</StackPanel>
フォントは期待どおりにレンダリングされます。ただし、これを Silverlight プロジェクトで使用すると、FontWeight が Light または Semibold のテキストブロックが正しくレンダリングされません。FontWeight="Light" バージョンは通常のフォントのみを使用し、FontWeight="Semibold" はボールド バージョンを使用します。フォント名が「Segoe UI Light」や「Segeo UI Semibold」など明示的に指定されている場合、期待どおりに動作します。WPF のように、Silverlight が一部の FontWeight 値を正しいフォントにマップしないようです。これはバグですか、それとも何か不足していますか?
前もってありがとう、ロバート