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

Open
opened 2015-04-12 08:03:45 +02:00 by ghost · 7 comments
ghost commented 2015-04-12 08:03:45 +02:00 (Migrated from github.com)

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.

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. ## <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10968020-is-there-a-way-to-add-a-ttf-font?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github). </bountysource-plugin>
ali1234 commented 2016-02-06 21:38:24 +01:00 (Migrated from github.com)

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

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 commented 2016-10-14 02:45:57 +02:00 (Migrated from github.com)

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

This particular font is redundant with the way cool-retro-term already renders scanlines.
win8linux commented 2017-09-01 06:59:41 +02:00 (Migrated from github.com)

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).

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 commented 2017-10-29 08:48:00 +01:00 (Migrated from github.com)

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...

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 commented 2018-01-04 13:32:16 +01:00 (Migrated from github.com)

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

terminus has newer versions, than what you ship: http://files.ax86.net/terminus-ttf/files/
pazos commented 2018-07-13 04:56:19 +02:00 (Migrated from github.com)

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.

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 commented 2020-01-14 10:12:52 +01:00 (Migrated from github.com)
http://sid.ethz.ch/debian/cool-retro-term/2020/ system fonts are supported!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#240
No description provided.