X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=text%2Fdali%2Fdevel-api%2Ftext-abstraction%2Ffont-client.h;h=cf0c0b109ad739d5082b881ca06b411e8f68dff7;hb=refs%2Fchanges%2F84%2F154784%2F1;hp=0a8474d3e13fdf0a15fe31cf2fc44e1c5d2b8d0f;hpb=19b0dbdb5f2d7d3c43950bfd0e8c31d975e6d23c;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/text/dali/devel-api/text-abstraction/font-client.h b/text/dali/devel-api/text-abstraction/font-client.h index 0a8474d..cf0c0b1 100644 --- a/text/dali/devel-api/text-abstraction/font-client.h +++ b/text/dali/devel-api/text-abstraction/font-client.h @@ -353,18 +353,20 @@ public: * @param[in] fontId The identifier of the font. * @param[in] glyphIndex The index of a glyph within the specified font. * @param[out] data The bitmap data. + * @param[in] outlineWidth The width of the glyph outline in pixels. */ - void CreateBitmap( FontId fontId, GlyphIndex glyphIndex, GlyphBufferData& data ); + void CreateBitmap( FontId fontId, GlyphIndex glyphIndex, GlyphBufferData& data, int outlineWidth ); /** * @brief Create a bitmap representation of a glyph. * * @param[in] fontId The identifier of the font. * @param[in] glyphIndex The index of a glyph within the specified font. + * @param[in] outlineWidth The width of the glyph outline in pixels. * * @return A valid BufferImage, or an empty handle if the glyph could not be rendered. */ - PixelData CreateBitmap( FontId fontId, GlyphIndex glyphIndex ); + PixelData CreateBitmap( FontId fontId, GlyphIndex glyphIndex, int outlineWidth ); /** * @brief Create a vector representation of a glyph. @@ -403,6 +405,15 @@ public: */ bool IsColorGlyph( FontId fontId, GlyphIndex glyphIndex ); + /** + * @brief Add custom fonts directory + * + * @param[in] path to the fonts directory + * + * @return true if the fonts can be added. + */ + bool AddCustomFontDirectory( const char* path ); + public: // Not intended for application developers /** * @brief This constructor is used by FontClient::Get().