[MacOS X] Export Pdf with Muse Jazz Text all garbled and unreadable

• Dec 7, 2018 - 00:26
Reported version
3.0
Priority
P0 - Critical
Type
Functional
Frequency
Many
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

When exporting a .pdf file using Muse Jazz Text Font the .pdf is garbage.

Attachment Size
Dragonbird_Hummingfly_Waltz.pdf 40.73 KB
Looking_Out_a_Window.pdf 44.35 KB

Comments

Title Export Pdf with Muse Jazz Texxt all garbled and unreadable Export Pdf with Muse Jazz Text all garbled and unreadable
Status open issues needs info
Type EPIC Functional
Priority P0 - Critical

sample score please

Works for me. You don't by chance have an incompatible font with the same name installed on your system? Like maybe you at some piint downloaded and installed the MuseJazz font used in 2.x, which didn't support notation? This font should not be installed at all; MuseScore needs to be able to access its own version.

I could also believe there being an issue with Qt 5.12 which would explain why this seems macOS-specific. Could some other mac user verify the results of PDF export using "Looking"?

Latest MuseScore 3 beta (Dec. 14), MacBook Pro, macOS Mojave 10.14.1. Style: musical symbols font is MuseJazz, musical text font is MuseJazz Extended. No fonts with these names are installed anywhere on this MacBook (looked everywhere using FontBook and searched using Finder).
Pdf exported from Musescore creates the strange musical symbols. Using the Print>SaveAsPdf function on the Mac the musical symbols had the desired MuseJazz look, as expected. Score, exported pdf and printed pdf files attached.

I can't reproduce in d7232a8449 self built on Mac 10.13.4 with Qt 5.9.7.
FWIW, I tried to reproduce with Qt 5.12, just in case, and the PDF are not readable by Preview (using MuseJazz or not...)

I can reproduce in Beta (OS: macOS 10.14, Arch.: x86_64, MuseScore version (64-bit): 3.0.0.19874, revision: 59a11cd). The pdfPrinter replaces note symbols with some text symbols somehow. I'll take a look.

Also, I cannot reproduce the case when creating new score from scratch using MuseJazz font. Copy-pasting elements from the attached (LookingOutWindow-3.mscz) score to the new score also doesn't produce incorrect results.

Title Export Pdf with Muse Jazz Text all garbled and unreadable [MacOS X] Export Pdf with Muse Jazz Text all garbled and unreadable
Status active fixed

Fixed in branch master, commit 40a27b9cd7

fix #279563: Export Pdf with Muse Jazz Text all garbled and unreadable

Replace QPdfWriter with QPrinter, the last is more configurable and aligned with Print functionality.
The pearl of the fix is setting output format to QPrinter::NativeFormat. I'm not sure, but I believe this is a bug in output format processing introduced in Qt 5.12.

New interface requires creating temp file when processing JSON generation. So, I extracted a method which deals with the exporting pdf as a json routine.