Skip to content

Commit a8ebb80

Browse files
committed
Powerline: Improve rendering at small size/hidpi
These changes to the Powerline separator glyphs is the result of studying the ones from DejaVu Sans Mono and Fantasque Sans Mono which appear seamless, without gaps or points extending above and below the line. We make the outlines slightly larger than the bounding box to cause the renderer to overlap the character with the surrounding ones, eliminating the gaps. Experimentation with different sizes and shapes was performed in #234 under several renderers and applications to try to get the most consistency across platforms. Closes #33
1 parent 12806fd commit a8ebb80

File tree

4 files changed

+22
-18
lines changed

4 files changed

+22
-18
lines changed

source/Hack-Regular.ufo/glyphs/uniE_0B_0.glif

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
<unicode hex="E0B0"/>
55
<outline>
66
<contour>
7-
<point x="-20" y="-488" type="line" name="hr00"/>
8-
<point x="-20" y="2001" type="line"/>
9-
<point x="1116" y="757" type="line"/>
7+
<point x="80" y="1914" type="line"/>
8+
<point x="1233" y="698" type="line"/>
9+
<point x="80" y="-492" type="line"/>
10+
<point x="-80" y="-492" type="line"/>
11+
<point x="-80" y="1914" type="line"/>
1012
</contour>
1113
</outline>
1214
<lib>

source/Hack-Regular.ufo/glyphs/uniE_0B_1.glif

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<unicode hex="E0B1"/>
55
<outline>
66
<contour>
7-
<point x="1220" y="705" type="line" name="hr00"/>
8-
<point x="283" y="-322" type="line" name="ab01"/>
9-
<point x="194" y="-233" type="line"/>
10-
<point x="1049" y="705" type="line"/>
11-
<point x="194" y="1644" type="line"/>
12-
<point x="283" y="1731" type="line" name="at01"/>
7+
<point x="0" y="-605" type="line"/>
8+
<point x="1233" y="698" type="line"/>
9+
<point x="0" y="2027" type="line"/>
10+
<point x="-113" y="1914" type="line"/>
11+
<point x="1010" y="698" type="line"/>
12+
<point x="-113" y="-492" type="line"/>
1313
</contour>
1414
</outline>
1515
<lib>

source/Hack-Regular.ufo/glyphs/uniE_0B_2.glif

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
<unicode hex="E0B2"/>
55
<outline>
66
<contour>
7-
<point x="1253" y="2001" type="line" name="hr00"/>
8-
<point x="1253" y="-488" type="line"/>
9-
<point x="117" y="757" type="line"/>
7+
<point x="1153" y="1914" type="line"/>
8+
<point x="0" y="698" type="line"/>
9+
<point x="1153" y="-492" type="line"/>
10+
<point x="1313" y="-492" type="line"/>
11+
<point x="1313" y="1914" type="line"/>
1012
</contour>
1113
</outline>
1214
<lib>

source/Hack-Regular.ufo/glyphs/uniE_0B_3.glif

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<unicode hex="E0B3"/>
55
<outline>
66
<contour>
7-
<point x="937" y="-322" type="line" name="hr00"/>
8-
<point x="0" y="705" type="line"/>
9-
<point x="937" y="1731" type="line" name="at01"/>
10-
<point x="1023" y="1644" type="line"/>
11-
<point x="169" y="705" type="line"/>
12-
<point x="1023" y="-233" type="line"/>
7+
<point x="1233" y="-605" type="line"/>
8+
<point x="0" y="698" type="line"/>
9+
<point x="1233" y="2027" type="line"/>
10+
<point x="1343" y="1914" type="line"/>
11+
<point x="223" y="698" type="line"/>
12+
<point x="1346" y="-492" type="line"/>
1313
</contour>
1414
</outline>
1515
<lib>

0 commit comments

Comments
 (0)