larsenwork / monoid

Customisable coding font with alternates, ligatures and contextual positioning. Crazy crisp at 12px/9pt. http://larsenwork.com/monoid/
7.86k stars 170 forks source link

Center glyphs in line-height? #32

Closed chase closed 9 years ago

chase commented 9 years ago

Line height

Although this screenshot is from #31, it brings up something that I think should be an easy enough thing to fix.

For those of us using silly things like Airline and Powerline, centering glyphs on the line-height similar to this would be beneficial: Mockup

One wouldn't really notice it if all of the text were on the same background color and the terminal didn't rely on the line-height making the block block, so it isn't super high priority.

larsenwork commented 9 years ago

Silly you...but good point, I'll try and adjust the metrics a bit

vodik commented 9 years ago

For what its worth, don't worry too much about the blurriness, I'm fairly certain that's my broken fontconfig.

larsenwork commented 9 years ago

@vodik ok, report should that not be the case

@chase try these: https://github.com/larsenwork/monoid/tree/master/Testing

larsenwork commented 9 years ago

@chase I've tried centring the powerline symbols but unsure if the triangles should be full height (like the branching symbol) or like this: screen shot 2015-06-23 at 14 50 31

chase commented 9 years ago

The triangles should be full height and flush to whichever side opposite of where it points.

larsenwork commented 9 years ago

Like so? screen shot 2015-06-23 at 20 15 12

chase commented 9 years ago

Indeed! It looks right, but I'll try it out tomorrow to see if it displays correctly :)

I'll have to add a stretch glyph operation so that line height options also change the Powerline characters, but for now this is great.

larsenwork commented 9 years ago

instead of a stretch glyph I can also very quickly make alternates that can be substituted instead if that's easier to code

larsenwork commented 9 years ago

closing this as part of cleaning up. @chase feel free to reopen if there's more to look into right now. Height options are part of #48