Lines Matching refs:Font
34 Font::Font(Context *rsc) : ObjectBase(rsc), mCachedGlyphs(NULL) { in Font() function in android::renderscript::Font
40 bool Font::init(const char *name, float fontSize, uint32_t dpi, const void *data, uint32_t dataLen)… in init()
76 void Font::preDestroy() const { in preDestroy()
86 void Font::invalidateTextureCache() { in invalidateTextureCache()
92 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) { in drawCachedGlyph()
112 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, in drawCachedGlyph()
138 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) { in measureCachedGlyph()
160 void Font::renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, in renderUTF()
168 if (mode == Font::MEASURE) { in renderUTF()
224 Font::CachedGlyphInfo* Font::getCachedUTFChar(int32_t utfChar) { in getCachedUTFChar()
238 void Font::updateGlyphCache(CachedGlyphInfo *glyph) { in updateGlyphCache()
283 Font::CachedGlyphInfo *Font::cacheGlyph(uint32_t glyph) { in cacheGlyph()
295 Font * Font::create(Context *rsc, const char *name, float fontSize, uint32_t dpi, in create()
301 Font *ithFont = activeFonts[i]; in create()
307 Font *newFont = new Font(rsc); in create()
319 Font::~Font() { in ~Font()
731 void FontState::precacheLatin(Font *font) { in precacheLatin()
746 Font::RenderMode mode, in renderText()
747 Font::Rect *bounds, in renderText()
752 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()
860 Font *newFont = Font::create(rsc, name, fontSize, dpi); in rsi_FontCreateFromFile()
871 Font *newFont = Font::create(rsc, name, fontSize, dpi, data, data_length); in rsi_FontCreateFromMemory()