FROM : Thomas Davie
DATE : Sun Nov 25 15:09:12 2007
On 25 Nov 2007, at 07:09, Philip Q wrote:
> On 25/11/2007, Jerry Krinock <<email_removed>> wrote:
>> NSFont provides:
>>
>> + (NSFont *)titleBarFontOfSize:(float)fontSize
>>
>> Just what I need to get the font used in window title bars! But,
>> uhhh, what do I give for the fontSize argument? I know it looks like
>> about 13, but how do I get a "correct, supported, future-proof"
>> answer?
>>
>
> The discussion for +titleBarFontOfSize: says:
> "If fontSize is 0 or negative, returns the title bar font at the
> default size."
Perhaps that ought to be filed as a bug -- it's very inconsistent with
the rest of NSFont's APIs, from which you'd expect to call
titleBarFontSize, to find out the default size.
Bob
DATE : Sun Nov 25 15:09:12 2007
On 25 Nov 2007, at 07:09, Philip Q wrote:
> On 25/11/2007, Jerry Krinock <<email_removed>> wrote:
>> NSFont provides:
>>
>> + (NSFont *)titleBarFontOfSize:(float)fontSize
>>
>> Just what I need to get the font used in window title bars! But,
>> uhhh, what do I give for the fontSize argument? I know it looks like
>> about 13, but how do I get a "correct, supported, future-proof"
>> answer?
>>
>
> The discussion for +titleBarFontOfSize: says:
> "If fontSize is 0 or negative, returns the title bar font at the
> default size."
Perhaps that ought to be filed as a bug -- it's very inconsistent with
the rest of NSFont's APIs, from which you'd expect to call
titleBarFontSize, to find out the default size.
Bob
| Related mails | Author | Date |
|---|---|---|
| Jerry Krinock | Nov 25, 07:21 | |
| Andrew Farmer | Nov 25, 07:58 | |
| Philip Q | Nov 25, 08:09 | |
| Thomas Davie | Nov 25, 15:09 | |
| Gregory Weston | Nov 25, 18:59 |






Cocoa mail archive

