Skip to content
Apexify.jsDocs
Apexify.js version v5.4.5

Node / Text Rendering · reference

TextProperties — full field matrix

Current Apexify.js 6.0.0 documentation for TextProperties — full field matrix.

apexify.jsRuntime: nodeCURRENTSince 6.0.0

Single-page reference aligned with TextProperties (lib-next/types/text.ts).


Required

FieldTypeNotes
textstringUnicode string (\\n splits rows).
xnumberAnchor X.
ynumberAnchor Y.

Font

FieldTypeNotes
font{ size?, family?, name?, path? }Preferred grouping
fontSizenumberDeprecated → font.size (default 16)
fontFamilystringDeprecated → font.family
fontNamestringDeprecated → font.name
fontPathstringDeprecated → font.path

Resolution order for family string: font.name → fontName → font.family → fontFamily → "Arial".


Decorations (decorations + legacy mirrors)

NestedLegacy aliasRole
decorations.underlineunderlineTextLineDecoration
decorations.overlineoverlineSame
decorations.strikethroughstrikethroughSame
decorations.boldboldCSS bold prefix
decorations.italicitalicCSS italic prefix

Effects (effects + legacy mirrors)

NestedLegacy aliasType summary
effects.highlighthighlightcolor?, gradient?, opacity?
effects.glowglowcolor?, gradient?, intensity?, opacity?
effects.shadowshadowcolor?, gradient?, offsetX/Y?, blur?, opacity?

Layout (layout + legacy mirrors)

NestedLegacy aliasRole
layout.lineHeightlineHeightMultiplier × font.size (default 1.4 logic when omitted)
layout.letterSpacingletterSpacingPixels → ctx.letterSpacing
layout.wordSpacingwordSpacingPixels → ctx.wordSpacing
layout.maxWidthmaxWidthEnables computeWrappedTextLines
layout.maxHeightmaxHeightCaps wrapped line count

Placement (placement + legacy mirrors)

NestedLegacy aliasRole
placement.textAligntextAlignTextAlignMode
placement.textBaselinetextBaselineTextBaselineMode
placement.rotationrotationDegrees around (x,y)

Fill (fill + legacy mirrors)

NestedLegacy aliasRole
fill.colorcolorSolid fillStyle
fill.gradientgradientgradient union
fill.opacityopacityClamped globalAlpha

Stroke & arc extras

FieldTypeRole
strokeTextStrokeStyleOutline (color, width, gradient, opacity, style)
textOnCurveTextCurveConfigCircular arc layout (see Curved text)

Measurement-only

FieldTypeRole
includeCharMetricsbooleanAdds per-code-unit widths/positions (measureText)
measurementCanvas{ width?, height? }Scratch surface sizing (measureText)

Deprecated interface

TextObject extends TextProperties with isBold?, outlined? — do not use for new createText calls.


Merge precedence (summary)

Whenever a property exists both nested and flat, nested wins — see resolver exports at the bottom of types/text.ts.


Next steps