Bug 146649 - Font rendering for localized "Noto Sans CJK SC" and "Noto Serif CJK SC" fonts (i.e. "思源黑体 CN" and "思源宋体 CN") is showing as bold rather than normal weight
Summary: Font rendering for localized "Noto Sans CJK SC" and "Noto Serif CJK SC" fonts...
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-08 12:03 UTC by Kevin Suo
Modified: 2022-01-08 12:44 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test.odt (53.88 KB, application/vnd.oasis.opendocument.text)
2022-01-08 12:03 UTC, Kevin Suo
Details
test.pdf (180.94 KB, application/pdf)
2022-01-08 12:05 UTC, Kevin Suo
Details
test.html (2.22 KB, text/html)
2022-01-08 12:06 UTC, Kevin Suo
Details
test.html (2.43 KB, text/html)
2022-01-08 12:10 UTC, Kevin Suo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Suo 2022-01-08 12:03:39 UTC
Created attachment 177390 [details]
test.odt

The attached ODT contains 6 paragraphs:

1. The 1st paragraph uses "思源黑体 CN" font (i.e., the localized font name of "Noto Sans CJK SC"). This paragraph does not have explicit "bold" attribute set. However, the rendering result is shown as bold. This is wrong.

2. The 2nd paragrapsh uses "Noto Sans CJK SC" font (i.e., the non-localized font identical with the 1st paragraph. There is no explicit "bold" attribute set. The rendering result for this paragraph is correct - the font is showing as normal weight rather than bold.

3. The 3rd paragraph uses "Noto Sans CJK SC" font, *with* explicit "bold" attribute set to the text. The rendering result is correct. However, we can notice that it is exactly the same as in the 1st paragraph, which indicates that the 1st paragraph was rendering as bold font my mistake.

4. The 4th, 5th and 6th paragraph shows the similar issue for the "思源宋体 CN" (i.e., localized font name of "Noto Serif CJK SC" font).

Steps to Reproduce:
1. Make sure you have "Noto Sans CJK SC" and "Noto Serif CJK SC" fonts installed. (on Fedora system, the packages names should be: google-noto-sans-cjk-sc-fonts and google-noto-serif-cjk-sc-fonts)
2. Open the attached test ODT file.

Current Result:
Paragraphs 1 and 4 are showing as bold.

Expected Result:
Paragraphs 1 and 4 are showing as normal weight (i.e. the same as in paragraphs 2 and 5, respectively.

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: a6415004630c28ac4c0a64b83d8f0fd5c77a6a31
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: zh-CN (zh_CN.UTF-8); UI: zh-CN
Build Platform: Fedora34@X64, Branch:master, bibisect-linux-64-7.4-CN
Calc: threaded

Fedora 34, Gnome 40.5, Wayland.
Comment 1 Kevin Suo 2022-01-08 12:05:27 UTC
Created attachment 177391 [details]
test.pdf

PDF file showing the rendering result.
Comment 2 Kevin Suo 2022-01-08 12:06:56 UTC Comment hidden (obsolete)
Comment 3 Kevin Suo 2022-01-08 12:10:32 UTC
Created attachment 177393 [details]
test.html

An html file as a comparison. The fonts for the 1st and 4th paragraphs are both correct in Firefox and Chrome (i.e. not bold).
Comment 4 Kevin Suo 2022-01-08 12:19:19 UTC
Bug already existed in 
Version: 6.0.0.0.alpha1+
Build ID: 6eeac3539ea4cac32d126c5e24141f262eb5a4d9
Comment 5 Kevin Suo 2022-01-08 12:44:19 UTC
Ops.. I mixed the Source Han Sans SC with Noto Sans CJK SC.