Abount string pixel width

Login to reply to this topic.
Thu, 2004-09-23 08:01
Joined: 2004-07-06
Forum posts: 30
Such as one TBuf <100> buf
buf.Copy(_L(" This is is tested");
I want can I get pixel width of the string before DrawText ?
Use Font iEikonEnv->NormalFont ()

Thu, 2004-09-23 08:36
Joined: 2003-09-29
Forum posts: 32
Abount string pixel width
See CFont::MeasureText

Quote
Description
Text measurement function.

This is the powerful text measurement function underlying all the other text measurement functions. It takes optional input and output parameter blocks — they may be null, and returns the the advance width (change in pen position when drawn) of the text, or advance height if the text is drawn vertically. However, vertical text is not yet supported.

Jari

Thu, 2004-09-23 10:44
Joined: 2004-07-06
Forum posts: 30
Abount string pixel width
Jari,
thank you very much!!!
  • Login to reply to this topic.