Export to PDF on Windows produces small symbols
MuseScore 3ab3162b34
Exporting a PDF on Windows doesn't work correctly. The notehead, clef etc... are too small. I can't reproduce on Mac OSX. So it seems to be a problem on Windows only. There are several things interacting in this bug.
- The way we produce PDF (QPrinter)
- The fact that we use TTF font instead of OTF (Qt cannot embed OTF partially, at least on Windows, resulting in big PDF http://musescore.org/en/node/16895)
- The way we draw symbols. Currently we use drawText() and there is a flag in build/config.in.h to use a lower level API drawGlyphRun.
Here are some experiments
Windows
* without USE_GLYPH, current state
- PDF printing is broken (Mscore font glyphs are too small). I can't find why... PNG, SVG are working, display is working.
http://musescore.org/sites/musescore.org/files/Var%20Greensleeves%20Ed%…
- Printing is working
- Display is working
* with USE_GLYPH
- PDF is broken equally
- Printing. Clef, notehead are not printed, but time signatures are!
http://musescore.org/sites/musescore.org/files/promenade.pdf
- Display is working
* OTF + USE_GLYPH defined
- Display is broken
- PDF is broken too.
http://musescore.org/sites/musescore.org/files/Promenade_Example_otf_us…
PDF saved with OTF files are still big.
Mac OSX
* without USE_GLYPH
- Working
* with USE_GLYPH
- Working
Conclusion: With Qt 5.1, I can't find a combination to have display, PDF with decent size, and printing working.
Attachment | Size |
---|---|
promenade.pdf | 42.89 KB |
shot_130717_154019.png | 32.37 KB |
Promenade_Example_otf_useglyph.pdf | 264.1 KB |
Comments
Is this related to the following Qt bug?
https://bugreports.qt-project.org/browse/QTBUG-30875
They say it is fixed in next release 5.1.1.
Opened #21946: PDF Export doesn't work properly, font problem? and closed it as a duplicate...
If you want to find out if this is fixed in Qt 5.1.1, Qt project provides snapshots here http://download.qt-project.org/snapshots/qt/5.1/5.1.1-rc1/backups/
Indeed, by using the RC version of Qt 5.1.1 from the link posted by lasconic, the bug is fixed.
Here are the results from my building environment of an export to pdf of the example score by rev. e47d9de7ba in Windows 8:
Promenade_Example_510.pdf exported by the 5.1.0 build
Promenade_Example_511.pdf exported by the 5.1.1RC build
@ABL Awesome. Thank you for testing this! Since you have a build now. Could you check other Qt5 related bugs? http://musescore.org/fr/project/issues/musescore?tag=Qt5 In particular #21841: Score tab and navigator remains after closing a score
this small notes bug in export pdf is still not fixed in 6559fe0, will the nightly builds be updated to qt 5.1.1 or is it not available yet?
Of course, the nightlies will be updated to Qt 5.1.1 when it's released and as soon as we can do it.
Qt 5.1.1 has been released today :-)
https://blog.qt.digia.com/blog/2013/08/28/qt-5-1-1-released/
and it is already available for download at qt-project.
I've installed and built the latest 2.0 with Qt 5.1.1. MS complains that Qt5Multimedia.dll and Qt5MultimediaWidgets.dll are missing, so putting them in the BIN folder fixes that. My PDF export of the sample Mussorgsky file seems fine. I've attached the PDF.
Then should it be fixed with 1e72e177 (not yet available as a nighly build)
I guess the build system needs to have Qt 5.1.1 installed before if can creat a new nighly build?
Lasconic already installed it (before 9:40 AM my time).
it's fixed in 1e72e17.
thank you!
still no nightly build...
It's just a matter of time. Lasconic said it would need another commit to kick off a new build and so far no commits after the Qt5.1.1 build patches. Mine has been available for some time.
http://ist.uwaterloo.ca/~schepers/musescore
Automatically closed -- issue fixed for 2 weeks with no activity.