In the font-config of the TV, the priority is generally set in the order
of Korean -> Chinese font, but in the case of zh_CN, the priority is set
to Chinese -> Korean.
In the case of EFL and Clutter, font preference policy in Font-Config is
read according to setlocale information when setting font-family.
This part is missing in DALi.
Change-Id: I8d346eed5f7935f57c6c3267ef9e7b6c164fe516
// add a property to the pattern for the font family
FcPatternAddString( fontFamilyPattern, FC_FAMILY, reinterpret_cast<const FcChar8*>( fontDescription.family.c_str() ) );
+ // add a property to the pattern for local setting.
+ const char* locale = setlocale( LC_MESSAGES, NULL );
+ if( locale != NULL)
+ {
+ FcPatternAddString( fontFamilyPattern, FC_LANG, reinterpret_cast<const FcChar8*>( locale ) );
+ }
+
int width = FONT_WIDTH_TYPE_TO_INT[fontDescription.width];
if( width < 0 )
{