[Fontconfig] Re: Patch to improve support for localized font family and style names

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

 



Openoffice doesn't work at non-utf8 locale, patch attached.
Mike FABIAN wrote:
> Patrick Lam <plam@xxxxxxx> ????????:
> 
> 
>>Mike FABIAN wrote:
>>
>>>With Zhe Su's new patch, the localized font names for traditional
>>>Chinese are also shown in simplified Chinese locales and vice versa.
>>
>>Ill commit that patch as soon as cvs.freedesktop.org is no longer
>>broken.  Of course, that also might mean that the mailing list might be
>>broken too...
> 
> 
> Thank you.
> 
> cvs.freedesktop.org appears to work OK today and I have updated the
> SuSE packages for fontconfig to the latest CVS snapshot of the
> fontconfig 1.4 branch.
> 
> Packages for SuSE Linux 10.0 are in
> 
>     ftp://ftp.suse.com/pub/projects/m17n/10.0
> 

-------------- next part --------------
--- psprint/source/fontmanager/fontconfig.cxx.orig	2005-10-22 14:16:22.000000000 +0800
+++ psprint/source/fontmanager/fontconfig.cxx	2005-10-22 14:17:47.000000000 +0800
@@ -400,7 +400,7 @@ bool PrintFontManager::initFontconfig()
             if( aFonts.empty() )
                 continue;
 
-            int nFamilyName = m_pAtoms->getAtom( ATOM_FAMILYNAME, OStringToOUString( OString( (sal_Char*)family ), osl_getThreadTextEncoding() ), sal_True );
+            int nFamilyName = m_pAtoms->getAtom( ATOM_FAMILYNAME, OStringToOUString( OString( (sal_Char*)family ), RTL_TEXTENCODING_UTF8 ), sal_True );
             PrintFont* pUpdate = aFonts.front();
             if( ++aFonts.begin() != aFonts.end() ) // more than one font
             {

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux