Repository navigation
fix: preserve chord accidentals in score PDF exports - #586
Closed
chengzuopeng wants to merge 1 commit into
Closed
chengzuopeng wants to merge 1 commit into
chengzuopeng wants to merge 1 commit into
Conversation
timoncool
added a commit
that referenced
this pull request
Nov 30, 2026
Owner
|
Thank you — this is in 5.5.0 as your own commit: score PDFs keep chord sharps and flats, with the font's licence next to the others. Closing because it landed through the release branch. https://github.com/timoncool/YuE2-Studio/releases/tag/v5.5.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #583.
The score preview renders musical accidentals, but the PDF exporter writes chord text with built-in PDF fonts that cannot encode ♭, ♮, and ♯. For example, B♭ is displayed as B&m.
Embed a 1.8 KB, licensed font subset only when needed, and use it for accidental characters in chord labels. Keep the score in vector form and the accidentals as selectable Unicode text.
Verification: Clicked the score PDF button in headless Chromium using an ABC score with B♭, E♭maj7, F♯7/C♯, and Dm. Poppler extracts the expected symbols from the new PDF instead of &m and &o, and
pdffontsreports the embedded font with a Unicode map. All 508 app tests passed. The Windows Tauri Save dialog and model generation were not tested.