X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=text%2Fdali%2Fdevel-api%2Ftext-abstraction%2Ffont-client.h;h=8c8cfca8de4e6101c7e99f02841d4c4a5e46bd92;hb=refs%2Fchanges%2F55%2F155655%2F1;hp=8b0164e43e2c30428d2eef7bad728eeeed9d7636;hpb=c374b4e9228657117409c8761063dd3cba715b07;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 8b0164e..8c8cfca 100644 --- a/text/dali/devel-api/text-abstraction/font-client.h +++ b/text/dali/devel-api/text-abstraction/font-client.h @@ -2,7 +2,7 @@ #define DALI_PLATFORM_TEXT_ABSTRACTION_FONT_CLIENT_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -200,6 +200,16 @@ public: PointSize26Dot6 GetPointSize( FontId id ); /** + * @brief Whether the given @p character is supported by the font. + * + * @param[in] fontId The id of the font. + * @param[in] character The character. + * + * @return @e true if the character is supported by the font. + */ + bool IsCharacterSupportedByFont( FontId fontId, Character character ); + + /** * @brief Find the default font for displaying a UTF-32 character. * * This is useful when localised strings are provided for multiple languages @@ -343,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.