开发者

Fuzzy text in NSStatusItem

开发者 https://www.devze.com 2023-02-07 07:00 出处:网络
I\'m displaying a statusItem at launch like this: theItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength] retain];

I'm displaying a statusItem at launch like this:

theItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength] retain];

 NSString *theString = [textField stringValue];
 (textField.stringValue = theString);

    [theItem setTitle:theString];
    [theItem setHighlightMode:YES];

The text looks very fuzzy. How can I clean up the look of the text?

Thanks.

Paul

Here's a screenshot with the digital menu bar clock on top, and NSStatusItem t开发者_如何学JAVAitle on bottom:

Fuzzy text in NSStatusItem


Have you tried drawing the text into an image and using that image in the NSStatusItem?


Looks rather fine to me.

Fuzzy text in NSStatusItem

Okay, not "perfect" but it's more about uneven scaling than "fuzziness." Is this what you're seeing too?

0

精彩评论

暂无评论...
验证码 换一张
取 消