> 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.

# updateFontScale

APISummary
在客户端设置中更改字体缩放比例将自动更改文本大小。

## 语法

### Android

```java
public void updateFontScale(float scale);
```

#### 参数说明

- `scale`: 新的字体缩放比例。

### iOS

```objc
- (void)updateFontScale:(CGFloat)scale;
```

#### 参数说明

- `scale`: 新的字体缩放比例。

### Desktop (C++)

```cpp
void SetFontScale(float scale);
```

#### 参数说明

- `scale`: 新的字体缩放比例。

## 兼容性

**Compatibility Table**

**Query:** `lynx-native-api.lynx-view.update-font-scale`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/lynx-view/update-font-scale.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| update-font-scale | Yes (2.1) | Yes (3.4) | Yes (2.1) | Yes (3.7) | Yes (3.7) | No |

**`update-font-scale`**

update font scale of lynxView

**Specifications:**

