TextInspectionOptions
Defined in: ui/text/inspect-text.ts:7
A computed UINode text box, in local display pixels.
Extends
Section titled “Extends”Properties
Section titled “Properties”
optionalbold?:boolean
Defined in: ui/text/measure-text.ts:26
Inherited from
Section titled “Inherited from”customFont?
Section titled “customFont?”
optionalcustomFont?:boolean
Defined in: ui/text/inspect-text.ts:12
fontFamily?
Section titled “fontFamily?”
optionalfontFamily?:string
Defined in: ui/text/measure-text.ts:23
Default: Arial.
Inherited from
Section titled “Inherited from”fontSize
Section titled “fontSize”fontSize:
number
Defined in: ui/text/measure-text.ts:25
Display px.
Inherited from
Section titled “Inherited from”height
Section titled “height”height:
number
Defined in: ui/text/inspect-text.ts:9
italic?
Section titled “italic?”
optionalitalic?:boolean
Defined in: ui/text/measure-text.ts:27
Inherited from
Section titled “Inherited from”letterSpacing?
Section titled “letterSpacing?”
optionalletterSpacing?:number
Defined in: ui/text/measure-text.ts:29
Extra px between glyphs (mirrors the renderer’s letterSpacing).
Inherited from
Section titled “Inherited from”MeasureTextOptions.letterSpacing
lineHeight?
Section titled “lineHeight?”
optionallineHeight?:number
Defined in: ui/text/measure-text.ts:33
Line height in display px. Default: fontSize * 1.2 (the Text default ratio).
Inherited from
Section titled “Inherited from”maxWidth?
Section titled “maxWidth?”
optionalmaxWidth?:number
Defined in: ui/text/measure-text.ts:31
Word-wrap width in display px. 0 / undefined ⇒ a single line (no wrap).
Inherited from
Section titled “Inherited from”richText?
Section titled “richText?”
optionalrichText?:boolean
Defined in: ui/text/inspect-text.ts:11
width:
number
Defined in: ui/text/inspect-text.ts:8
wordWrap?
Section titled “wordWrap?”
optionalwordWrap?:boolean
Defined in: ui/text/inspect-text.ts:10