2017-09-04 4 views
0

FlowDocumentのスタイルは次のようになっているとします。FlowDocumentのFontFamilyが設定されている場合、段落のFontWeightをどのように変更できますか?

<Style TargetType="{x:Type FlowDocument}"> 
    <Setter Property="FontFamily" Value="Segoe UI regular"/> 
    <Setter Property="FontSize" Value="16"/> 
    <Setter Property="LineHeight" Value="19"/> 
</Style> 

これは何らかの理由で大胆にはなりません。

<Paragraph> 
    <Bold>Is this bold?</Bold> 
</Paragraph> 

かさえ、この

<Run FontWeight="Bold" Text="{DynamicResource CMMsg_7114}" /> 

は、私はデフォルトのフォントを親FontFamilyを設定し、使用しない場合は、両方の方法がうまく動作することを覚えておいてください。どのように私はこの問題を解決できますか?

+0

ありがとうございました! – VegaBrothers

答えて

0

FontFamily「Segoe UI regular」は太字をサポートしていません。 FontFamilyを「Segoe UI」に変更してください:

<Style TargetType="{x:Type FlowDocument}"> 
    <Setter Property="FontFamily" Value="Segoe UI"/> 
    <Setter Property="FontSize" Value="16"/> 
    <Setter Property="LineHeight" Value="19"/> 
</Style> 
関連する問題