sdushantha / fontpreview

Highly customizable and minimal font previewer written in bash
MIT License
909 stars 39 forks source link

[Feature Request] Add MacOS support #15

Closed sdushantha closed 4 years ago

sdushantha commented 4 years ago

So far I have tried 3 image viewers:

To change the focus from the image viewer back to the terminal, we can of course use Apple Script.

sdushantha commented 4 years ago

Small update: Screenshot 2020-02-15 at 13 41 36

I found out that imagemagick is not able to find fonts without Ghostscript on macOS. After installing Ghostscript (brew install gs), doing convert -list font gave me the fonts.

Something else that I found out is that mktemp works differently on macOS. As you see in the screenshot (title of Preview.app), mktemp is not replacing the XXXXXX with the random letters for files.

sdushantha commented 4 years ago

Dropping this idea, because it takes too much time beceause I have to turn off and turn my laptop again to switch OS, to test the code on macOS and then test it on Linux to make sure it works fine. I am going to keep the macos-beta branch in case someone wants to work on it or if I ever go back to working on it :)

sdushantha commented 4 years ago

I will not be creating a macOS version because for some strange reason, imagemagick is not able to find all the installed fonts on macOS. So I dont see the point of making a macOS version if the user cant see all their fonts.

CC @XOKP

XOKP commented 4 years ago

Thanks for your information, your effort on it is appreciated.