discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text label mis-sizing / clipping


From: Alexander Malmberg
Subject: Re: Text label mis-sizing / clipping
Date: Wed, 15 Sep 2004 18:43:16 +0200
User-agent: Mozilla Thunderbird 0.5 (X11/20040306)

It's a known issue, and there are a couple of different causes. Some of these are caused by -gui bugs (due to mismatches in NSButtonCell (that I fixed once already, and added a bit of margin to avoid these problems, but recent changes there have been messy; I'm working on fixing all that, though)).

Those fixes just ensure that auto-sizing interfaces work, though. Some views (eg. menus) are inherently auto-sizing, so they never have any problems with this. Interfaces that hard-code coordinates will still have problems.

Although applications can specify the font and font size, standard fonts may resolve to different actual fonts on different systems, so "System Font 12pt" might be rendered as "Helvetica 12pt" on some systems and as "Vera Sans 12pt" on other systems, and these have very different metrics. Generally, interfaces use standard fonts, and I consider this a good thing, but it means that they won't handle all possible font choices unless they're auto-sizing.

Anyway, although neat flamewars are possible based on this, I'll just state my recommendations:

1. Create auto-sizing interfaces.
2. Design for Vera Sans (since Vera Sans is large enough that most other fonts, and at least all standard choices for system font, will fit).

- Alexander Malmberg




reply via email to

[Prev in Thread] Current Thread [Next in Thread]