How to install a font onto cygwin terminal

3

2

I really like Dejavu font. And I want to make it available on cygwin terminal. But I don't know how to install this font. Can anyone help?

Aaron Shen

Posted 2015-03-09T10:02:58.000

Reputation: 604

Answers

5

I don't know how to install this font

  1. Open the folder containing the .ttf files using explorer.

  2. Right click on the font file and select "Install".

Note:

  • You can install multiple fonts at the the time by selecting them, then right click and select "Install".

    enter image description here


I want to make them available in the Cygwin terminal.

To use these font in the Cygwin minty terminal:

  1. Right click on the minty title bar, then click "Options".

    enter image description here

  2. Select "Text" on the left side, then click the "Select" button.

    enter image description here

  3. Select the DejaVu font you want using the font selection dialog.

    enter image description here

  4. Press "OK" twice.

DavidPostill

Posted 2015-03-09T10:02:58.000

Reputation: 118 938

2This doesn't work for me. After installing new fonts in Windows 8, the list of fonts in the mintty dialog does not change. I click on "Show more fonts" but am unable to change anything. – hourback – 2016-02-09T17:09:22.977

Have you tried running as Administrator? – DavidPostill – 2016-02-09T17:10:52.033

Thanks for your response! 1) I meant to say Windows 7. 2) Tried running as Administrator but still didn't see any new fonts and wasn't able to do anything after clicking "Show more fonts". 3) In Control Panel -> Fonts -> Font settings, I unchecked "Hide fonts based on language settings" and more fonts were visible within Cygwin, but not all of them. :-/ – hourback – 2016-02-09T17:59:07.923

Hmm. It works fine here with Windows 7. What font are you trying to use? Can you use the font in other programs? – DavidPostill – 2016-02-09T18:05:53.960

@hourback It looks like you can only use fixed-pitch fonts. – DavidPostill – 2016-02-09T18:08:58.733

Ah, okay. I was trying to use Roboto. I typed that into my .minttyrc and it loaded, but didn't look great. :-) I guess that's what's happening, that the list of fonts is being filtered (?). Thanks for your help. – hourback – 2016-02-09T18:11:00.770

1@hourback Yes, it is being filtered to show only fixed-pitch fonts – DavidPostill – 2016-02-09T18:29:11.027

I had some trouble picking the correct font name, and realised, the one to use is not the file-name, nor the name shown in the font-list, but rather the name shown in the font-preview window. See https://github.com/mintty/mintty/issues/507#issuecomment-358638708

– exhuma – 2018-01-18T12:58:24.547

8

I had the same issue, specifically I wanted to use Roboto Mono with mintty. I had the font installed but it didn't show up in mintty's font selection dialog. Upon further digging I found this helpful tip on mintty's github page:

To provide additional fonts for use with mintty, monospace fonts can be installed in Windows. Note that font installation in X11 does not make a font available for mintty as mintty is not an X windows application. Some monospace fonts are not explicitly marked as such in the font file. In that case the font will not be listed in the mintty Options – Text – Font selection menu. It an still be used by explicit selection, e.g.:

mintty -o Font="Linux Libertine Mono"

On my particular box I edited the launch options of mintty as follows:

C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -o Font="Roboto Mono" -

spt5007

Posted 2015-03-09T10:02:58.000

Reputation: 81