Closed bmiklautz closed 1 month ago
Hi @bmiklautz,
The text()
method is kept on the codebase for backwards compatibility, but it lacks many of the features available in write()
, cell()
, and multicell()
like markdown and text shaping.
We could definitely add this information on our documentation to avoid confusion. Let me know if you're interested in submitting a PR.
@andersonhc thank you for your answer. I've created #1266.
When using
text()
with shaping enabled like documented in https://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 90c7d7f8780ff524a469fb7deff4dffb88be3a5fThank you for your efforts and work on fpdf2.