forked from reingart/pyfpdf
-
Notifications
You must be signed in to change notification settings - Fork 249
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
Text shaping does not work with text()
#1265
Labels
Comments
Hi @bmiklautz, The We could definitely add this information on our documentation to avoid confusion. Let me know if you're interested in submitting a PR. |
bmiklautz
added a commit
to bmiklautz/fpdf2
that referenced
this issue
Sep 30, 2024
* adept comparison table in Text.md (add text shaping) * add a note in the functions doc string
bmiklautz
added a commit
to bmiklautz/fpdf2
that referenced
this issue
Sep 30, 2024
* adept comparison table in Text.md (add text shaping) * add a note in the functions doc string
bmiklautz
added a commit
to bmiklautz/fpdf2
that referenced
this issue
Sep 30, 2024
* adept comparison table in Text.md (add text shaping) * add a note in the functions doc string
bmiklautz
added a commit
to bmiklautz/fpdf2
that referenced
this issue
Sep 30, 2024
* adept comparison table in Text.md (add text shaping) * add a note in the functions doc string
5 tasks
@andersonhc thank you for your answer. I've created #1266. |
bmiklautz
added a commit
to bmiklautz/fpdf2
that referenced
this issue
Oct 1, 2024
* adept comparison table in Text.md (add text shaping) * add a note in the functions doc string
Lucas-C
pushed a commit
that referenced
this issue
Oct 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using
text()
with shaping enabled like documented inhttps://py-pdf.github.io/fpdf2/Text.html and https://py-pdf.github.io/fpdf2/TextShaping.html the created text isn't shaped.
Minimal code
In the example Noto Sans Khmer was used (can be downloaded from https://fonts.google.com/noto/specimen/Noto+Sans+Khmer) but the problem occurs with other fonts as well.
The following screenshot shows the output of the example. Text placed with
write()
andcell()
is represented correctly buttext()
(first line) isn't.Environment
Please provide the following information:
fpdf2
version used: master 90c7d7fThank you for your efforts and work on fpdf2.
The text was updated successfully, but these errors were encountered: