> 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-variation-settings

APISummary
## 介绍

`font-variation-settings` 属性为可变字体特性提供了底层控制，让你可以指定要改变的特性的四字母轴名称及其值。

## 使用示例

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

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

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

const FontVariationSettings = () => {
  return (
    <view style={{ display: "linear" }}>
      <text>normal</text>
      <text className="variable-font-normal">1234567890</text>
      <text>font-variation-settings:'wght' 750</text>
      <text className="variable-font-normal font-variation-settings">1234567890</text>
    </view>
  );
};

root.render(<FontVariationSettings />);

```

v0.11.0



## 语法

```css
font-variation-settings: 'wght' 750;
```

## 形式定义

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


## 形式语法

```
font-variation-settings =
  normal                        |
  [ <opentype-tag> <number> ]#

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

## 兼容性

**Compatibility Table**

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

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

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

**`font-variation-settings`**

**Specifications:**

