[Fonts]Adding language information for TrueType fonts

2002-07-07 Thread Keith Packard
Many TrueType fonts include an OS/2 table which holds codePageRange bits. These bits indicate the old OS/2 code pages supported by the font, and hence indirectly indicate which languages the font is intended to support. These tables, however, are quite primitive, indicating support for only

Re: [Fonts]Re: [I18n]language tags in fontconfig

2002-07-07 Thread Pablo Saratxaga
Kaixo! On Sat, Jul 06, 2002 at 03:33:40AM -0700, Keith Packard wrote: I don't know why all of the latin languages include and ', it's probably just a mistake; they're easily removed. For the '' I agree; but the apostrophe may be very important for some languages (eg: French, English)

[Fonts]fcfreetype.c

2002-07-07 Thread Yu Shao
Hi Keith, It seems a typo and I think using FcCodePageSet is always safer? Shao diff -uNr fcfreetype.c.orig fcfreetype.c --- fcfreetype.c.origSun Jul 7 22:25:37 2002 +++ fcfreetype.cSun Jul 7 22:27:49 2002 @@ -365,7 +365,7 @@ if (matchCodePage[i]) { if

Re: [Fonts]fcfreetype.c

2002-07-07 Thread Keith Packard
Around 22 o'clock on Jul 7, Yu Shao wrote: It seems a typo and I think using FcCodePageSet is always safer? Good catch, there was a typo, but that code has since been deleted in favor of the new RFC 3066-based language detection. Keith PackardXFree86 Core TeamHP Cambridge

[Fonts]Re: [I18n]Unicode coverage for languages

2002-07-07 Thread Keith Packard
Around 23 o'clock on Jul 7, Roger So wrote: Certainly; but have you considered the case that zh-HK and zh-MO users prefer zh-TW fonts over zh-CN fonts, and vice versa for zh-SG? (What other Chinese-speaking regions are there... perhaps zh-MY?) Yes, each language-country pair may specify

Re: [Fonts] [I18n] language tags in fontconfig

2002-07-07 Thread Dr Andrew C Aitchison
Keith Packard wrote: I got the European coverage information from http://www.everytype.com/alphabets I can't find www.everytype.com in the DNS, is that a typo ? I'm curious because I can't understand the differences between xc/lib/fontconfig/fc-lang/en.orth and

[Fonts]Re: [I18n]Unicode coverage for languages

2002-07-07 Thread Roger So
On Sat, 2002-07-06 at 13:34, Keith Packard wrote: My plan is to have fonts advertise the complete set of languages that they cover, and then to allow them to further distinguish languages with country codes as needed (zh-TW vs zh-CN). Now matching can take place using the language tags;

Re: [Fonts] [I18n] language tags in fontconfig

2002-07-07 Thread Keith Packard
Around 10 o'clock on Jul 7, Dr Andrew C Aitchison wrote: I'm curious because I can't understand the differences between xc/lib/fontconfig/fc-lang/en.orth and xc/lib/fontconfig/fc-lang/fr.orth In particular I remember 00e1 (a acute/Ã)¡ but not00f1 (n tilda/Ã) from my French lessons.

[Fonts]Using current locale in font selection

2002-07-07 Thread Keith Packard
Much as I hate the C locale model, I'm wondering if I shouldn't use the current locale as a language hint where applications don't provide explicit language information when selecting fonts. This would make the generic aliases (like sans-serif) pick a font appropriate for the locale instead