neha gupta
2011-May-20 09:53 UTC
[Fontconfig] Fwd: [fontconfig] single unicode and multiple glyphs
---------- Forwarded message ---------- From: neha gupta <nehagupta0304 at gmail.com> Date: Fri, May 20, 2011 at 2:56 PM Subject: [fontconfig] single unicode and multiple glyphs To: fontconfig at fontconfig.org Hi All ? ? I have a use case where I have a single font file which contains different glyphs for different languages for a single unicode. ? ? e.g. ?a.ttf ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Lang1 ? ? ?Lang2 ? ? ? ? Lang3 ? ? ? ? ? Unicode ? ? ? ? ? ?0001 ? ? ? ? ? ?glyph1_1 ? glyph2_1 ? ?glyph3_1 ? ? ? ? ? ?0002 ? ? ? ? ? ?glyph1_2 ? glyph2_2 ? ?glyph3_2 ? ?Is it possible to acheive by fontconfig ? and which API ? ? ?Thanks to all in advance for guidance. With Regards Neha
pravin.d.s at gmail.com
2011-May-20 17:48 UTC
[Fontconfig] Fwd: [fontconfig] single unicode and multiple glyphs
On 20 May 2011 15:23, neha gupta <nehagupta0304 at gmail.com> wrote:> ---------- Forwarded message ---------- > From: neha gupta <nehagupta0304 at gmail.com> > Date: Fri, May 20, 2011 at 2:56 PM > Subject: [fontconfig] single unicode and multiple glyphs > To: fontconfig at fontconfig.org > > > Hi All > > I have a use case where I have a single font file which contains > different glyphs for different languages for a single unicode. > e.g. a.ttf > > Lang1 Lang2 Lang3 > Unicode > 0001 glyph1_1 glyph2_1 glyph3_1 > 0002 glyph1_2 glyph2_2 glyph3_2 > > Is it possible to acheive by fontconfig ? and which API ? > Thanks to all in advance for guidance. >Yes, This is possible using locl feature of open type, I have implement this in Lohit Devnagari fonts read http://pravin-s.blogspot.com/2010/12/looks-like-lohit-is-first-open-source.html Use case Nepali language has different shape for number 5 and 8 and few ligature as well. Required things are rendering engine should support locl feature of opentype font. Pango support it. Regards, Pravin S -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20110520/9fe699df/attachment.htm>