pdf-rs / pdf_render

MIT License
104 stars 21 forks source link

spaces aren't written to TextSpan: text #9

Closed balenamiaa closed 2 years ago

balenamiaa commented 2 years ago

https://github.com/pdf-rs/pdf_render/blob/29c268f0e1c8ed3217565a43431dc3fee79c1ee0/render/src/textstate.rs#L138-L143

I presume a span.text.push(' '); is missing here. Adding it fixes the lack of spaces for me, but I am not sure if its the correct way.

s3bk commented 2 years ago

I can add it there and it will work for most files, but not for all. Some creators use kerning for spaces...