From: Jeff Godfrey on
The width of a given string place on a canvas in a specified font seems
to match the value returned by [font measure]. In my specific case,
that value is 60.

However, if I rotate the text by 90 degrees so that the string is
vertical (using 8.6 code), the string now takes up about 70 pixels in
height. I need to adjust the rotated string so that it's only 60 pixels
high.

So, it would seem that I need to know some sort of ratio value in order
to modify the font associated with my vertical strings. So, what things
play into that value (non-square pixels?, screen aspect ratio?, etc) and
how do I get to them?

Thanks,

Jeff
From: Jeff Godfrey on
Jeff Godfrey wrote:

> So, it would seem that I need to know some sort of ratio value in order
> to modify the font associated with my vertical strings. So, what things
> play into that value (non-square pixels?, screen aspect ratio?, etc) and
> how do I get to them?

Hmmm... Upon further investigation, something seems wrong here. When
the text is rotated 90 degrees, it's noticeably larger (in width and
height). I'd guess that's not expected, is it?

FWIW, I'm using an AS build - 8.6b1.1 on Win7 x64.

Jeff
From: Jeff Godfrey on
Jeff Godfrey wrote:

> Hmmm... Upon further investigation, something seems wrong here.

Bug report filed as SF with additional details (ref # 2993702)

Jeff
From: Donal K. Fellows on
On 28 Apr, 17:14, Jeff Godfrey <jeff_godf...(a)pobox.com> wrote:
> Hmmm... Upon further investigation, something seems wrong here.  When
> the text is rotated 90 degrees, it's noticeably larger (in width and
> height).  I'd guess that's not expected, is it?

As far as I'm aware, we just ask for an angled font of a particular
size and leave Windows to do the rest. Have you tried doing an angle
of 0.01 in comparison with zero-angle text? That does angled lettering
(exercising the same code as the 90 degree case) but does not *appear*
to be rotated at the sizes you're working with. It's a technique I
used when debugging the X11 and OSX rotated font code...

(I don't have a system suitably comparable for testing.)

Donal.
From: Jeff Godfrey on
Donal K. Fellows wrote:
> Have you tried doing an angle
> of 0.01 in comparison with zero-angle text? That does angled lettering
> (exercising the same code as the 90 degree case) but does not *appear*
> to be rotated at the sizes you're working with. It's a technique I
> used when debugging the X11 and OSX rotated font code...

Donal,

Great suggestion - thanks. Yes, rotating the string to 0.01 does
exhibit the originally reported problem. That is, the text grows in
exactly the same way (and in the same amount) as the 90 degree rotation.

The originally reported clipping issues are evident in this case also.

Jeff