Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fuzzy text in NSStatusItem

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 title on bottom:

Digital Clock on top, NSStatusItem title on bottom

like image 921
Paul Avatar asked Nov 14 '22 03:11

Paul


1 Answers

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

like image 109
Chris Cieslak Avatar answered Feb 11 '23 07:02

Chris Cieslak