Skip to main content
March 17, 2009
Answered

how to get fontSize of a para

  • March 17, 2009
  • 1 reply
  • 487 views
para.fontSize is write-only, what is the easy way to get fontSize applied on certain FlowElement ?

Thanks
This topic has been closed for replies.
Correct answer rdermer
Assuming build 370 or greater:

para.textLayoutFormat.fontSize returns the fontSize (if any) set on the para element.
Note that para.textLayoutFormat may be null.

para.computedTextLayoutFormat.fontSize returns the result of computing the format applying inheritance rules - if its not set on para then it has the parent's value.

1 reply

rdermerCorrect answer
Adobe Employee
March 17, 2009
Assuming build 370 or greater:

para.textLayoutFormat.fontSize returns the fontSize (if any) set on the para element.
Note that para.textLayoutFormat may be null.

para.computedTextLayoutFormat.fontSize returns the result of computing the format applying inheritance rules - if its not set on para then it has the parent's value.