FreeTextStyle
A free-text box’s text style. The keys are the CSS property names XFDF writes in its defaultstyle string, in camel case.
Use it
Section titled “Use it”{ "$ref": "https://gloss-format.org/schema/v1.json#/$defs/FreeTextStyle"}Fields
Section titled “Fields”| Field | Type | Default | XFDF | Description |
|---|---|---|---|---|
fontFamily |
string; at least 1 character | "Helvetica" |
— | The font family. Absent means Helvetica. XFDF writes it as font-family. |
fontSize |
number; > 0 | 12 |
— | The font size in points. Absent means 12. XFDF writes it as font-size. |
color |
Color | — | The text colour. Absent: the reader chooses the text colour. | |
textAlign |
string; one of "left", "center", "right", "justify" |
"left" |
— | How lines of text line up in the box. Absent means left. XFDF writes it as text-align. |
fontWeight |
string; always "bold" |
— | Bold text. Absent means normal weight. XFDF writes it as font-weight. | |
fontStyle |
string; always "italic" |
— | Italic text. Absent means upright. XFDF writes it as font-style. | |
textDecoration |
string; always "underline" |
— | Underlined text. Absent means no underline. XFDF writes it as text-decoration. |
Example
Section titled “Example”{ "fontFamily": "Helvetica", "fontSize": 12, "color": "#1A1A1A"}Used by
Section titled “Used by”From the creators of Inkbar and Redactr.
Format version 1 · gloss-format 1.3.0