[MacOS X] Export Pdf with Muse Jazz Text all garbled and unreadable if no printers are setup on a machine

• Dec 7, 2018 - 00:26
Reported version
P0 - Critical
S2 - Critical

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


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):, 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.

I just got a new MacBook and installed Musescore 3.2. I created a new score, and the PDF parts it generates are all garbled (see attached). On my previous MacBook, the individual parts would be fine, but the "Score of the "Score and Parts" would always be garbled too.

OS: macOS Mojave (10.14), Arch.: x86_64, MuseScore version (64-bit):, revision: 8594c8c

Attachment Size
Jo_Jo-Concert_Instruments.pdf 20.19 KB
Status closed active

Yeah! I finally reproduced the case on my machine. Only the *Score_and_parts.pdf is exported incorrectly, all parts and score are exported correctly on my machine.

Status active fixed

Fixed in branch master, commit 9bdd6ca580

_fix #279563: Score_And_Parts pdfs are garbled when using MuzeJazz font

Replace pdfWriter with QPrinter
Refactoring of the savePdf methods is needed to avoid code duplication_

In reply to by Anatoly-os

@Anatoly-os Oh, great news that you were able to reproduce the issue, and also that you already pushed a fix!

On my old MacBook, I saw the same behavior you described: The Score_and_Parts was garbled, but the individual parts were fine. On my new MacBook everything is garbled. I'm not sure why the behavior is different there... Hopefully your patch fixes all of it! Thanks again!

I read this post but I can't understand what to do to solve my problem. Do I have to change program routines? If yes, where? Where can I find the file to edit? How to open it?
When I convert to PDF the file is corrupted: this happens only with the use of the MuseJazz font.
My installed version is 3.2.3 (the latest).
My system is MacBook Mojave 10.14.5

In addition, the Print ... function is also disabled!!! :(((

Thank you all for your help!

I tested out the new version of Musescore (version info below) and my PDFs are still garbled when using MuseJazz.

Elaborating, when exporting PDFs both the individual parts and the score-and-parts PDFs are all garbled. If I use a different font then all the issues are resolved. I wonder what's different about my system where I still see this issue... @Anatoly-os, if you have any thoughts or would like me to test anything out, please let me know.


OS: macOS 10.14, Arch.: x86_64, MuseScore version (64-bit):, revision: d2d863f

In reply to by Anatoly-os

Unfortunately I don't have a real printer (I export to PDFs then take those to a store to get printed). And also no printers are installed on my MacBook.

I can print the garbled PDFs and see what happens though. Would that be helpful, or is it just the print-straight-to-a-real-printer case that is helpful?

In reply to by bpclub

No, there is no need to print garbled PDF file :) I think the absence of a real printer is a key to the complete solution of the issue. I'll experiment within a week and come back to you once I have more information.

UPD: I mean, the absence of a real printer in the printer settings on macOS, not a real device :)

Title [MacOS X] Export Pdf with Muse Jazz Text all garbled and unreadable [MacOS X] Export Pdf with Muse Jazz Text all garbled and unreadable if no printers are setup on a machine
Status closed needs info
Status needs info active

I was right, lol. The bug is reproduced if there are no printers set up in the system. Digging into the code base...

Workaround No Yes

One possible workaround certainly is to upload the score to musescore.com (preferably via File > Save online) and then download the PDF from there.