10

I rather dislike the available tty fonts and would rather use Menlo, which is what I use in OS X's Terminal. Menlo is in a .ttc format, but (from the contents of /usr/share/consolefonts) Linux seems to require .psf.gz fonts, with different files for each combination of style and size. How do I convert it to the proper format and set it to be used as the font in ttys?

(I have a PowerBook G4 running Ubuntu Server 12.04 and an Intel MacBook Pro running OS X Mountain Lion.)

4

There is no need to worry about "decomposing" a TTC font in various separate fonts, as fontconfig knows how to read such files.

In other words, you can simply create a subdirectory named ~/.fonts (that is, .fonts inside your home directory) and copy your font file there. It will be picked up by fontconfig and you will be able to use it just fine, provided that your terminal emulator knows how to use xft.

Since you mention Debian, the packages gnome-terminal, rxvt-unicode (all variants, except lite), and others would support such a font. See, for example:

System using DejaVu with terminal using Menlo, from a TTC (see the left window)

Addendum

Since you mention using Debian (part 2), you may want to inspire yourself in the package that I maintain of the font Anonymous Pro and create a personal package that you can use to deploy the font in your own systems.

I personally do that for fonts that I take from my MacOS X iBook and from Windows. (Of course, the packages are only for your own private use: you should not distribute them, unless you get a license from each font designer).

For console-only ("text screen")

If you wish to create a font for the "text screen" only, then you may want to check the howto from Arch.

  • Gah. Since this question was posted, I've switched to Ubuntu Server… XD Do you know if your answer will work under that? – Blacklight Shining Feb 26 '13 at 5:23
  • @BlacklightShining, yes, it will, as the fundamentals are the same (and some packages even share the same maintainers). – rbrito Feb 26 '13 at 5:26
  • Doesn't it need to be in a systemwide directory? Like /etc/fonts, maybe? (I did try making a ~/.fonts and putting the exported .ttc file there, but it didn't show up in the list.) – Blacklight Shining Feb 26 '13 at 5:33
  • @BlacklightShining, It only needs to be in a systemwide directory if you want it to be available for all users. By the way, you should NOT install a font under /etc as that directory is specifically meant for configuration files. – rbrito Feb 26 '13 at 5:34
  • …I do want it to be available for all users? (Does it even get changed to a user-specific font after you log in?) And no go on the /etc/fonts, got it. XD – Blacklight Shining Feb 26 '13 at 5:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.