Ulrich Kohler <[email protected]> wrote:
> in a private exchange, Andreas Stiehler <[email protected]> and I dedected a
> problem with ylabel justifications in Stata for the Mac. Basically, what we
> did was
>
> . sysuse auto
> . sc rep78 trunk,
> ylabel(5 "Das und das und so" 4 "shorter" 3 "etc" , angle(horizontal))
>
> In Stata for the Mac the long label for the value 5 is not justified at the
> same position than the other labels. Instead this label ends somewhat more
> left than the other labels.
Stata uses the Quartz drawing engine to render text rather than ATSUI (Apple
Type Services for Unicode Imaging) due to a bug in ATSUI discovered in OS X
10.3.2. However, Stata still uses ATSUI to measure the width of text which is
needed for transforming points for text justification. There evidently is a
slight difference between the two methods of rendering text which is leading
to the misalignment you see. For example, ATSUI may say that "Hello world"
takes up 90.1 pixels when after being rendered with Quartz, it only takes up
88.9 pixels (Quartz and ATSUI operates with floats; Quickdraw operates with
integers).
We'll fix this problem.
BTW, there is no difference between Intercooled Stata or Stata/SE (or for that
matter, Small Stata) when it comes to how Stata renders graphs. They all use
the same graph engine.
-Chinh Nguyen
[email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/