Bug 107370 - fc-query doesn't find non-english family names in some fonts
Summary: fc-query doesn't find non-english family names in some fonts
Status: RESOLVED DUPLICATE of bug 105756
Alias: None
Product: fontconfig
Classification: Unclassified
Component: fc-query (show other bugs)
Version: 2.12
Hardware: Other All
: medium major
Assignee: fontconfig-bugs
QA Contact:
Depends on:
Reported: 2018-07-25 07:57 UTC by Changwoo Ryu
Modified: 2018-07-25 09:09 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Description Changwoo Ryu 2018-07-25 07:57:47 UTC
fc-query couldn't find Korean family of some Korean fonts in my laptop. I believe this is the same with other languages.

Korean fonts usually have multiple "family" string, like "Baekmuk Batang" in English and "백묵 바탕" in Korean. But fc-query couldn't find the Korean version in some Korean fonts. In other Korean fonts, fc-query has no problem to find all the family strings.

$ ./fc-query/fc-query -b /usr/share/fonts/truetype/baekmuk/batang.ttf |grep family
	family: "Baekmuk Batang"(s)
	familylang: "en"(s)
$ ./fc-query/fc-query -b /usr/share/fonts/truetype/nanum/NanumGothic.ttf |grep family
	family: "나눔고딕"(s) "NanumGothic"(s)
	familylang: "ko"(s) "en"(s)

Old 2.12.4 version worked OK.

$ ./fc-query/fc-query -b /usr/share/fonts/truetype/baekmuk/batang.ttf |grep family
	family: "Baekmuk Batang"(s) "백묵 바탕"(s)
	familylang: "en"(s) "ko"(s)

Here is the git bisect log:

git bisect start
# good: [690f822a1b26b089d86e9843746cab80f3c07fe3] Bump version to 2.12.3
git bisect good 690f822a1b26b089d86e9843746cab80f3c07fe3
# bad: [4d3410bd08a0f61272ca1dbb1dd27ac8c5f222de] Bump version to 2.12.5
git bisect bad 4d3410bd08a0f61272ca1dbb1dd27ac8c5f222de
# bad: [368fe08f970d7f8d3b49f1350ca14b0915a754b3] Add Twitter Color Emoji
git bisect bad 368fe08f970d7f8d3b49f1350ca14b0915a754b3
# good: [5d8ee5231ab1ea6f36d3103b4de24712c3ae2f64] fix cross compilation
git bisect good 5d8ee5231ab1ea6f36d3103b4de24712c3ae2f64
# good: [12b7501bad3ed4d7819b00a27a9c021e7d120aa0] Add FcConfigParseAndLoadFromMemory() to load a configuration from memory.
git bisect good 12b7501bad3ed4d7819b00a27a9c021e7d120aa0
# good: [241cc869327ec07774ff555e157db1bea73dc485] Pass --pic to gperf
git bisect good 241cc869327ec07774ff555e157db1bea73dc485
# bad: [e5a51c899480c3bd99c36e49d1c24932f6a08810] [fc-query] Support listing named instances
git bisect bad e5a51c899480c3bd99c36e49d1c24932f6a08810
# good: [d7f3437ade668c60a7e31f93669b73680be6512a] Add generic family matching for "emoji" and "math"
git bisect good d7f3437ade668c60a7e31f93669b73680be6512a
# first bad commit: [e5a51c899480c3bd99c36e49d1c24932f6a08810] [fc-query] Support listing named instances

This can be reproduced in Baekmuk fonts. The baekmuk fonts can be downloaded from: http://kldp.net/baekmuk/release/
Comment 1 Akira TAGOH 2018-07-25 09:09:13 UTC

*** This bug has been marked as a duplicate of bug 105756 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.