foliojs / textkit

Text layout framework
41 stars 10 forks source link

Apply character spacing #32

Closed asmockler closed 6 years ago

asmockler commented 6 years ago

Applies characterSpacing to glyphs when provided. Because spacing is added after each glyph, it is not applied to the last glyph.

Hoping to use this to add letterSpacing to react-pdf as suggested here: https://github.com/diegomura/react-pdf/issues/241 (I think this commit is all that will be needed: https://github.com/asmockler/react-pdf/commit/a9ab5f57340a35fe85898174483ef92bb059506c)

diegomura commented 6 years ago

Thanks @asmockler ! I'm going to test this soon and see how it works before merging it. Pretty excited to support this new style attribute.