> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XClosedCaptionFontStyle

> XClosedCaptionFontStyle

# XClosedCaptionFontStyle

指定隐藏式字幕文本的字体样式。

## 语法

```cpp theme={null}
enum class XClosedCaptionFontStyle  : uint32_t  
{  
    Default = 0,  
    MonospacedWithSerifs = 1,  
    ProportionalWithSerifs = 2,  
    MonospacedWithoutSerifs = 3,  
    ProportionalWithoutSerifs = 4,  
    Casual = 5,  
    Cursive = 6,  
    SmallCapitals = 7  
}  
```

## 常量

| 常量 | 说明 |
| - | - |
| Default | 隐藏式字幕文本使用默认字体样式。 |
| MonospacedWithSerifs | 隐藏式字幕文本使用带衬线的等宽字体样式。 |
| ProportionalWithSerifs | 隐藏式字幕文本使用带衬线的比例字体样式。 |
| MonospacedWithoutSerifs | 隐藏式字幕文本使用无衬线的等宽字体样式。 |
| ProportionalWithoutSerifs | 隐藏式字幕文本使用无衬线的比例字体样式。 |
| Casual | 隐藏式字幕文本使用带衬线的休闲字体样式。 |
| Cursive | 隐藏式字幕文本使用手写体字体样式。 |
| SmallCapitals | 隐藏式字幕文本使用小型大写字母字体样式。 |

## 备注

您可以通过调用 [XClosedCaptionGetProperties](https://docs.xbox.com/zh-CN/reference/system/xaccessibility/functions/xclosedcaptiongetproperties.md) 函数来检索当前的隐藏式字幕属性。
[XClosedCaptionGetProperties](https://docs.xbox.com/zh-CN/reference/system/xaccessibility/functions/xclosedcaptiongetproperties.md) 函数以指向 [XClosedCaptionProperties](https://docs.xbox.com/zh-CN/reference/system/xaccessibility/structs/xclosedcaptionproperties.md) 结构的指针作为参数。
**XClosedCaptionFontStyle** 枚举是 [XClosedCaptionProperties](https://docs.xbox.com/zh-CN/reference/system/xaccessibility/structs/xclosedcaptionproperties.md) 结构的成员。

## 要求

**头文件：** XAccessibility.h

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[XAccessibility](https://docs.xbox.com/zh-CN/reference/system/xaccessibility/xaccessibility_members.md)

[XClosedCaptionGetProperties](https://docs.xbox.com/zh-CN/reference/system/xaccessibility/functions/xclosedcaptiongetproperties.md)

[XClosedCaptionProperties](https://docs.xbox.com/zh-CN/reference/system/xaccessibility/structs/xclosedcaptionproperties.md)


## Related topics

- [XClosedCaptionProperties](https://docs.xbox.com/zh-CN/reference/system/xaccessibility/structs/xclosedcaptionproperties.md)
- [XAccessibility（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xaccessibility/xaccessibility_members.md)
- [XClosedCaptionFontEdgeAttribute](https://docs.xbox.com/zh-CN/reference/system/xaccessibility/enums/xclosedcaptionfontedgeattribute.md)
- [XClosedCaptionGetProperties](https://docs.xbox.com/zh-CN/reference/system/xaccessibility/functions/xclosedcaptiongetproperties.md)
- [XClosedCaptionSetEnabled](https://docs.xbox.com/zh-CN/reference/system/xaccessibility/functions/xclosedcaptionsetenabled.md)
