Closed lcorsini closed 2 years ago
@lcorsini Thanks for the details. Nothing particular is coming to my mind right now but I will try to take a look. :smile:
Thanks, Maybe if there is no particular licensing problem you could include this TTF in your distribution (I use Terminus a Lot, it's one of the best in readability, and this TTF works cross platform even on windows and osx)
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 ttf
file not the patching. I was able to replicate the very distorted characters without antialiasing turned on, on the original ttf
and the patched ttf file.
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 The Terminus font is better without antialias and on 12pt that's why I was using it like that
@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. No matter if I download the pre-patched font or if I patch it myself (using the Terminus TTF that displays correctly).
Unpatched font:
Patched font:
System Details: macOS 10.14.3 iTerm 2 build 3.2.8 zsh (oh-my-zsh powerlevel9k theme) Terminus TTF 16pt (I've used the unpatched font and it looks fine at this size) Anti-aliasing disable for both patched and unpatched
I fixed this crap :) https://github.com/DoctorKnowsBetter/TerminessNerdFont-FixBlur
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! :+1: @DoctorKnowsBetter
I never ever bothered about bitmap fonts :-}
@DoctorKnowsBetter Which option did you use on generate?
Fonts containing bitmaps:
Examining 601 font files
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)
Maybe you could try #939 @DoctorKnowsBetter @Slabity ?
@Finii This options:
@DoctorKnowsBetter Thank you. That is what I implemented in #939.
Seems to work :-)
Previously:
With this PR applied...:
Now it looks equal.
Well, I see nothing with my terminal tilix
(which probably can do nothing with bitmap fonts).
But here, with Libre writer
:
E61A
(checked with fc-list ':charset=e61a'
.src/unpatched-fonts/Terminus/terminus-ttf-4.40.1/Regular/TerminusTTF-4.40.1.ttf
patched-fonts/Terminus/terminus-ttf-4.40.1/Regular/complete/Terminess\ \(TTF\)\ Nerd\ Font\ Complete.ttf
But someone should test that with a terminal :grimacing:
@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. :heart:
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.
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?