# fix\(web\): reliable font availability probing and theme-consistent previews · stienswout/t3code

[View on GitCafe](https://git.cafe/stienswout/t3code/commit/80612c42021006e8bdd67b2b411653e2c423d59b)

Repository: [stienswout/t3code](https://git.cafe/stienswout/t3code)

Visibility: public

Requested revision: 80612c42021006e8bdd67b2b411653e2c423d59b

Requested commit: 80612c42021006e8bdd67b2b411653e2c423d59b

Commit: 80612c42021006e8bdd67b2b411653e2c423d59b

Tree: fc6578faf7ee9267b71617748aa35c6e0bd8a968

Author: Wout Stiens

Committer: Wout Stiens

## Message

```
fix(web): reliable font availability probing and theme-consistent previews

document.fonts.check() answers true for families that are not installed
(nothing needs loading), so the dropdowns offered fonts that silently
fell back to the default stack and the sans-side previews appeared not
to update. Availability now comes from canvas metric probing: a family
counts as available when substituting it before a generic changes the
measured advance.

The terminal preview card also follows the app theme now — the real
terminal renders on the app background in light mode, so a hardcoded
dark card was inconsistent theming.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

- [dc3ebeb386cc0cf528b0bb95e7a333eae1ab46e1](https://git.cafe/stienswout/t3code/commit/dc3ebeb386cc0cf528b0bb95e7a333eae1ab46e1?format=markdown)

[Source at this commit](https://git.cafe/stienswout/t3code/tree/80612c42021006e8bdd67b2b411653e2c423d59b?format=markdown)
