jjrscott / ColoredConsole

Reenabling colors in Xcode's console
Other
215 stars 11 forks source link

How to change colors, as well as add more colors #6

Open smartcat32 opened 4 years ago

smartcat32 commented 4 years ago

First, thanks for this awesome font and idea! My logged errors and warnings will finally get my attention again amid all the console noise.

Second, I tried changing the colors in the provided perl script, and re-ran the script. I now don't know how to apply the generated ColoredConsole-Bold.colored.ttx to the ColoredConsole-Bold.ttf (or make a new ColoredConsole-Bold.ttf from the .ttx ?).

Third, I was wondering if it's possible to add a few more colors or not (i.e. 7 instead of 5 total), or if these 5 "variation selectors" are all that exist.

smartcat32 commented 4 years ago

Regarding my second question, I did manage to create a new .ttf font from the ColoredConsole-Bold.colored.ttx file that your perl script generates. Here's what I did:

1) Install Python3 for Mac if you don't already have it. 2) Install PIP: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3 get-pip.py 3) Install fonttools (https://github.com/fonttools/fonttools) by downloading it and then doing: pip install fonttools 4) Run the terminal command: ttx ColoredConsole-Bold.colored.ttx 5) Removed the old ColoredConsole-Bold.ttf font from FontBook and added the newly created one to FontBook. Then relaunched Xcode. (actually I re-targeted the new font within Xcode settings too, just in case).