bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Garbage copied from PDF when using certain fonts


From: Knut Petersen
Subject: Re: Garbage copied from PDF when using certain fonts
Date: Mon, 16 Aug 2021 08:17:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0

Hi Huanyu Liu,
When using certain fonts (in my case, Noto CJK, both pan-CJK and subset 
versions), the output looks right but when copied from the generated PDF file, 
everything becomes garbage. For example:
\version "2.22.0"
          \markup {
            \override #'(font-name . "Noto Serif CJK SC")
            { English 中文 にほんご }
          }
The output looks right, but when copied it becomes "&OHMJTI ╚倁 מ׮؆ׇ". If I use Noto Sans CJK SC, it will be "&OHMJTI ╈乄 מ׮؆ׇ" (different from the previous one). Noto Serif JP (not pan-CJK) then "&OHMJTI ╚倀 מ׮؆ׇ". (It seems that LilyPond is smart when selecting the language depending on your system environment, so we may have to use the subset version to select explicitly.)

The problem  does not appear if the cairo backend is used, see 
https://gitlab.com/lilypond/lilypond/-/merge_requests/853.

Do you use a lilypond installer or do you build lilypond from source? Which 
operating system do you use?

Knut





reply via email to

[Prev in Thread] Current Thread [Next in Thread]