Compute the bbox of the given shape.Text instance. Note that this method returns an approximation of the bbox, and should be used when the underlying renderer cannot provide precise metrics.
Parameter | Type | Description |
---|---|---|
s | shape.Text |
Parameter | Type | Description |
---|---|---|
textShape | g.defaultTextShape | |
width | Number | |
height | Number | |
fixHeight | Boolean |
Parameter | Type | Description |
---|---|---|
surface | dojox/gfx/shape.Surface |
Returns an object that has pixel equivilents of standard font size values.
Parameter | Type | Description |
---|---|---|
text | String | |
style | Object | |
className | String |
Optional
|