Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are you aware of the typography module #23

Closed
lf-araujo opened this issue Jan 20, 2020 · 2 comments
Closed

Are you aware of the typography module #23

lf-araujo opened this issue Jan 20, 2020 · 2 comments

Comments

@lf-araujo
Copy link

Thanks for this amazing software.

Just wanted to call your attention for this typography module, written in Nim. Perhaps it can be incorporated into your work too:

https://github.com/treeform/typography

Keep up.

@jangko
Copy link
Owner

jangko commented Jan 21, 2020

Thank you for the information.
Due to the format/spec of PDF itself, only a subset of typography functionality can be used along with nimPDF. And that functionality is the typesetting.

  • simple way to incorporate typography:

    • calculate the layout using typography
    • draw the layout using nimPDF
    • the result is bigger pdf file.
  • hard way to incorporate typography:

    • grab typography layout source code
    • add it into nimPDF text renderer
    • produce smaller pdf file

But I believe I have to go the hard way because of intricate glyph handling required by PDF internal.
I still remember the nightmare of development hell when I implement TTF and unicode support in nimPDF.

@lf-araujo
Copy link
Author

Thanks for the info!

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

No branches or pull requests

2 participants