Bitbar: Font family and size set, no changes.

Created on 27 Dec 2015  路  7Comments  路  Source: matryer/bitbar

Example:
something | color=#ff0000 size=10 font=Tahoma
something | color=#ff0000 size=10
something | color=#ff0000 font=Tahoma

Color is set correctly, but size and font attributes do nothing.
I've read that something changed in method fontWithName:size: in Yosemite or it got deprecated. Maybe that's the case.

bug

Most helpful comment

So any way currently to use mono font with python script?

NM, I found how:
print "foo", "| font='andale mono'"

All 7 comments

+1 - Also doesn't work in El Capitan.

+1 Tried several different methods.
No luck.

It seems like more recent Mac OS X versions don't support this. Will dig deeper.

Try wrapping your font in quotes. I was able to get version 1.4beta (technically the master branch) working on OS X 10.10.5 (Yosemite).

This still sounds like a bug with the setup of the fontWithName:size: method, though.

It works in latest master version (1.4) on El Capitan.
Quotes are logically only needed when there is a space in font name.

Additionally I've made a PR for font validation that checks if font exists on the system.

Could be because I'm calling it before executing a python script, but cannot specify any font. Without fixed-width font its difficult (impossible) to display tabular data... though suggestions welcome.

So any way currently to use mono font with python script?

NM, I found how:
print "foo", "| font='andale mono'"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JayBrown picture JayBrown  路  11Comments

cjbaar picture cjbaar  路  10Comments

JayBrown picture JayBrown  路  6Comments

fenhl picture fenhl  路  4Comments

Wondermagicman picture Wondermagicman  路  4Comments