-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
[VT] Add support for downloadable soft fonts #467
Comments
While that's a really great idea, I first have to finish my current work-in-progress PR. @j4james, what did you use to test'n'verify that your PR is correct? Or isn't it like 100% conform but a workable solution for modern times? When I'm going to do that I'd like NOT to diverge of what you have already implemented (ideally without being forced to log into Windows) :-) |
OK, this is kind of complicated. I collected fonts from all over the place, that were originally designed for different terminals. Each terminal uses a different cell size, so fonts typically only work on the system they were designed for. However, I wanted to be able to support all of them, so I try to detect the cell size they were originally targetting, and then scale up or down to match our native resolution. In some cases this is reasonably straightforward, because the dimensions are defined in the Anyway, if you want samples to test with, here are some of the places I got my fonts (you may need to lookup some of these on archive.org if the links are dead):
I don't think I got all of them to work perfectly though. In particular I remember some that were targetting printers which I wasn't even trying to detect, so they didn't come out quite right (still readable - just not fitting the text cell perfectly). |
This CMatrix fork is also a nice test case: |
Nice. Thanks! :) |
Abstract
Starting with the VT220 terminal, it was possible for apps to define their own "soft fonts", also known as dynamically replaceable character sets (DRCS). You would download the font to the terminal with a DECDLD escape sequence, and assign it a character set ID that could then be designated via the usual SCS escape sequences.
Motivation
Ability to download fonts such as from https://vt100.net/dec/vt320/fonts.
Specification
See microsoft/terminal#10011 and it's related issue microsoft/terminal#9164
The text was updated successfully, but these errors were encountered: