[haiku-3rdparty-dev] Re: GetBoundingBoxesForStrings

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Thu, 13 Jun 2013 09:16:48 -0400

On Thu, Jun 13, 2013 at 9:10 AM, Matthew Allen <fret@xxxxxxxxxxxx> wrote:
> I'm trying to get the bounding box of a string including the whitespace. And 
> BFont::GetBoundingBoxesForStrings gives me just the size of the characters, 
> without the whitespace. Whats the best way to get the size of the string 
> including the whitespace?
>
> e.g. the string "Make " gives me the same result as "Make". Which is not what 
> my application is expecting.

Out of curiosity, are you only seeing that behavior for
leading/trailing whitespace? e.g. is the bounding box you get for
something like "Make Test" correct?

Regards,

Rene

Other related posts: