Browse Source

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
James T. Lee 7 năm trước cách đây
mục cha
commit
a8ebb80084

+ 5 - 3
source/Hack-Regular.ufo/glyphs/uniE_0B_0.glif

@@ -4,9 +4,11 @@
   <unicode hex="E0B0"/>
   <outline>
     <contour>
-      <point x="-20" y="-488" type="line" name="hr00"/>
-      <point x="-20" y="2001" type="line"/>
-      <point x="1116" y="757" type="line"/>
+      <point x="80" y="1914" type="line"/>
+      <point x="1233" y="698" type="line"/>
+      <point x="80" y="-492" type="line"/>
+      <point x="-80" y="-492" type="line"/>
+      <point x="-80" y="1914" type="line"/>
     </contour>
   </outline>
   <lib>

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

@@ -4,12 +4,12 @@
   <unicode hex="E0B1"/>
   <outline>
     <contour>
-      <point x="1220" y="705" type="line" name="hr00"/>
-      <point x="283" y="-322" type="line" name="ab01"/>
-      <point x="194" y="-233" type="line"/>
-      <point x="1049" y="705" type="line"/>
-      <point x="194" y="1644" type="line"/>
-      <point x="283" y="1731" type="line" name="at01"/>
+      <point x="0" y="-605" type="line"/>
+      <point x="1233" y="698" type="line"/>
+      <point x="0" y="2027" type="line"/>
+      <point x="-113" y="1914" type="line"/>
+      <point x="1010" y="698" type="line"/>
+      <point x="-113" y="-492" type="line"/>
     </contour>
   </outline>
   <lib>

+ 5 - 3
source/Hack-Regular.ufo/glyphs/uniE_0B_2.glif

@@ -4,9 +4,11 @@
   <unicode hex="E0B2"/>
   <outline>
     <contour>
-      <point x="1253" y="2001" type="line" name="hr00"/>
-      <point x="1253" y="-488" type="line"/>
-      <point x="117" y="757" type="line"/>
+      <point x="1153" y="1914" type="line"/>
+      <point x="0" y="698" type="line"/>
+      <point x="1153" y="-492" type="line"/>
+      <point x="1313" y="-492" type="line"/>
+      <point x="1313" y="1914" type="line"/>
     </contour>
   </outline>
   <lib>

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

@@ -4,12 +4,12 @@
   <unicode hex="E0B3"/>
   <outline>
     <contour>
-      <point x="937" y="-322" type="line" name="hr00"/>
-      <point x="0" y="705" type="line"/>
-      <point x="937" y="1731" type="line" name="at01"/>
-      <point x="1023" y="1644" type="line"/>
-      <point x="169" y="705" type="line"/>
-      <point x="1023" y="-233" type="line"/>
+      <point x="1233" y="-605" type="line"/>
+      <point x="0" y="698" type="line"/>
+      <point x="1233" y="2027" type="line"/>
+      <point x="1343" y="1914" type="line"/>
+      <point x="223" y="698" type="line"/>
+      <point x="1346" y="-492" type="line"/>
     </contour>
   </outline>
   <lib>