Bug 96091 - Noto Sans CJK fonts in exported PDFs have abnormal Ascent and Descent values
Summary: Noto Sans CJK fonts in exported PDFs have abnormal Ascent and Descent values
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
(earliest affected) release
Hardware: All Linux (All)
: medium minor
Assignee: Not Assigned
Whiteboard: target:5.2.0
Depends on:
Blocks: CJK
  Show dependency treegraph
Reported: 2015-11-26 16:26 UTC by Hiunn-hué
Modified: 2022-05-15 00:48 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

selecting problem in different pdf reader (439.66 KB, image/png)
2015-11-26 16:26 UTC, Hiunn-hué
pdf created with vs (196.53 KB, image/png)
2016-03-13 14:14 UTC, Hiunn-hué

Note You need to log in before you can comment on or make changes to this bug.
Description Hiunn-hué 2015-11-26 16:26:15 UTC
Created attachment 120821 [details]
selecting problem in different pdf reader

Noto Sans CJK fonts in exported PDFs have abnormal Ascent and Descent values and cause problem when users want to select and copy.

Please see:

Steps to reproduce:
 1. Open a Writer or Impress file
 2. Set the font to Noto Sans CJK [JP/KR/TC] Regular
 3. Write something
 4. Export to PDF
 5. Open the exported PDF with Evince/Sumatra/Firefox
 6. Select some words

 OS: elementary OS 0.3.1 Freya (based Ubuntu 14.04)
Comment 1 Buovjaga 2015-11-28 19:36:13 UTC
I think kenlunde analyzed it better than I ever could have done, so setting to NEW.
Comment 2 Commit Notification 2016-02-18 09:44:11 UTC
Mark Hung committed a patch related to this issue.
It has been pushed to "master":


tdf#96091 Correct ascend and descend values for OTC font.

It will be available in 5.2.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:

Affected users are encouraged to test the fix and report feedback.
Comment 3 Hiunn-hué 2016-03-13 14:14:03 UTC
Created attachment 123538 [details]
pdf created with vs


I've tried LO and the issue seems to be fixed, please see the new attachment.

The selection box of Noto Sans CJK fonts is still a little bit higher than other fonts in PDF.js, such as PMingLiU or AR PL UMing. Nevertheless, it's much better now.

Thanks for the great work.

 OS: elementary OS 0.3.2 Freya
 Build ID: 02de3a5206c7633d62ebc43edad37747e2c7a1de
Comment 4 Hiunn-hué 2017-04-12 12:44:58 UTC
@Mark Hung
Sorry, I just found that LibO 5.4+ on Windows has this issue too, and probably on Mac OS X as well.

Would you please help apply the patch to Windows and Mac OS ? Thank you !
Comment 5 Xisco Faulí 2017-09-24 19:41:11 UTC
Dear Hiunn-hué,
This bug has been in RESOLVED FIXED status for more than 6 months.
If the issue is still reproducible with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/, please report a new issue in https://bugs.documentfoundation.org/enter_bug.cgi providing, if needed, the steps and documents to reproduce it.
Thanks for your understanding and collaboration.