X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Ftext%2Fbitmap-font.h;h=0d463df6c106d4862881d7a81cc4a6791bdd71ca;hp=ca068b440e93360945f4efa2f32ff3b6ef59489c;hb=8bd6da23805f5ee7c029a0e00d4c9bef93e539c0;hpb=6e1032b5996011523338aa4bc5cdbeffcfc71ad5 diff --git a/dali-toolkit/devel-api/text/bitmap-font.h b/dali-toolkit/devel-api/text/bitmap-font.h index ca068b4..0d463df 100755 --- a/dali-toolkit/devel-api/text/bitmap-font.h +++ b/dali-toolkit/devel-api/text/bitmap-font.h @@ -52,14 +52,26 @@ struct DALI_TOOLKIT_API Glyph Glyph(); /** + * @brief Constructor. + * + * Initialize the members with the given values. + * + * @param[in] url The url of the bitmap for that glyph. + * @param[in] utf8 The utf8 codification of the glyph. + * @param[in] ascender The ascender of the glyph. + * @param[in] descender The descender of the glyph. + */ + Glyph( const std::string& url, const std::string utf8, float ascender, float descender ); + + /** * @brief Default destructor. */ ~Glyph(); - std::string url; ///< The url of the glyph. - std::string utf8; ///< the glyph encoded in utf8 - float ascender; ///< The ascender. The distance from the base line to the top of the glyph. - float descender; ///< The descender. The distance from the base line to the bottom of the glyph. + std::string url; ///< The url of the glyph. + uint8_t utf8[4]; ///< the glyph encoded in utf8 + float ascender; ///< The ascender. The distance from the base line to the top of the glyph. + float descender; ///< The descender. The distance from the base line to the bottom of the glyph. }; /** @@ -83,6 +95,7 @@ struct DALI_TOOLKIT_API BitmapFontDescription std::string name; ///< Name of the font. float underlinePosition; ///< The position of the underline from the base line. float underlineThickness; ///< The thickness of the underline. + bool isColorFont:1; ///< Whether the glyphs of this font have their own colors. }; /**