[graf2d] support PDF output with mathtext - #23217
Conversation
Test Results0 tests 0 ✅ 0s ⏱️ Results for commit 9ccd5c1. ♻️ This comment has been updated with latest results. |
Fixes: https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205/10 https://root-forum.cern.ch/t/saveas-pdf-cannot-handle-tmathtext/38905 https://root-forum.cern.ch/t/tmathtext-in-pdf-svg-export/19505/4 untested: copy paste structure from TPostscript.cxx
6fc7d73 to
9ccd5c1
Compare
|
I do not think that we need to include extra fonts to support One only need to find right solution to remap We do not support loading of custom ttf fonts yet in ROOT graphics. |
Ok, but TPostscript.cxx can stay as it is, right ? (With font mapping) |
|
It is only about PDF - here no extra fonts embed |
|
In TPostScript some extra font are needed for special characters like \ell and many many others liste here https://root.cern/doc/master/classTMathText.html. TPDF will also need these extra fonts. TMathText was not implemented in TPDF because it is much more complex: a PS file has a linear structure whereas a PDF has an indexed one. As an example of complexity see the gymnastic I was obliged to do to implement the #url directive in TPDF (that was the last addon in TPDF). |
To be applied after #23198
Fixes
https://root-forum.cern.ch/t/latin-l-with-tmathtext-and-pdf-issue/33205/10
https://root-forum.cern.ch/t/saveas-pdf-cannot-handle-tmathtext/38905
https://root-forum.cern.ch/t/tmathtext-in-pdf-svg-export/19505/4
It does not work yet, is just a placeholder for not forgetting, that's why skip-ci.
@couet since you have quite some expertise with TPDF, maybe you can give advice on this PR