Use english font face names instead of system locale



Hi,

I'm trying to select fonts based on the english face names ('Regular', 'Bold' etc.) consistently and ignore the locale settings. Under linux and MacOS, this works if I do 

    setEnv("LC_CTYPE", "en-us");
    pango_font_map_list_families(PANGO_FONT_MAP(m_pFontMap), &m_ppFontFamilies, 
            &m_NumFontFamilies);

Under windows, the same code has no effect at all. If LC_CTYPE is set to 'en' or not set at all before program start, I get english results. If it's set to 'de', I get german results, and if it's set to 'C', I get e.g. ['Black', 'Normal', 'Negreta', 'Negreta cursiva', 'Cursiva'] for Arial, which seems to be a mixture of different randomly selected languages.

I'm confused. Is there an official way to say 'please use english for face names'? How does pango/fontconfig select the language to use for face names?

Thanks for any help,

  Uli

--
Any technology distinguishable from magic is insufficiently advanced.

Ulrich von Zadow | +49-172-7872715
Jabber: coder c-base org
Skype: uzadow





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]