Re: font extent question

new topic     » goto parent     » topic index » view thread      » older message » newer message

Sure, try this...

  setFont(Screen, "Arial", 20, Bold)
  charSize = getTextExtent(Screen,"abcdefghij")

The "Screen" id is always available.

----- Original Message -----
From: "George Walters" <gwalters at sc.rr.com>
To: "EUforum" <EUforum at topica.com>
Subject: font extent question


>
> Is there a way to find the extent of a font w/o having to have an editText
> control open? My problem is i'm trying to determine font size and extent
> before my program launches any windows and controls....so I can select
these
> parameters before launching.
>
> this method (charSize = getTextExtent(id,"abcdefghij")) requires an
existing
> control.
>
> If i'm on the wrong track give me a hint...
>
> ...george
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu