Vasile Gaburici
2008-Jul-19 20:00 UTC
[Fontconfig] Is code point substitution inside the same font possible with fontconfing?
Briefly, I want to alter the code point of a request before passing it to the font library (freetype2 in my case). The recoding that needs to happen is from U+021A/B to U+162/3. This is quite useful for new Romanian documents rendered with old/free Type-1 fonts (details here: https://fedoraproject.org/wiki/L10N/Tasks/Ro_fonts#Type-1_fonts_need_an_additional_mapping_from_U.2B021A.2FB_to_U.2B162.2F3) Microsoft''s Uniscribe does this automagically for type-1 fonts (but not for OTF/CFF ones, which handle stuff like this with GSUB tables). I''m trying to implement this behavior using fontconfig, but after carefully reading the manual for the config file, it doesn''t seem possible. Do I have to write a C hack, or am I missing something?
Nicolas Mailhot
2008-Jul-19 21:08 UTC
[Fontconfig] Is code point substitution inside the same font possible with fontconfing?
Le samedi 19 juillet 2008 ? 23:00 +0300, Vasile Gaburici a ?crit :> Briefly, I want to alter the code point of a request before passing it > to the font library (freetype2 in my case). The recoding that needs to > happen is from U+021A/B to U+162/3. This is quite useful for new > Romanian documents rendered with old/free Type-1 fonts (details here: > https://fedoraproject.org/wiki/L10N/Tasks/Ro_fonts#Type-1_fonts_need_an_additional_mapping_from_U.2B021A.2FB_to_U.2B162.2F3)See also http://fedoraproject.org/wiki/Talk:L10N/Tasks/Ro_fonts -- Nicolas Mailhot -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20080719/245e1eee/attachment.pgp
Keith Packard
2008-Jul-19 23:21 UTC
[Fontconfig] Is code point substitution inside the same font possible with fontconfing?
On Sat, 2008-07-19 at 23:00 +0300, Vasile Gaburici wrote:> Do I have to write a C hack, or am I missing something?Yup, you''ll want to go hack the fontconfig code itself so that the correct language support is registered. Then, if you application also happens to use the fontconfig glyph lookup code (does anyone use that at this point?) things will work fine. Otherwise, you''ll also have to change your application or toolkit. -- keith.packard at intel.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20080719/cab00981/attachment.pgp
Behdad Esfahbod
2008-Jul-20 19:08 UTC
[Fontconfig] Is code point substitution inside the same font possible with fontconfing?
On Sat, 2008-07-19 at 16:21 -0700, Keith Packard wrote:> fontconfig glyph lookup code (does anyone use that at this point?)Pango does. Cairo doesn''t. Should I make cairo do too? -- behdad http://behdad.org/ "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." -- Benjamin Franklin, 1759
Keith Packard
2008-Jul-21 15:35 UTC
[Fontconfig] Is code point substitution inside the same font possible with fontconfing?
On Sun, 2008-07-20 at 20:08 +0100, Behdad Esfahbod wrote:> On Sat, 2008-07-19 at 16:21 -0700, Keith Packard wrote: > > fontconfig glyph lookup code (does anyone use that at this point?) > > Pango does. Cairo doesn''t. Should I make cairo do too?It''s not a terrible idea; fontconfig deals with a few oddities including postscript symbol fonts. Of course, using bare cairo Unicode functions isn''t the best plan, but there''s no reason to make it even less useful. -- keith.packard at intel.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20080721/a2a433fb/attachment.pgp