Appearance
zeropdf / FlowOptions
Interface: FlowOptions
Defined in: src/types.ts:1047
Initial layout, typography, and spacing options for a PdfFlow cursor.
Extended by
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
align? | TextAlign | Horizontal alignment for laid-out content. | src/types.ts:1083 |
color? | ColorInput | Color used for drawing, text, or highlighting. | src/types.ts:1079 |
columns? | FlowColumnsOptions | Newspaper-style flow columns. | src/types.ts:1055 |
direction? | TextDirection | Text direction used for shaping and layout. | src/types.ts:1075 |
fallbackFonts? | PdfFont[] | Fallback fonts used when the primary font lacks a glyph. | src/types.ts:1073 |
font? | PdfFont | Font used to render text. | src/types.ts:1071 |
fontSize? | number | Font size in PDF points. | src/types.ts:1077 |
gap? | number | Default vertical gap between flow blocks in PDF points. | src/types.ts:1067 |
kerning? | boolean | Whether kerning should be applied where supported. | src/types.ts:1085 |
lineHeight? | number | Line height in PDF points. | src/types.ts:1081 |
margin? | FlowMarginShorthand | CSS-like margin shorthand in PDF points. | src/types.ts:1057 |
marginBottom? | number | Bottom margin in PDF points. | src/types.ts:1063 |
marginLeft? | number | Left margin in PDF points. | src/types.ts:1065 |
marginRight? | number | Right margin in PDF points. | src/types.ts:1061 |
marginTop? | number | Top margin in PDF points. | src/types.ts:1059 |
spacing? | FlowSpacingScale | Semantic spacing scale used by flow layout. | src/types.ts:1069 |
width? | number | Width in PDF points. | src/types.ts:1053 |
writingMode? | "horizontal" | "vertical" | Text writing mode. "horizontal" (default) places characters left-to-right. "vertical" stacks characters top-to-bottom. | src/types.ts:1090 |
x? | number | Horizontal position in PDF points. | src/types.ts:1049 |
y? | number | Vertical position in PDF points. | src/types.ts:1051 |