Skip to content
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

Some glyphs don't work, some are tiny... don't know what to do. #889

Closed
Brottweiler opened this issue Jun 3, 2014 · 10 comments
Closed

Some glyphs don't work, some are tiny... don't know what to do. #889

Brottweiler opened this issue Jun 3, 2014 · 10 comments

Comments

@Brottweiler
Copy link

I've been at this literally all day, and I just don't know what to do.

I run Archlinux, and have installed python-powerline-git.

My .Xresources is this:

URxvt*font: xft:Terminus:pixelsize=12,xft:Inconsolata\ for\ Powerline:pixelsize=12

and here is pictures of some powerlines:

My ZSH prompt

Tmux

Vim

EDIT: works now, what you see above is airline and not powerline. Removed airline and now it uses powerline

GVim

EDIT: works now, what you see above is airline and not powerline. Removed airline and now it uses powerline

Really tiny glyphs, and it is impossible to change the look or size of them...

And last, from here https://gist.github.com/agnoster/3712874 I copy pasted the "echo" command in a terminal;

echo "⮀ ± ⭠ ➦ ✔ ✘ ⚡"

and this is what I get

Anyone that can assist me here? I ran out of ideas..

@ZyX-I
Copy link
Contributor

ZyX-I commented Jun 3, 2014

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On June 4, 2014 12:52:28 AM GMT+03:00, Christoffer Tibell notifications@github.com wrote:

I've been at this literally all day, and I just don't know what to do.

I run Archlinux, and have installed
python-powerline-git.

My .Xresources is this:

URxvt*font: xft:Terminus:pixelsize=12,xft:Inconsolata\ for\ Powerline:pixelsize=12

You should be using patched Terminus, not Terminus and Inconsolata for Powerline.

and here is pictures of some powerlines:

My ZSH prompt

Tmux

Vim

GVim

Really tiny glyphs, and it is impossible to change the look or size of
them...

And last, from here https://gist.github.com/agnoster/3712874 I copy
pasted the "echo" command in a terminal;

echo "⮀ ± ⭠ ➦ ✔ ✘ ⚡"

and this is what I get

Though patched Terminus will not help you with these characters.

Anyone that can assist me here? I ran out of ideas..


Reply to this email directly or view it on GitHub:
#889

-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iQJNBAEBCgA3BQJTjjdOMBwfMDI7PjIgHTg6PjswOSAQOzU6QTA9NEA+MjhHIDxr
cC1wYXZAeWFuZGV4LnJ1PgAKCRBu+P2/AXZZIj5gEADZ1DfYTCOhHYqRsWUsC1FX
7sb4G+/X95JNqsXZTcXTLAa0bw7yGlKNfMOgjYCIVxQ7Hi4FYJxJ9Fduf8uklUSo
jmVmXYkafl7/DmTdKitSl+33NpL/gEl/saSzZIVHB0891bLw7g4ixbPiSPNQsjqb
Rll4uVviP+WQuggy7T9AQb6xA3sbVH0dxseEZjXR+kaayNpqctrCMTLQI4bg602f
gxZtwIRxEUV1RFt4L2cq0DtjtlAK5CHg9WYjm8EFAuC2b1xC+8DGhzOWsgmtFnij
MsRLktc72ktHtrYb0k2SQNsZW0rZUid9swUHNNT7sta0UovfPL/7ZJB58HlqBqBn
9y+XCYO5n+a4ptKpZgYzPWOOpdNt0HwpR25PTxJI8w9UXshcxIfDDyEwukxnREnx
E3/AJmz0Rqpw8tEF663e8040kUZErLGJS7Hcvy6i1jfUKworwVTT8G1iC1eE9mZs
aHs8OTv6FV9kynViot7x9rp3PnQ/5doTot4sNwfqyo6ZQWI32QmSkmysDl+iWX8B
RWlezwAMWN9jIbQzpP13AyKM04IDq8HKpKdm3Jwuyr9/3cSSyw3G4NJybOTFFR1M
b7fJH/bV0Zo2i0+H55jrJiAwcrAl6AztJ0zwRy4LRN7ysPQR0VeelhZxHis98OIX
R1Z3yUOr6KTogMRUUheHpg==
=0Kfc
-----END PGP SIGNATURE-----

@Brottweiler
Copy link
Author

I'd love to use Patched Terminus, but I could not get it to work. How do I use it?

@ZyX-I ZyX-I added bug labels Jun 4, 2014
@ZyX-I
Copy link
Contributor

ZyX-I commented Jun 4, 2014

@Brottweiler To make it work partly all I had is to place patched font into ~/.fonts and run fc-cache -vf ~/.fonts. But for some reason this made terminal only use one variant of this font (i.e. either bold or regular, but not both), so I had to remove non-patched version and name it Terminus, not as Terminus for powerline or something like this.

Though after looking at the images I do not think you are using powerline in vim or gvim: powerline does not show [No Name] and [] around unix. Tmux problems may be same as in #877.

@Brottweiler
Copy link
Author

@ZyX-I Buw how do I actually use the patched Terminus font? It doesn't have a OTF file, just a bunch of ter-powerline-powerline-x*.pcf.gz files..

Though after looking at the images I do not think you are using powerline in vim or gvim

You are correct. I had airline installed, and airline "overwrote" powerline. Sorry, it works properly now in vim. But the other issue persist.

@ZyX-I
Copy link
Contributor

ZyX-I commented Jun 4, 2014

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On June 4, 2014 9:56:07 AM GMT+03:00, Christoffer Tibell notifications@github.com wrote:

@ZyX-I Buw how do I actually use the patched Terminus font? It doesn't
have a OTF file, just a bunch of ter-powerline-powerline-x*.pcf.gz
files..

