3 ms·
I want to use ttf fonts on my Linux console. Is that possible?
by fxfan 8y ago
I want to use ttf fonts on my Linux console. Is that possible?
- aasasd 8y agoIt might be, since the console mode still can display graphics, e.g. Tux or the distro logo on boot―afaik it's done via the framebuffer driver. So you'd need to hijack the console mode, draw characters using a TTF-capable library, and output the result to the framebuffer. Haven't heard of anything readymade in this vein, though. The more pertinent question, however, is “why?”, if you could boot at least bare X and xterm instead.
- zokier 8y agokmscon supports text rendering with pango library, I think it has fairly wide font support.
- rleigh 8y agoI'm unaware of tools to directly do this. Many years ago I wrote a tool to load a font with freetype and render it directly to the framebuffer. Would be relatively simple to do the same and dump out a subset as a psf font. Or perhaps even to add this functionality to kbd setfont(8) directly.