2 "name" : "Roo.util.TextMetrics",
7 "desc" : "Provides precise pixel measurements for blocks of text so that you can determine exactly how high and\nwide, in pixels, a given block of text will be.",
12 "isBuilderTop" : false,
13 "memberOf" : "TextMetrics",
25 "name" : "createInstance",
27 "desc" : "Return a unique TextMetrics instance that can be bound directly to an element and reused. This reduces\nthe overhead of multiple calls to initialize the style properties on each measurement.",
28 "sig" : "(el, fixedWidth)",
32 "isConstructor" : false,
43 "type" : "String/HTMLElement",
44 "desc" : "The element, dom node or id that the instance will be bound to",
48 "name" : "fixedWidth",
50 "desc" : "(optional) If the text will be multiline, you have to set a fixed width\nin order to accurately measure the text height",
57 "type" : "Roo.util.TextMetrics.Instance",
58 "desc" : "instance The new instance"
65 "desc" : "Measures the size of the specified text",
66 "sig" : "(el, text, fixedWidth)",
70 "isConstructor" : false,
81 "type" : "String/HTMLElement",
82 "desc" : "The element, dom node or id from which to copy existing CSS styles\nthat can affect the size of the rendered text",
88 "desc" : "The text to measure",
92 "name" : "fixedWidth",
94 "desc" : "(optional) If the text will be multiline, you have to set a fixed width\nin order to accurately measure the text height",
102 "desc" : "An object containing the text's size {width: (width), height: (height)}"