Bug 22942 - fc-query does not detect Japanese in Droid Sans Japanese
Summary: fc-query does not detect Japanese in Droid Sans Japanese
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: fc-cat (show other bugs)
Version: 2.7
Hardware: Other All
: medium normal
Assignee: Behdad Esfahbod
QA Contact: Keith Packard
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-25 04:06 UTC by Nicolas Mailhot
Modified: 2009-07-28 11:27 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Nicolas Mailhot 2009-07-25 04:06:53 UTC
Droid Sans Japanese was clearly created to support Japanese, but fc-query does not tag it with japanese lang so it won't be used by apps

 fc-query DroidSansJapanese.ttf 
Pattern has 20 elts (size 32)
        family: "Droid Sans Japanese"(s)
        familylang: "en"(s)
        style: "Regular"(s)
        stylelang: "en"(s)
        fullname: "Droid Sans Japanese"(s)
        fullnamelang: "en"(s)
        slant: 0(i)(s)
        weight: 80(i)(s)
        width: 100(i)(s)
        spacing: 90(i)(s)
        foundry: "unknown"(s)
        file: "DroidSansJapanese.ttf"(s)
        index: 0(i)(s)
        outline: FcTrue(s)
        scalable: FcTrue(s)
        charset: 0030: 103fffef 00000000 fffffffe ffffffff 780fffff fffffffe ffffffff 787fffff
        004e: 43f36f8b 9b462442 e3e0e82c 400a0004 db365f65 04497977 e3f0ecd7 08c56038
        004f: 3403e602 35518000 7eabe0c8 98698200 2942a948 8060e803 ad93441c 4568c03a
        0050: 8656aa60 02403f7a 14618388 21741020 07022021 40bc3000 4462a624 0a2060a8
        0051: 85740217 9c840402 14157bfb 11e27f24 02efb665 20ff1f75 38403a70 676326c3
        0052: 20924dd9 0fc946b0 4850bc98 a03f8638 88162388 52323e09 e3a422aa c72c00dd
        0053: 26e1a166 8f0a840b 559e27eb 89bbc241 85400014 08496361 8ad07f0c 05cfff3e
        0054: a803ff1a 7b407a41 80024745 38eb0500 0005d851 710c9934 01000397 24046366
        0055: 005180d0 430ac000 30c89071 58000008 f7000e99 00415f80 941000b0 62800018
        0056: 09d00240 01568200 08015004 05101d10 001084c1 10504025 4d8a410f a60d4009
        0057: 914cab19 098121c0 0003c485 80000652 00080b04 0009041d 905c4849 16900009
        0058: 22200c65 24338412 47960c03 42250a04 90880028 4f084900 d3aa14a2 3e87d830
        0059: 1f618604 41867ea4 05b3c390 211857a5 2a48241e 4a041128 161b0a40 88400d60
        005a: 9502020a 10608221 04000243 80001444 0c040000 70000000 00c11a06 0c00024a
        005b: 00401a00 40451404 bdb30029 052b0a78 bfa0bba9 8379407c e81d12fc c5694bf6
        005c: 044aeff6 ff022115 402bed63 0242d033 00131000 59ca1b02 020000a0 2c41a703
        005d: 8ff24880 00000204 10055800 00489200 20011894 34805004 684c3200 68be49ea
        005e: 2e42184c 21c9a820 80b050b9 ff7c001e 14e0849a 01e028c1 ac49870e dddb130f
        005f: 89fbbe1a 51a2a2e0 32ca5502 928b3e46 438f1dbf 32186703 33c03028 a9230811
        0060: 3a65c000 04028fe3 86252c4e 00a1bf3d 8cd43a1a 317c06c9 950a00e0 0edb018b
        0061: 8c20e34b f0101182 a7287d94 40fbc9ac 06534484 44445a90 00013fc8 f5d40048
        0062: ec577701 891dc442 49286b83 d2424109 59fe061d 3a221800 3b9fb7e4 c0eaf003
        0063: 82021386 e4008980 10a1b200 0cc44b80 8944d309 48341faf 0c458259 0450420a
        0064: 10c8a040 44503140 01004004 05408280 442c0108 1a056a30 051420a6 645690cf
        0065: 31000021 cbf09c18 63e2a120 01b5104c 9a83538c 3281b8b2 0a84987a 0c0233e7
        0066: 9018d4cc 9070a1a1 e0048a1e 0451c3d4 21c2439a 53104844 36400292 f3bd0241
        0067: e8f0ab09 a5d27dc0 d24bc242 d0afa43f 34a11aa0 03d88247 651bc452 c83ad294
        0068: 40c8001c 33140e06 b21b614f c0d00088 a898a02a 166ba1c5 85b42e50 0604c08b
        0069: 1e04f933 a251056e 76380400 73b8ec07 18324406 c8164081 63097c8a aa042980
        006a: ca9c1c24 27604e0e 83000990 81040046 10816011 0908540d cc0a000e 0c000500
        006b: a0440430 6784008b 8a195288 8b18865e 41602e59 9cbe8c10 891c6861 00089800
        006c: 089a8100 41900018 e4a14007 640d0505 0e4d310e ff0a4806 2aa81632 000b852e
        006d: ca841800 696c0e20 16000032 03905658 1a285120 11248000 432618e1 0eaa5d52
        006e: ae280fa0 4500fa7b 89406408 c044c880 b1419005 24c48424 603a1a34 c1949000
        006f: 003a8246 c106180d 99100022 1511e050 00824057 020a041a 8930004f 444ad813
        0070: ed228a02 400510c0 01021000 31018808 02044600 0708f000 a2008900 22020000
        0071: 16100200 10400042 02605200 200052f4 82308510 42021100 80b54308 9a2070e1
        0072: 08012040 fc653500 ab0419c1 62140286 00440087 02449085 0a85405c 33803207
        0073: b8c00400 c0d0ce20 0080c030 0d250508 00400a90 080c0200 40006505 41026421
        0074: 00000268 847c0024 de200002 40498619 40000808 20010084 10108400 01c742cd
        0075: d52a7038 1d8f1968 3e12be50 81d92ef5 2412cec4 732e0828 4b3424ac d41d020c
        0076: 80002a02 08110097 114411c4 7d451786 064949d9 87914000 d8c4254c 491444ba
        0077: c8001b92 15800271 0c000081 c200096a 40024800 ba493021 1c802080 1008e2ac
        0078: 00341004 841400e1 20000020 10149800 04aa70c2 54208688 04130c62 20109180
        0079: 02064082 54001c40 e4e90383 84802125 2000e433 e60944c0 81260a03 080112da
        007a: 97906901 f8864001 0081e24d a6510a0e 81ec011a 8441c600 b62cadb8 8741a46f
        007b: 4b028d54 02681161 2057bb60 043350a0 b7b4a8c0 01122402 20009ad3 00c82271
        007c: 809e2081 e1800c8a 8151b009 40281031 89a52a0e 620e69b6 d1444425 4d548085
        007d: 1fb12c75 862dd807 4841d87c 226e414e 9e088200 ed37f80c 75268c80 08149313
        007e: c8040e32 6ea6484e 66702c4a ba0126c0 185dd30c 00000000 00000000 00000000
        007f: 00000000 05400000 81337020 03a54f81 641055ec 2344c318 00341462 1a090a43
        0080: 13a5187b a8480102 c5440440 e2dd8106 2d481af0 0416b626 6e405058 31128032
        0081: 0c0007e4 420a8208 803b4840 87134860 3428850d e5290319 870a2345 5c1825a9
        0082: d9c577a6 03e85e00 a7000081 41c6cd54 a2042800 2b0ab860 da9e0020 0e1a08ea
        0083: 11c0427c 03768908 01058621 18a80000 c44846a0 20220d05 91485422 28978a01
        0084: 00087898 31221605 08804240 06a2fa4e 92110814 9b042002 06432e52 90105000
        0085: 85ba0041 20203042 05a04f0b 40802708 1a930591 0600df50 3021a202 4e800630
        0086: 04c80cc4 8001a004 d4316000 0a020880 00281c00 00418e18 ca106ad0 4b00f210
        0087: 1506274d 88900220 82a85a00 81504549 80002004 2c088804 000508d1 4ac48001
        0088: 0062e020 0a42008e 6a8c3055 e0a5090e 42c42906 80b34814 b330803e 731c0102
        0089: 600d1494 09400c20 c040301a c094a451 05c88dca a40c96c2 34040001 011000c8
        008a: a9c9550d 1c5a2428 48370142 100f7a4d 452a32b4 9205317b 5c44b894 458a68d7
        008b: 2ed15097 42081943 9d40d202 20979840 064d5409 00000000 00000000 00000000
        008c: 00000000 84800000 04215542 17001c06 61107624 b9ddff87 5c0a659f 3c00245d
        008d: 0059adb0 00000000 00000000 009b28d0 02000422 44080108 ac409804 90288d0a
        008e: e0018700 00310400 82211794 10540019 021a2cb2 40039c02 88043d60 7900080c
        008f: ba3c1628 cb088640 90807274 0000001e d8000000 9c87e188 04124034 2791ae64
        0090: e6fbe86b 5366408f 537feea6 b5e4e32b 0002869f 01228548 08004402 20a02116
        0091: 02040004 00052000 01547e00 01ac162c 10852a84 05308c14 b943fbc3 906000ca
        0092: 40326000 80901200 4c810b30 40020054 1d6a0029 02802000 00048000 150c2610
        0093: 07018040 0c24d94d 18502810 50205001 04d01000 02017080 21c30108 00000132
        0094: 07190088 05600802 4c0e0012 f0a10405 00000002 00000000 00000000 00000000
        0095: 00000000 00000000 00000000 00800000 035a8e8d 5a0421bd 11703488 00000026        0096: 10000000 8804c502 f801b815 25ed147c 1bb0ed60 1bd70589 1a627af3 0ac50d0c
        0097: 524ae5d1 63050490 52440354 16122b57 1101a872 00182949 10080948 886c6000
        0098: 058f916e 39903012 4930f840 001b8880 00000000 00428500 98000058 7014ea04
        0099: 611d1628 60005113 00a71a24 00000000 03c00000 10187120 a9270172 89066004
        009a: 020cc022 40810900 8ca0202d 00000e34 00000000 11012100 c11a8011 0892ec4c
        009b: 85000040 1806c7ac 0512e03e 00108000 80ce4008 02106d01 08568641 0027011e
        009c: 083d3750 4e05e032 048401c0 01400081 00000000 00000000 00000000 00591aa0
        009d: 882443c8 c8001d48 72030152 04049013 04008280 0d148a10 02088056 2704a040
        009e: 4c000000 00000000 00000000 a3200000 a0ae1902 df002660 7b15f010 3ad08121
        009f: 00284180 48001003 8014cc00 00c414cf 30202000 00000001 00000000 00000000
        00ff: 00000000 00000000 00000000 fffffffe ffffffff 00000000 00000000 00000000
(s)
        lang: (s)
        fontversion: 65536(i)(s)
        fontformat: "TrueType"(s)
        decorative: FcFalse(s)

fontconfig-2.7.0-1.fc12.x86_64
Comment 1 Behdad Esfahbod 2009-07-25 12:42:32 UTC
Where do I get Droid Sans Japanese?
Comment 3 Behdad Esfahbod 2009-07-27 11:46:26 UTC
Humm, I/we should add a new tool to report which chars are missing in a font to be marked with a lang.
Comment 4 Nicolas Mailhot 2009-07-27 13:57:03 UTC
It would be very nice if there was a tool that computed percentage of coverage for all fontconfig-known languages (to detect almost-complete languages) and that could then be used to list missing codepoints for a specific language (once you've decided language XXX is almost complete and interesting and want to know what remains to be done to complete it)
Comment 5 Behdad Esfahbod 2009-07-28 11:27:43 UTC
Ok, actually setting FC_DEBUG=256 already does that.  Running on Droid Sans Japanese shows that the FULLWIDTH YEN SIGN is the only char missing.  Removed it from Japanese orth.  Feel free to patch rawhide until a release is out.


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.