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
Load font from storage? #901
Comments
I see the use case but by the paradigm of Windows and considering that mintty is a Windows application, fonts need to be installed in Windows. There is hardly a way to change this. Rather than using Windows font rendering, you would have to integrate some 3rd-party font rendering engine (e.g. Pango) and then output graphics instead of text, which might make output considerably slower in addition. |
Maybe you'd like to try https://www.no-nonsens.nl/temporary-font-manager/. |
Warning: Before doing anything in school pc ask teachers first. I've learnt it from past. |
Nah, the teachers dont know shite really. Only two staff in the DISTRICT i
would ask first
The School Computer Science teacher, (could work for District IT if he
wished)
And the District Head of IT, Whom we email back and forth consistently.
Simply because he likes keeping tabs on the technologically advanced
students.
—Merith
|
@mintty that font loader actually appears to work. Going to send it to my District IT to see if it able to be used on the locked down system |
For the library approach, https://en.wikipedia.org/wiki/Category:Text_rendering_libraries lists some that might be suitable, in theory. |
okay, that label |
Actually, this turned out to be much easier, using Windows function AddFontResourceEx. |
Wouldnt it be easier to read minttyrc file from the default location? AS i generally use mintty with msys2, and PortableAppsPlatform, the latter does not support per app command arguments |
There are multiple default locations. The $APPDATA/mintty location is not portable. The /usr/share/mintty location can be used, of course, as a portable invocation will create its own portable cygwin environment. I'll adapt the docs. |
alright, thanks for the information, |
Actually, my comment above wasn't well-crafted but the docs are OK. I could mention /usr/share/mintty explicitly in the wiki Tips file in case that's not obvious. |
Yeah, that would be a good idea, definately would bring more awareness to this new feature |
Released 3.4.1. |
Basically, i want to install a font into my msys system, and have mintty load said font without it being installed on the Windows PC, this is useful because i intend on taking my msys2 setup with me to my school. where i wont have Adminperms, or even cmd.exe shell access. I plan on storing the font in
/opt/fonts/hack.ttf
The text was updated successfully, but these errors were encountered: