change font resources(medium weight500->600)
authorSungyeon Woo <s.woo@samsung.com>
Wed, 3 Apr 2013 13:58:44 +0000 (22:58 +0900)
committerSungyeon Woo <s.woo@samsung.com>
Wed, 3 Apr 2013 14:04:30 +0000 (23:04 +0900)
Change-Id: I38c133fc8ef6b961d30f68bb70304f6099433a85
Signed-off-by: Sungyeon Woo <s.woo@samsung.com>
src/graphics/FGrp_FontFt2.cpp

index dd86c4a..4c1b9bd 100644 (file)
@@ -62,6 +62,8 @@ const long _DEFAULT_RES = 72;
 const unsigned long _INDEX_FIRST = 32;       // in first resource, the first chracter(space)
 const unsigned long _INDEX_COUNT = 95;       // first resource character count
 
+const long _MEDIUM_FONT_BOLD_WEIGHT = 600;
+
 bool
 _CompareFamilyForTitling(const char* pFamilyName)
 {
@@ -643,7 +645,7 @@ _FontFt2::LoadGlyph(unsigned long character, Glyph** ppFontGlyphData)
        {
                FT_Error errCode = 1;
 
-               bool isSynthetic = (__fontAttrib.style & _IFont::STYLE_BOLD) && (__fontProperty.weightClass < 500);
+               bool isSynthetic = (__fontAttrib.style & _IFont::STYLE_BOLD) && (__fontProperty.weightClass < _MEDIUM_FONT_BOLD_WEIGHT);
 
                if (isSynthetic)
                {
@@ -908,7 +910,7 @@ _FontFt2::GetGlyphList(const _Util::String& reorderedText, Tizen::Base::Collecti
 
        FT_Error error = 1;
 
-       bool isSynthetic = (__fontAttrib.style & _IFont::STYLE_BOLD) && (__fontProperty.weightClass < 500);
+       bool isSynthetic = (__fontAttrib.style & _IFont::STYLE_BOLD) && (__fontProperty.weightClass < _MEDIUM_FONT_BOLD_WEIGHT);
 
        for (unsigned int i = 0; i < glyphList.GetCount(); i++)
        {