Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Text position for certain font might not work #31

Open
dayfine opened this issue Dec 25, 2018 · 1 comment
Open

Text position for certain font might not work #31

dayfine opened this issue Dec 25, 2018 · 1 comment

Comments

@dayfine
Copy link

dayfine commented Dec 25, 2018

Documenting the issue at least, so people with similar goals with me would know it exists.
Basically when some fonts are decoded, it is analyzed character by character, however, all those characters would have the same position coordinates...See screenshot below.
I might dig into it and try to fix it. We'll see.
Screenshot of text position error

@dayfine dayfine changed the title Text position might not be accurate Text position for certain font might not work Dec 25, 2018
@giovanni-annunzio
Copy link

giovanni-annunzio commented Feb 8, 2020

Dear @dayfine,

I experienced the same issue. Additionally, all white spaces were missing. From my point of view this happens when the Font-Object (PDF internals) is missing /FirstChar /LastChar and /Widths attributes.

To preserve white spaces I proposed the pull request #34

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants