X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Ftext-abstraction%2Ffont-client.cpp;h=00b75288fcc859a8361e7d69e3bb277189921980;hb=064bd8be3d1eaa92475030caf03f732da76aaaaa;hp=43519c81634a96bb7b98812ff1905bd2a2a1e186;hpb=d5dbdfc03362471315d3086cbaa7c01d28535311;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/text-abstraction/font-client.cpp b/dali/devel-api/text-abstraction/font-client.cpp index 43519c8..00b7528 100644 --- a/dali/devel-api/text-abstraction/font-client.cpp +++ b/dali/devel-api/text-abstraction/font-client.cpp @@ -30,7 +30,7 @@ namespace TextAbstraction const PointSize26Dot6 FontClient::DEFAULT_POINT_SIZE = 768u; // 12*64 FontClient::GlyphBufferData::GlyphBufferData() -: buffer( NULL ), +: buffer( nullptr ), width( 0u ), height( 0u ), format( Pixel::A8 ) @@ -182,9 +182,9 @@ bool FontClient::GetGlyphMetrics( GlyphInfo* array, uint32_t size, GlyphType typ return GetImplementation(*this).GetGlyphMetrics( array, size, type, horizontal ); } -void FontClient::CreateBitmap( FontId fontId, GlyphIndex glyphIndex, GlyphBufferData& data, int outlineWidth ) +void FontClient::CreateBitmap( FontId fontId, GlyphIndex glyphIndex, bool softwareItalic, bool softwareBold, GlyphBufferData& data, int outlineWidth ) { - GetImplementation(*this).CreateBitmap( fontId, glyphIndex, data, outlineWidth ); + GetImplementation(*this).CreateBitmap( fontId, glyphIndex, softwareItalic, softwareBold, data, outlineWidth ); } PixelData FontClient::CreateBitmap( FontId fontId, GlyphIndex glyphIndex, int outlineWidth ) @@ -207,6 +207,11 @@ bool FontClient::IsColorGlyph( FontId fontId, GlyphIndex glyphIndex ) return GetImplementation(*this).IsColorGlyph( fontId, glyphIndex ); } +bool FontClient::AddCustomFontDirectory( const FontPath& path ) +{ + return GetImplementation(*this).AddCustomFontDirectory( path ); +} + FontClient::FontClient( Internal::FontClient* internal ) : BaseHandle( internal ) {