googlefonts / fontview

Demo app that displays fonts with a free/libre/open-source text rendering stack: FreeType, HarfBuzz and Raqm
Other
322 stars 37 forks source link

Round glyph positions when drawing sample text to bitmap instead of truncating. [#50] #51

Closed bdon closed 3 years ago

bdon commented 5 years ago

This fixes the inter-glyph spacing at smaller font sizes

with font https://github.com/adobe-fonts/source-sans-pro/blob/release/OTF/SourceSansPro-Regular.otf Before chromevsfontview

After screen shot 2018-12-20 at 8 07 20 pm

davelab6 commented 5 years ago

I compiled this on macOS and it looks like it needs more work:

Before:

screen shot 2019-02-12 at 8 10 25 am

After:

screen shot 2019-02-12 at 8 10 09 am
bdon commented 5 years ago

@davelab6 i will take a look, what font/font size is that and is it on a retina or non-retina display?

davelab6 commented 5 years ago

@bdon its Roboto, on macOS retina

bdon commented 5 years ago

@davelab6 can you link the font file? on commit 6e3d9835dafe69d19b1eb185dc9acb9bd01ce708 i see this

screen shot 2019-02-20 at 12 52 46 pm