title: CodenameOne - Getting the text size inside TextViews or TextAreas
body: <p>My CodenameOne app has a BrowserComponent in the layout (it's a WebView).</p>
  <p>It has also other components like TextFields.</p>
  <p>I need that the text in the BrowserComponent has the same size as the text in the TextFields (default value).</p>
  <p>I set the text size inside the BrowserComponent in HTML, using the CSS font-size property.</p>
  <p>I tried with this instruction:</p>
  <pre><code>int size=textField.getStyle().getFont().getSize();
  </code></pre>
  <p>and then the HTML is created, where there is this string inside a suitable tag definition:</p>
  <pre><code>&quot;style=\&quot;font-size:&quot;+String.valueOf(size)+&quot;px;\&quot;&quot;;
  </code></pre>
  <p>but the result is 0.</p>
  <p>Is it possible to get that number to be correct from any method?</p>