Korean text looks correct in compiled PDFs but copies as garbled characters — switching from OTF to TTF helped

Hi everyone,

I’d like to share a workaround for a problem I encountered when compiling Korean text to PDF in Scrivener for macOS.

I was using an .otf font synced through Sandoll Cloud (a Korean subscription-based font service). The compiled PDF looked correct on screen, but copying and pasting the Korean text produced garbled characters instead of the original text.

I changed to a .ttf font, also synced through Sandoll Cloud, and compiled the document to PDF again. After that change, the Korean text copied and pasted correctly.

The results in my setup were:

  • OTF font: Korean text displayed correctly, but copied as garbled characters.
  • TTF font: Korean text displayed correctly and copied correctly.

I found a couple of earlier discussions with related symptoms:

I don’t know whether these reports share the same underlying cause. My observation is limited to the fonts and setup I tested; I haven’t isolated whether the decisive factor was the font format, the particular font files, or their interaction with PDF compilation.

I’m sharing this in case trying a TTF font helps someone encountering a similar problem.

Has anyone else seen this with Korean, Chinese, or Japanese text, particularly when comparing .otf and .ttf fonts?

Thank you!

Could you test this using TextEdit, please? (Create a document in TextEdit, then print to PDF.)

For the text layer – what the Copy command sees – to not match the visible text probably indicates a problem well below the level of Scrivener’s own code. We depend on Apple’s tools for PDF generation.

2 Likes

As you suggested, I created a PDF using TextEdit, and the result is like the image. While the letters of OTF font are visible and can be selected for copying, the text appears garbled when pasted elsewhere.

I have attached both a version that copied correctly and a version of the same text that resulted in garbled characters.

􀩅􀚨􀪁􀝱􀍠􀪁􀝱􀘳􀮽
􀚹􀬴􀮽􀀴􀀥􀮽
􀀭􀁂􀁗􀁂􀮿􀀰􀀵􀀧􀯀
텍스트에디트에서
실험 Sandoll Lava
TTF

Definitely an Apple issue, then. What version of Mac OS do you have?

1 Like

I tried your experiment’s text with Adobe’s Source Han Serif (SIL Open Font License).

Here’s the result (top: Scrivener, middle: PDF in macOS Preview, bottom: copied from that PDF to plain text):

(Weirdly enough, some of the “serifness” gets lost in the process.)

Could be a font issue, as well.

1 Like

The Mac version is 26.6.2 (25G83), but I believe this issue has existed since even earlier versions. My research suggests that in PDFs built using the native macOS engine, certain virtual Unicode segments—associated with Korean CID fonts or OTF-format fonts—may go missing, or the mapping tables may become completely corrupted, leading to a failure in reading the text layer (a “CMap parsing failure”).

1 Like

It is said that Source Han OTF fonts are “exemplary” because they strictly adhere to Adobe’s standard CID technical specifications, while excluding all the ambiguous edge cases that might cause the Quartz engine’s legacy parser to malfunction—but it seems the font I used doesn’t meet that standard.

1 Like

Do you have to stick to your current font? Otherwise I’d proceed with a better behaving alternative.

I already solved the problem by changing the font to TTF, so I wrote the post saying that others can do the same.

I think it is a mistake not to specify it clearly.

1 Like

No no, my bad. My brain got stuck in “problem solving mode”, sorry.

1 Like

Anyway, I am still fully satisfied with it, so I always use it with gratitude.

1 Like