TextMetrics
The measureText() method takes one argument, text. When the
method is invoked it returns a TextMetrics object with
width property set to the width the text given the set font and
element properties.
http://dev.w3.org/html5/2dcontext/#dom-context-2d-createlineargradient
Supported Platform(s)
- BlackBerry OS 6.0+ |
- BlackBerry PlayBook 1.0+ |
- BlackBerry 10 |
- Ripple Emulator |
View Supported Platform Table
API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
width
| |
Y |
Y |
Y |
Y |
Y | Y |
Configuration Document Settings
To use all of the API described for this object, you must ensure the following settings are in your configuration document:
|
This API does not require a <feature> element to be declared in the configuration document of your BlackBerry WebWorks Application.
|
Permission Elements (PlayBook and BlackBerry 10+) |
This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application.
|
Properties
readonly
Number
width
text width
Supported Platforms
|
|
- BlackBerry OS 6.0+
|
|
- BlackBerry PlayBook 1.0+
|
|
- BlackBerry 10
|
|
- Ripple Emulator
|
Documentation generated by
JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:44 GMT-0500 (EST)