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

Is there a way to add a TTF font? #240

Open
ghost opened this issue Apr 12, 2015 · 7 comments
Open

Is there a way to add a TTF font? #240

ghost opened this issue Apr 12, 2015 · 7 comments

Comments

@ghost
Copy link

ghost commented Apr 12, 2015

I found this really sweet VT220 font: http://christfollower.me/misc/glasstty/

Is there a way to add it? When I modify app/qml/Fonts.qml and add an entry for the TTF file, CRT outputs: qrc:/PreprocessedTerminal.qml:117:9: QML FontLoader: Cannot load font: "qrc:/fonts/VT220/VT220.ttf," but doesn't tell me much more about it.

This isn't a bug, more of a feature request or a good thing for the wiki.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ali1234
Copy link

ali1234 commented Feb 6, 2016

You have to add the font file to app/qml/resources.qrc as well. And you also need to define the font in FontsScanlines.qml and FontsPixel.qml

@kilobyte
Copy link

This particular font is redundant with the way cool-retro-term already renders scanlines.

@win8linux
Copy link

Is it possible to replace a font already in CRT? I'm planning to replace the included normal Terminus font with a version patched for Powerline (more supported characters).

@ganzuul
Copy link

ganzuul commented Oct 29, 2017

You can replace and add fonts. However at least the Hack font doesn't look right. I have tried re-compiling with different settings for it in Fonts.qml a few times but my changes don't seem to make a difference. Perhaps make clean doesn't properly clean...

@alexmyczko
Copy link
Contributor

terminus has newer versions, than what you ship: http://files.ax86.net/terminus-ttf/files/

@pazos
Copy link

pazos commented Jul 13, 2018

a good option for fonts, at least on mac, is to store them outside a resource file (like in cool-retro-term.app/Contents/Resources/fonts) and parse fonts available when the application starts.

For linux I think the same should apply, but as linux install fonts in a common place we're facing a problem trying to scan a bunch of fonts at start.

@alexmyczko
Copy link
Contributor

alexmyczko commented Jan 14, 2020

http://sid.ethz.ch/debian/cool-retro-term/2020/

system fonts are supported!

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

6 participants