preview_text
Render sample text in any Google Font with custom size, weight, italic, and color, returning a self-contained HTML preview page.
Instructions
Render sample text in a Google Font. Returns a self-contained HTML page. The weight/italic combination must exist in the family.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Font size in pixels (8-200) | |
| text | No | Sample text to render | The quick brown fox jumps over the lazy dog |
| colour | No | Text colour: hex (e.g. "#1a1a1a"), a CSS colour name, or rgb()/hsl() | #111111 |
| family | Yes | Family name, case-insensitive (e.g. "Open Sans") | |
| italic | No | Render in italic | |
| weight | No | Font weight, e.g. 400 or 700 |