Merge branch 'new_text' into tizen 26/38026/2
authorPaul Wisbey <p.wisbey@samsung.com>
Thu, 9 Apr 2015 15:51:36 +0000 (16:51 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 9 Apr 2015 17:53:24 +0000 (18:53 +0100)
Change-Id: I4084c10fec73a78eb03b2b1e25d8ca09479c1061

text/dali/internal/text-abstraction/font-client-plugin-impl.cpp

index ba1dd01..1947c7f 100644 (file)
@@ -489,6 +489,7 @@ bool FontClient::Plugin::GetGlyphMetrics( GlyphInfo* array,
     {
       FT_Face ftFace = mFontCache[fontId-1].mFreeTypeFace;
 
+#ifdef FREETYPE_BITMAP_SUPPORT
       // Check to see if we should be loading a Fixed Size bitmap?
       if ( mFontCache[fontId-1].mIsFixedSizeBitmap )
       {
@@ -508,6 +509,7 @@ bool FontClient::Plugin::GetGlyphMetrics( GlyphInfo* array,
         }
       }
       else
+#endif
       {
         int error = FT_Load_Glyph( ftFace, array[i].index, FT_LOAD_DEFAULT );
 
@@ -555,12 +557,14 @@ BufferImage FontClient::Plugin::CreateBitmap( FontId fontId,
 
     FT_Error error;
 
+#ifdef FREETYPE_BITMAP_SUPPORT
     // Check to see if this is fixed size bitmap
     if ( mFontCache[fontId-1].mIsFixedSizeBitmap )
     {
       error = FT_Load_Glyph( ftFace, glyphIndex, FT_LOAD_COLOR );
     }
     else
+#endif
     {
       error = FT_Load_Glyph( ftFace, glyphIndex, FT_LOAD_DEFAULT );
     }
@@ -848,6 +852,7 @@ void FontClient::Plugin::ConvertBitmap( BufferImage& destBitmap,
         break;
       }
 
+#ifdef FREETYPE_BITMAP_SUPPORT
       case FT_PIXEL_MODE_BGRA:
       {
         if ( srcBitmap.pitch == static_cast< int >( srcBitmap.width << 2 ) )
@@ -859,6 +864,7 @@ void FontClient::Plugin::ConvertBitmap( BufferImage& destBitmap,
         }
         break;
       }
+#endif
       default:
       {
         DALI_LOG_ERROR( "FontClient Unable to create Bitmap of this PixelType\n" );