-
Star
(168)
You must be signed in to star a gist -
Fork
(61)
You must be signed in to fork a gist
-
-
Save rogerleite/99819 to your computer and use it in GitHub Desktop.
#!/bin/bash | |
# Install Monaco font in Linux | |
# Version from nullvideo https://gist.github.com/rogerleite/99819#gistcomment-2799386 | |
sudo mkdir -p /usr/share/fonts/truetype/ttf-monaco && \ | |
sudo wget https://gist.github.com/rogerleite/b50866eb7f7b5950da01ae8927c5bd61/raw/862b6c9437f534d5899e4e68d60f9bf22f356312/mfont.ttf -O - > \ | |
/usr/share/fonts/truetype/ttf-monaco/Monaco_Linux.ttf && \ | |
sudo fc-cache |
There is an issue with this Monaco_Linux.ttf file.. On Ubuntu, in some applications (VSCode the editor, Chrome the browser), the font is pixelated when font size is 14 (other sizes like 14.5 is fine), and in others (Tilix the terminal emulator) the font is fine.
One proposed solution is disabling the embedded bit map: https://askubuntu.com/questions/386056/monaco-is-pixelated-in-web-pages, but it doesn't work for me.
I finally solved the issue by downloading the Monaco.ttf file from this source: https://www.fontpalace.com/font-download/monaco/ (note: I'm not sure if it's safe, though). Then, move thie file to /usr/share/fonts/truetype/ttf-monaco/
as suggested by the author here, then run sudo fc-cache -f -v .
in that directory to make the font effective. You may need to restart the applications to see the change.
There is an issue with this Monaco_Linux.ttf file.. On Ubuntu, in some applications (VSCode the editor, Chrome the browser), the font is pixelated when font size is 14 (other sizes like 14.5 is fine), and in others (Tilix the terminal emulator) the font is fine.
One proposed solution is disabling the embedded bit map: https://askubuntu.com/questions/386056/monaco-is-pixelated-in-web-pages, but it doesn't work for me.
I finally solved the issue by downloading the Monaco.ttf file from this source: https://www.fontpalace.com/font-download/monaco/ (note: I'm not sure if it's safe, though). Then, move thie file to
/usr/share/fonts/truetype/ttf-monaco/
as suggested by the author here, then runsudo fc-cache -f -v .
in that directory to make the font effective. You may need to restart the applications to see the change.
Thanks. This worked for me too.
Thanks!!!
It works on my manjaro 21. Good!
There is an issue with this Monaco_Linux.ttf file.. On Ubuntu, in some applications (VSCode the editor, Chrome the browser), the font is pixelated when font size is 14 (other sizes like 14.5 is fine), and in others (Tilix the terminal emulator) the font is fine.
One proposed solution is disabling the embedded bit map: https://askubuntu.com/questions/386056/monaco-is-pixelated-in-web-pages, but it doesn't work for me.
I finally solved the issue by downloading the Monaco.ttf file from this source: https://www.fontpalace.com/font-download/monaco/ (note: I'm not sure if it's safe, though). Then, move thie file to
/usr/share/fonts/truetype/ttf-monaco/
as suggested by the author here, then runsudo fc-cache -f -v .
in that directory to make the font effective. You may need to restart the applications to see the change.
It might actually be better to download from your url because the font contains copyright. But the font provided by the OP copyright is removed which is kinda sus.
Thanks!!!
It works on Ubuntu 24.04
Thanks)))