Use or convert .ttf font for console use in FreeBSD

8,381

It would depend upon the font formats that FreeBSD accepts in usr/share/syscons/fonts.

You can use FontForge to convert a TTF font into other formats. According to this blog post, FreeBSD accepts the Slackware .fnt.gz format (the .gz just indicates it is zipped).

The Linux console uses .psf.gz fonts. You might try one of those to see if it works, if so you could use PSF Tools to do the final conversion to that format.

If all that goes to plan, you can tell the console to use it with the vidcontrol command and then, if you wish to make it permanent, add it to your rc.conf. The blog post linked to above has the details.

Share:
8,381
Azendale
Author by

Azendale

Updated on September 18, 2022

Comments

  • Azendale
    Azendale almost 2 years

    I have a monospace .ttf font I really like (UbuntuBeta Mono). Is there any way I can use it (or convert first and then use, if needed) for the console in freeBSD? I know there is usr/share/syscons/fonts, but it looks like they might be a different format? Once I install the font, how do I tell the console to use it?