2011-07-19 19:16
12人阅读
评论(0)
收藏
举报
- Font的光栅化字符函数 <pre class="html" name="code"> virtual void rasterise(utf32 start_codepoint, utf32 end_codepoint) const;
- Font类里保存字符编码和字符图片的map如下
- //! Definition of CodepointMap type.
- typedef std::map<utf32, FontGlyph> CodepointMap;
- //! Contains mappings from code points to Image objects
- CodepointMap d_cp_map;
通过Font的
- const FontGlyph* getGlyphData(utf32 codepoint) const;
- 获取FontGlyph, 进而获取对应的字符图片
- //! Return the CEGUI::Image object rendered for this glyph.
- const Image* getImage() const
- { return d_image; }