• Home
  • Raw
  • Download

Lines Matching refs:Font

36 Font::Font(Context *rsc) : ObjectBase(rsc), mCachedGlyphs(NULL) {  in Font()  function in Font
42 bool Font::init(const char *name, float fontSize, uint32_t dpi, const void *data, uint32_t dataLen)… in init()
78 void Font::preDestroy() const { in preDestroy()
87 void Font::invalidateTextureCache() { in invalidateTextureCache()
93 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) { in drawCachedGlyph()
113 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, in drawCachedGlyph()
139 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) { in measureCachedGlyph()
161 void Font::renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, in renderUTF()
169 if (mode == Font::MEASURE) { in renderUTF()
225 Font::CachedGlyphInfo* Font::getCachedUTFChar(int32_t utfChar) { in getCachedUTFChar()
239 void Font::updateGlyphCache(CachedGlyphInfo *glyph) { in updateGlyphCache()
284 Font::CachedGlyphInfo *Font::cacheGlyph(uint32_t glyph) { in cacheGlyph()
296 Font * Font::create(Context *rsc, const char *name, float fontSize, uint32_t dpi, in create()
299 Vector<Font*> &activeFonts = rsc->mStateFont.mActiveFonts; in create()
302 Font *ithFont = activeFonts[i]; in create()
308 Font *newFont = new Font(rsc); in create()
320 Font::~Font() { in ~Font()
732 void FontState::precacheLatin(Font *font) { in precacheLatin()
747 Font::RenderMode mode, in renderText()
748 Font::Rect *bounds, in renderText()
753 Font *currentFont = mRSC->getFont(); in renderText()
761 mDefault.set(Font::create(mRSC, fullPath, 8, mRSC->getDPI())); in renderText()
783 void FontState::measureText(const char *text, uint32_t len, Font::Rect *bounds) { in measureText()
784 renderText(text, len, 0, 0, 0, -1, Font::MEASURE, bounds); in measureText()
863 Font *newFont = Font::create(rsc, name, fontSize, dpi); in rsi_FontCreateFromFile()
874 Font *newFont = Font::create(rsc, name, fontSize, dpi, data, data_length); in rsi_FontCreateFromMemory()