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

# updateFontScale

APISummary
Changing the font scaling ratio in client settings will automatically change the text size.

## Syntax

### Harmony

```typescript
updateFontScale(scale: number): void;
```

#### Parameters

- `scale`: Font scaling.

## Compatibility

**Compatibility Table**

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

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

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

**`update-font-scale`**

update font scale of lynxView

**Specifications:**

