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

# font-optical-sizing

APISummary
## Introduction

The `font-optical-sizing` CSS property sets whether text rendering is optimized for viewing at different sizes.

## Examples

**This is an example below: css-api**

**Entry:** `src/font-optical-sizing`
**Bundle:** `dist/font-optical-sizing.lynx.bundle`

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

const FontOpticalSizing = () => {
  return (
    <view style={{ display: "linear", width: "300px" }}>
      <text>normal</text>
      <text className="variable-font-normal">
        On this particular Thursday, something was moving quietly through the ionosphere many miles above the surface of
        the planet; several somethings in fact, several dozen huge yellow chunky slablike somethings, huge as office
        blocks, silent as birds.
      </text>
      <view style={{ height: "10px" }}></view>
      <text>font-optical-sizing: auto</text>
      <text className="variable-font-normal font-optical-sizing">
        On this particular Thursday, something was moving quietly through the ionosphere many miles above the surface of
        the planet; several somethings in fact, several dozen huge yellow chunky slablike somethings, huge as office
        blocks, silent as birds.
      </text>
    </view>
  );
};

root.render(<FontOpticalSizing />);

```

v0.11.0



## Syntax

```css
font-optical-sizing: auto;
```

## Formal Definition

| Initial value | none |
| Applies to | text |
| Inherited | yes |
| Animatable | no |


## Formal Syntax

```
font-optical-sizing =
  auto | none
```

## Differences from the Web

- Unlike the Web default value of `auto`, the default value in Lynx is `none`. The `font-optical-sizing` property is a supplement to the `font-variation-settings` property and the optical size variation axis is represented by `opsz` in `font-variation-settings`.

## Compatibility

**Compatibility Table**

**Query:** `css.properties.font-optical-sizing`

[Source](https://github.com/lynx-family/lynx/blob/develop/tools/css_generator/css_defines/219-font-optical-sizing.json) · [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/font-optical-sizing)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| font-optical-sizing | Yes (3.4) | No | Yes (3.4) | No | No | Yes |

**`font-optical-sizing`**

**Specifications:**

