2017-09-04 1 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> 
관련 문제