Trying to make my own powerline glyphs - background bleeds over top border

68 views
Skip to first unread message

S0lll0s

unread,
Feb 22, 2016, 12:53:23 PM2/22/16
to powerline
Hey there, I'm trying to make my own "slant" style powerline glyphs. I figured out how to do it in fontforge, but the background color bleeds over (or out from under) the powerline glyph at the top:

 (the first glyph has a green fg and blue bg, and you can see the 1px blue line atop the glyph).

I tried extending the top of the glyph straight up by adding a full-width block at the top, but that didn't change anything.

Is there anything that can be done about this or is it a general limitation with fonts or the xft rendering used in urxvt (this doesn't seem to happen in lemonbar)?

S0lll0s

unread,
Feb 22, 2016, 12:55:40 PM2/22/16
to powerline
weeeeeelll.... nevermind. I increased the height of the top-block (by a lot) and now it works.

Nikolay Aleksandrovich Pavlov

unread,
Feb 22, 2016, 1:12:14 PM2/22/16
to S0lll0s, powerline
Good. Do you plan this in core?

--
You received this message because you are subscribed to the Google Groups "powerline" group.
To unsubscribe from this group and stop receiving emails from it, send an email to powerline-supp...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

S0lll0s

unread,
Mar 19, 2016, 4:17:18 PM3/19/16
to powerline, s0lll...@gmail.com
Response per mail got lost apparently. I didn't consider it, but if you want to have them in there I could provide an alternate set of glyphs for the powerline/fontpatcher repo and/or a set of combined fonts with my glyphs.

Nikolay Aleksandrovich Pavlov

unread,
Mar 19, 2016, 5:55:50 PM3/19/16
to S0lll0s, powerline
Do you mean, that both old and new glyphs will be available in fontpatcher/combined fonts? That would be good.

If you want, I can add you to fontpatcher as a collaborator; in any case I cannot review much there, except for the code style.

s-ol

unread,
Mar 21, 2016, 11:39:58 PM3/21/16
to powerline
I don't know how much unused glyphs there are in the User unicode block, but if there are four left I could add these alongside the original ones and provide a unicode-alt theme that uses them instead for example.

s-ol

unread,
Mar 22, 2016, 7:37:05 AM3/22/16
to powerline
with my font stack http://jrgraphix.net/r/Unicode/E000-F8FF shows that E0E0-E0E3 are free, I could use those maybe.

Nikolay Aleksandrovich Pavlov

unread,
Mar 22, 2016, 1:32:16 PM3/22/16
to s-ol, powerline
2016-03-22 14:37 GMT+03:00 s-ol <s0lll...@gmail.com>:
> with my font stack http://jrgraphix.net/r/Unicode/E000-F8FF shows that
> E0E0-E0E3 are free, I could use those maybe.

There is more then one Private Use Area: U+F 0000-U+F FFFF and U+10
0000-U+10 FFFF are additional ones. I do not know how good different
terminal emulators support displaying characters from these areas
though: e.g. echoing U+F 0000 clearly shows that zsh (5.2) thinks that
this character has double width, while konsole displays it as single
width which makes it impossible to use U+F0000 for zsh prompt (same
for bash-4.3_p42-r1). Python-3.4.3-r1 and -2.7.10-r1 say that width of
this character is ambiguous (AFAIR they are right here).

Also no idea how @Lokaltog was choosing what code points to use for
existing glyphs.

>
> Am Dienstag, 22. März 2016 04:39:58 UTC+1 schrieb s-ol:
>>
>> I don't know how much unused glyphs there are in the User unicode block,
>> but if there are four left I could add these alongside the original ones and
>> provide a unicode-alt theme that uses them instead for example.
>
Reply all
Reply to author
Forward
0 new messages