Terminus font does not have an official OTF version. Check out how these files are placed in your system (I have it in /usr/share/fonts, but there must be a tool that lists files belonging to some package) (you should already have unpatched version) and replicate this placement in $HOME/.fonts with patched one.


Reply to this email directly or view it on GitHub:
#889 (comment)

-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iQJNBAEBCgA3BQJTjrtSMBwfMDI7PjIgHTg6PjswOSAQOzU6QTA9NEA+MjhHIDxr
cC1wYXZAeWFuZGV4LnJ1PgAKCRBu+P2/AXZZIjmyEACnMlogeW8iG3UhW2TuDAON
EYI3Q+LnJmDSThpujmK+Muv25ZsnF4wTornlQGXHlQFAQySUmxNk+Mh0B40eX/AX
5xqAf7l4ddlw4wVbn26wFjWgIJyMWPgD9Kflk56LlQT+McLk3fvZAmOE8PdfDE82
9d6YmgRJ/Gb+D3h/REdLYgwIJnhRhYRUXf+AzNEtNrkYFl3QHN48JNPL7QnZCOxg
d6c1O8q7CRgLb8R2Sdz8bgX2CXwV8LEji6qxUAD2BeciKRIjVHOCApCZjNtyh7Bu
sx8cBKeNqKOfQabYord9ZtjrWfJ545/nQ3oI6kc+sAIorfS+3uq18uE41Oaw8idf
xr6c2fRPDRERiRHDkJvWntkb2eGhSBteQ6Y7bQ9B0K92srDAQgACR33fUIMAJOte
lSya3zDqOgmuZjspsDL1ERrRRRGduyf9kyNJXVt2hFsEiPIOt2CtJQSlUf35ucSC
/WuNvYWoXsjHPLaW9mVEpeh2MSF/GXoz/lET4JUV+FvZH3qX5xN2LnRVibPm6dla
isuNe3EIJak9UTEtC+XJut1d9dWzjirhqdfq2GHXN6ARZwOtcbP3XaOynHk9IPMT
YMTbjoNiXM8jVltGUo2naIk3+vl+0MzBwm3d/8BsechMvZS6VfcNBzIymX6HvBq5
ZZP7bHYlx6N+zEZoaratEA==
=JwqW
-----END PGP SIGNATURE-----

@Brottweiler
Copy link
Author

Yes, they are in /usr/share/fonts/local and the names are ter-powerline-powerline-x*.pcf.gz

So for example, there is ter-powerline-powerline-x12b.pcf.gz and ter-powerline-powerline-x12n.pcf.gz

12 == the size
b == bold
n == normal

But I don't know how to actually use it. How to "apply it" to .Xresources.

@Brottweiler
Copy link
Author

Well, I got the patched Terminus font to work I guess... But with it, I have no bold fonts, but otherwise it looks the same. And it has the glyphs. But the glyphs look identical to the ones I already have, and there are still some missing.

For the record, I had ro tun xset +fp /usr/share/fonts/local then xset fp rehash.

If I run the st terminal emulator, using just regular Terminus (maybe it's patched? dunno) I see these missing glyphs, but not in urxvt.

The missing glyphs are those you can see in the tmux powerline. The clock, and that other thing. Also, problem remails where the glyphs especially from when you are in a git repo, are incredibly small.

@ZyX-I
Copy link
Contributor

ZyX-I commented Jun 4, 2014

But with it, I have no bold fonts, but otherwise it looks the same.

I was warning you that just installing the font is not enough: I do not know why, but I had to remove it:

But for some reason this made terminal only use one variant of this font (i.e. either bold or regular, but not both), so I had to remove non-patched version and name it Terminus, not as Terminus for powerline or something like this.

I cannot have posted non-renamed version to powerline-fonts repository though. To rename the font you need to use pcf2bdf and bdftopcf tools: something like this:

cat "${old}.pcf.gz" | gunzip | pcf2bdf | sed 's/old name/new name/' | bdftopcf | gzip > "${old/old name/new name}.pcf.gz" && rm "${old}.pcf.gz"

(I have not tested the command though)

The missing glyphs are those you can see in the tmux powerline. The clock, and that other thing. Also, problem remails where the glyphs especially from when you are in a git repo, are incredibly small.

None of the font patchers add glyphs not to private use area. Especially they are not adding glyphs we do not use (and glyphs in ⮀ ± ⭠ ➦ ✔ ✘ ⚡ are AFAIR not used by us. Not all definitely).

I do not know why @Lokaltog did not create a font patcher that adds glyphs that are missing in font, but that are not in private use area. But I (bitmap fonts patcher is my work) did not add them because I did not explicitly add any glyphs at all: bitmap font patcher is just opening PowerlineSymbols.otf font and patching provided font with all glyphs it finds there.

@Brottweiler
Copy link
Author

No, you're right, those glyphs in perticular is from the agnoster (oh-my-)zsh theme. I assumed the Powerline patched fonts included them.

It appears as if all those glyphs, and the ones on this page shows just fine in GVim. They show, but very tiny, in regular vim running in urxvt.

That "clock" glyph that does not show in tmux, shows in gvim when I open the default theme file for tmux in it, but it does not show in vim running in urxvt (obviously).

So my main problem is...

  1. That clock glyph (i think it's the only one?) does not show in urxvt
  2. All other glyphs are incredibly small.

It seems like it's urxvt's problem, since it shows absolutely fine in GVim...

In my .vimrc I have set gfn=Terminus\ Regular\ 9.

@Brottweiler
Copy link
Author

Closing this since it seems to be an rxvt-unicode issue since the issue doesn't exist in different terminal emulators...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants