Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] support for ttf fonts? #2

Open
japrogramer opened this issue Nov 22, 2017 · 3 comments
Open

[question] support for ttf fonts? #2

japrogramer opened this issue Nov 22, 2017 · 3 comments

Comments

@japrogramer
Copy link

Hello, since this terminal is opengl rendered. could support for ttf fonts be added?

@sapphire-arches
Copy link
Owner

The font name in config.h is a FontConfig query string and I just pass the result to Freetype2 so you should be able to point that at pretty much whatever font file you like.

@japrogramer
Copy link
Author

Thank you, it looks like the st terminal source also has this setting but they have it configured differently. They don't use a separate variable for the font size.

static char font[] = "mononoki:pixelsize=16:antialias=false:autohint=false";

@sapphire-arches
Copy link
Owner

Yeah, because I knocked this together so quickly it's not really super clean. Setting font size using that option broke things and I haven't tracked down why that is just yet.

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

No branches or pull requests

2 participants