-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Terminus distorted glyphs after patch #86
Comments
@lcorsini Thanks for the details. Nothing particular is coming to my mind right now but I will try to take a look. 😄 |
Thanks, |
Display a warning if the terminal supports less than 256 colors.
Yes if the license is fine it would be better to just try to patch the TTF like you have done 😄 As for the issues you mentioned I just haven't gotten around to looking into it yet 😞 |
@lcorsini Can you give more info on the screenshot you provided? What system, editor etc? This appears to be a problem with the Another option would be to patch the bitmap fonts but this would require more work, something similar to how https://bitbucket.org/ZyX_I/bitmap-font-patcher works |
Ok, in the meantime I moved away from that setup, it was on windows, the editor is vim, and probably this was under putty |
@lcorsini Thanks for the details. Yeah I can see that being a bitmap font that would be the typical usage. I am marking this as 'future' as I believe it will take a good amount of effort to be able to patch the bitmap version of this font and I think most people will have antialiasing on. |
I have the same problem with patched Terminus TTF it looks all distorted. System Details: |
I fixed this crap :) |
Nice! Did you make a fix for the font patcher itself or did you end up fixing it manually? Can you get the change pulled into this repo? |
I did it manually. The script (font-patcher) does not transfer bitmap layers, I had to create and transfer all bitmap layers from the original Terminus. |
Nice! 👍 @DoctorKnowsBetter I never ever bothered about bitmap fonts :-} |
@DoctorKnowsBetter |
Fonts containing bitmaps:
|
[why] Bitmaps existing in a font are discarded. The font-patcher script just cares about outline fonts. [how] If the sourcefont has bitmaps, do save them into the patched font. Note that this does not generate bitmaps for the patched-in glyphs (icons). [note] Fonts probably affected in src/unpatched-fonts: bitmap (11,) (gohufont-11) bitmap (14,) (gohufont-14) bitmap (11,) (gohufont-uni-11) bitmap (14,) (gohufont-uni-14) bitmap (7, 9, 10, 12, 14, 18, 24) (ProFontIIx) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-Bold Italic-4.40.1) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-Bold-4.40.1) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-Italic-4.40.1) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-4.40.1) Fixes: #86 Reported-by: DoctorKnowsBetter Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
Maybe you could try #939 @DoctorKnowsBetter @Slabity ? |
@Finii This options: |
@DoctorKnowsBetter Thank you. That is what I implemented in #939. |
Well, I see nothing with my terminal But here, with Libre
But someone should test that with a terminal 😬 |
@Finii Yes, there is such a problem, some terminals do not see bitmap layers in TTF fonts. Terminals that I use and tested by me (fonts are displayed correctly):
|
So the fix works? Then i will merge? |
@Finii I guess so. If someone does not display fonts correctly in the terminal, then the issue should be resolved with the developers of this terminal. Most terminals will not have these problems. |
Great! Thanks for testing and for showing your fix! Without it we would not have the PR. ❤️ |
[why] Bitmaps existing in a font are discarded. The font-patcher script just cares about outline fonts. [how] If the sourcefont has bitmaps, do save them into the patched font. Note that this does not generate bitmaps for the patched-in glyphs (icons). [note] Fonts probably affected in src/unpatched-fonts: bitmap (11,) (gohufont-11) bitmap (14,) (gohufont-14) bitmap (11,) (gohufont-uni-11) bitmap (14,) (gohufont-uni-14) bitmap (7, 9, 10, 12, 14, 18, 24) (ProFontIIx) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-Bold Italic-4.40.1) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-Bold-4.40.1) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-Italic-4.40.1) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-4.40.1) Fixes: #86 Reported-by: DoctorKnowsBetter Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
[why] Bitmaps existing in a font are discarded. The font-patcher script just cares about outline fonts. [how] If the sourcefont has bitmaps, do save them into the patched font. Note that this does not generate bitmaps for the patched-in glyphs (icons). [note] Fonts probably affected in src/unpatched-fonts: bitmap (11,) (gohufont-11) bitmap (14,) (gohufont-14) bitmap (11,) (gohufont-uni-11) bitmap (14,) (gohufont-uni-14) bitmap (7, 9, 10, 12, 14, 18, 24) (ProFontIIx) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-Bold Italic-4.40.1) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-Bold-4.40.1) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-Italic-4.40.1) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-4.40.1) Fixes: #86 Reported-by: DoctorKnowsBetter Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference. |
[why] Bitmaps existing in a font are discarded. The font-patcher script just cares about outline fonts. [how] If the sourcefont has bitmaps, do save them into the patched font. Note that this does not generate bitmaps for the patched-in glyphs (icons). [note] Fonts probably affected in src/unpatched-fonts: bitmap (11,) (gohufont-11) bitmap (14,) (gohufont-14) bitmap (11,) (gohufont-uni-11) bitmap (14,) (gohufont-uni-14) bitmap (7, 9, 10, 12, 14, 18, 24) (ProFontIIx) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-Bold Italic-4.40.1) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-Bold-4.40.1) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-Italic-4.40.1) bitmap (12, 14, 16, 18, 20, 22, 24, 28, 32) (TerminusTTF-4.40.1) Fixes: ryanoasis#86 Reported-by: DoctorKnowsBetter Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
Hello,
Since Terminus doesn't seem to be provided because of some issues in patching the original bdf files,
I tried to use the script to patch this TTF version http://files.ax86.net/terminus-ttf/ which includes at least the basic powerline symbols
the patch works, but the font gets very distorted as you can see in the screenshot (this font is very clear at 12points without antialiasing)
any ideas on why this happens?
The text was updated successfully, but these errors were encountered: