设置 FlowDocument 的 FontFamily 后,如何更改段落的 FontWeight?

How can I change FontWeight of paragraph when FontFamily of a FlowDocument is set?

假设您有以下 FlowDocument.

样式
<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 并使用默认字体,这两种方法都可以正常工作。知道如何解决这个问题吗?

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>