> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# font-feature-settings

APISummary
## 介绍

`font-feature-settings` 属性用于控制 OpenType 字体中的高级印刷功能。

## 使用示例

**下面是一个示例: css-api**

**Entry:** `src/font-feature-settings`
**Bundle:** `dist/font-feature-settings.lynx.bundle`

```tsx
import { root } from "@lynx-js/react";
import "./index.scss";

const FontFeatureSettings = () => {
  return (
    <view style={{ display: "linear" }}>
      <text>normal</text>
      <text className="variable-font-normal">1234567890</text>
      <text>font-feature-settings:'onum'</text>
      <text className="variable-font-normal font-feature-settings">1234567890</text>
    </view>
  );
};

root.render(<FontFeatureSettings />);

```

v0.11.0



## 语法

```css
font-feature-settings: 'onum';
```

## 形式定义

| 初始值 | normal |
| 适用元素 | text |
| 是否支持继承 | yes |
| 是否支持动画 | no |


## 形式语法

```
font-feature-settings =
  normal                |
  <feature-tag-value>#

<feature-tag-value> =
  <opentype-tag> [ <integer [0,∞]> | on | off ]?

<opentype-tag> =
  <string>
```

## 兼容性

**Compatibility Table**

**Query:** `css.properties.font-feature-settings`

[Source](https://github.com/lynx-family/lynx/blob/develop/tools/css_generator/css_defines/218-font-feature-settings.json) · [MDN](https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-feature-settings)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| font-feature-settings | Yes (3.4) | No | Partial (3.4) | No | No | Yes |

**`font-feature-settings`**

**Specifications:**

- **iOS — From 3.4:** Partial support; iOS supports commonly used and registered OpenType tags: hlig, clig, c2sc, c2pc, smcp, pcap, ss01-ss20, onum, lnum, pnum, tnum, frac, afrc, zero, ordn, sups, subs, case, titl, sinf.

