sedwards2009 / extraterm

The swiss army chainsaw of terminal emulators
https://extraterm.org
MIT License
2.51k stars 116 forks source link

Support Powerline enabled fonts #77

Open sedwards2009 opened 6 years ago

sedwards2009 commented 6 years ago

The first problem is that under Linux/KDE, powerline fonts like Fira are not selectable from the Settings tab.

Second problem is that the shell integration conflicts with that from Powerline itself.

sebastiangolec commented 6 years ago

Linux/Gnome (Ubuntu 17.10) has same problem.

sedwards2009 commented 6 years ago

In the next release it will be possible to select more fonts.

sebastiangolec commented 6 years ago

Yeah, there is one font with powerline symbols, but it still looks awful.

sedwards2009 commented 6 years ago

@Gromo13 can you attach a screenshot?

sebastiangolec commented 6 years ago

example of extraterm with Powerline font

I tried almost every font included in extraterm and only this one is supporting powerline symbols.

sedwards2009 commented 6 years ago

I'm just guessing from the name of the font that it only contains those few powerline symbols and nothing else. This would explain why the letters are using some ugly default font.

Try installing a font from https://github.com/powerline/fonts which has been patched. Those monospaced patched fonts should work better.

deathtrip commented 6 years ago

On Arch Linux I have powerline-fonts installed, but the only font that works in Extraterm with powerline symbols is Hack. In other terminal emulators i get all supported fonts. Not sure if anyone can confirm the issue.

btxtiger commented 5 years ago

Also missing Consolas/Menlo/Monaco on MacOS

sedwards2009 commented 5 years ago

@btxtiger You mean those standard system fonts just are not in the list?

btxtiger commented 5 years ago

Yes, it just shows a few fonts, mainly non-mono like Arial, Comic Sans, Tahoma, Verdana

sedwards2009 commented 5 years ago

@btxtiger The commit I just put on this issue should fix the problem. It will be in the next release.

krzysztof-callstats commented 5 years ago

I am also using Hack font (on Mac), but for me the problem is that the symbols are all weirdly cut off. I have no idea why is it this way, but exactly the same font displays well in iTerm2.

image image

sedwards2009 commented 5 years ago

@kdziadowiec I have plans to change how the font and text rendering is done. There I will tackle these font compatibility problems, rendering glitches and hopefully improved speed.

MetaNite64 commented 5 years ago

I'm getting the cut off symbols as well, with the heart for battery life being hidden behind the bar displaying battery life.

selection_001

ksawerykarwacki commented 5 years ago

@sedwards2009 do you have any timeline for this issue? I would love to switch from conemu to extraterm, but i use a lot of custom symbols from nerd fonts and have look&feel set to use those powerline arrows. Maybe it is not a big isssue for most of the people but those gaps on the triangles triggers my OCD every time I look at the terminal ;)

sedwards2009 commented 5 years ago

@ksawerykarwacki There are a bunch of related glyph rendering issues at the moment which also drive me nuts. Custom fonts is part of that. The fix will be canvas based rendering instead of the current DOM based one. This will give me a lot more control over how to the drawing is done and also it should be faster too.

I've updated the Development Roadmap: https://github.com/sedwards2009/extraterm/issues/30

krzysztof-callstats commented 4 years ago

Sorry, but where exactly is it in the roadmap? I can't find it unless it is under some different name 🤔

sedwards2009 commented 4 years ago

@krzysztof-callstats It may have fallen off the map for the time being. I'm not quite sure how best to hang this. Either allow multiple fonts to be "stacked" and used, or to do it via a plugin system. The underlying code to do this mostly exists. The graphics drawing characters are custom drawn and not from a font.

The good news is that using a custom font with the extra glyphs built in might work ok. I heard that Chinese characters are now rendering better than before the summer.