Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Use ttf fonts instead of plan9 #6

Closed
i-bsd opened this issue Apr 10, 2019 · 3 comments
Closed

Use ttf fonts instead of plan9 #6

i-bsd opened this issue Apr 10, 2019 · 3 comments

Comments

@i-bsd
Copy link

i-bsd commented Apr 10, 2019

Any reason why cure.font is being used instead of adding a regular font path to a ttf?

Tried changing plan9font to xgraphics.ParseFont in x.go. It compiled fine but crashes when run.

@CamilleScholtz
Copy link
Owner

CamilleScholtz commented Apr 12, 2019

The golang ttf drawer doesn't support bitmap fonts, and cure.ttf is a bitmap ttf font. (golang/freetype#52).

I have tried literally all the various font implementations and the plan9 was the best, besides the fact that you manually have to port every font/character, lol.

@CamilleScholtz
Copy link
Owner

Melonbar now uses plan9 fonts, which should be a bit more workable on linux.

@alexmozaidze
Copy link

alexmozaidze commented May 27, 2020

So basically, if I want to use different font, I'll need to copy the one I want to runtime/fonts directory and edit fpl variable in x.go? From what you say here and from the fonts extension in runtime/fonts I can assume that I need a bdf format font for it to work properly, but where can I find, for instance, Liberation fonts in bdf format? All of the fonts I have installed are in ttf format.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants