Bug 62616

Summary: Make "Nafees Nastaleeq" the preferred Urdu font
Product: fontconfig Reporter: Gunnar Hjalmarsson <gunnarhj>
Component: confAssignee: fontconfig-bugs
Status: RESOLVED WONTFIX QA Contact: Behdad Esfahbod <freedesktop>
Severity: enhancement    
Priority: lowest CC: akira
Version: unspecified   
Hardware: Other   
OS: All   
URL: https://launchpad.net/bugs/1153188
Whiteboard:
i915 platform: i915 features:
Attachments: Nafees Nastaleeq for Urdu

Description Gunnar Hjalmarsson 2013-03-21 23:16:26 UTC
Forwarding an Ubuntu bug, I suggest that "Nafees Nastaleeq" is stated as the preferred Urdu font in 65-nonlatin.conf. Patch will come.
Comment 1 Gunnar Hjalmarsson 2013-03-21 23:26:00 UTC
Created attachment 76886 [details] [review]
Nafees Nastaleeq for Urdu
Comment 2 Akira TAGOH 2013-03-22 03:17:32 UTC
Well, "Urdu Nastaliq Unicode" seems added by Mandriva guy at c26344ecfc1d3b85671f5d948a10d5cc27c21c2f. you may need to talk to him about this change perhaps.

FWIW this is correct metadata for Urdu Nastaliq Unicode:

Pattern has 19 elts (size 32)
        family: "Urdu Nastaliq Unicode"(s)
        familylang: "en"(s)
        style: "Regular"(s)
        stylelang: "en"(s)
        fullname: "Urdu Nastaliq Unicode"(s)
        fullnamelang: "en"(s)
        slant: 0(i)(s)
        weight: 80(i)(s)
        width: 100(i)(s)
        foundry: "unknown"(s)
        file: "/home/tagoh/Downloads/nastaliq_unicode.ttf"(s)
        index: 0(i)(s)
        outline: FcTrue(s)
        scalable: FcTrue(s)
        charset: 
        0000: 00000000 ffffffff ffffffff 7fffffff 00000000 00000000 00000000 00008000
        0006: 88001000 07fffd86 0013cbff 420107ff 01020140 04008200 00341080 00000000
        00fb: 00000000 00000000 03c00000 3c0003c0 c03c3f00 0000ffc0 01800000 f0000000
        00fc: 00000000 08800000 20000000 00000000 00010003 00000000 00000080 00000800
        00fd: 00000000 30000000 00000000 00000000 00000000 00000000 00000000 00000000
        00fe: 00000000 00000000 00000000 3fc30000 ffe7f807 ffffffff ffffffff 181867ff
(s)
        lang: fj|ho|ia|ie|io|nr|om|so|ss|st|sw|ts|uz|xh|zu|kj|kwm|ms|ng|rn|rw|sn|za(s)
        fontversion: 65536(i)(s)
        fontformat: "TrueType"(s)
        decorative: FcFalse(s)

and glyph coverage information is:
/home/tagoh/Downloads/nastaliq_unicode.ttf:0 Missing 5 glyph(s) to satisfy the coverage for ur language
  0x0623
  0x0624
  0x0626
  0x06be
  0x06c3

For Nafees Nastaleeq:
Pattern has 20 elts (size 32)
        family: "Nafees Nastaleeq"(s)
        familylang: "en"(s)
        style: "Regular"(s)
        stylelang: "en"(s)
        fullname: "Nafees"(s) "Nafees Nastaleeq"(s)
        fullnamelang: "en"(s) "en"(s)
        slant: 0(i)(s)
        weight: 80(i)(s)
        width: 100(i)(s)
        foundry: "unknown"(s)
        file: "/usr/share/fonts/nafees-nastaleeq/NafeesNastaleeq.ttf"(s)
        index: 0(i)(s)
        outline: FcTrue(s)
        scalable: FcTrue(s)
        charset: 
        0000: 00000000 ffffffbf f8000001 78000001 00000000 00000002 00000000 00000000
        0006: 883ff00f 07fffdde 01dff976 42011c00 01020140 44008200 001c100e 03ff0000
        0025: 00000000 00000000 00000000 00000000 00000000 00000000 00001000 00000000
        00fd: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 2c040000
        00fe: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 08000000
(s)
        lang: ur|pa-pk|lah(s)
        fontversion: 65667(i)(s)
        capability: "otlayout:arab"(s)
        fontformat: "TrueType"(s)
        decorative: FcFalse(s)

The glyph coverage for Urdu looks like Nafees Nastaleeq is better than Urdu Nastaliq Unicode at least. though there seems a lot of fonts that support Urdu in the world, DajaVu, Kacst, Nafees, and PakType, and maybe more.
I can't figure out this is really better choice for Urdu and can't settle the kind of this issue so I'm always suggesting to have own recipes to give it a priority instead of changing the default font here because this is sort of subjective matter.
Comment 3 Gunnar Hjalmarsson 2014-04-10 21:10:36 UTC
Hi Akira,

Thanks for your informative reply! Following your advice, we fixed this in Ubuntu by adding an own recipe.

Marking this bug as "wontfix".

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.