<glyph-region> ( run positions start count bounds order -- region )


Vocabulary
core-text

Inputs
runan object
positionsan object
startan object
countan object
boundsan object
orderan object


Outputs
regionan object


Definition


:: <glyph-region>
( run positions start count bounds order -- region )
1/0. :> left! -1/0. :> right! count <iota> [| i |
positions start i + glyph-position-x :> x x left min
left! x right max right!
] each glyph-region new run >>run start count <CFRange>
>>range order >>order left bounds CGRect-x + 2 - >>left
right bounds CGRect-x + bounds CGRect-w + 2 + >>right ;