Home | History | Annotate | Download | only in rs

Lines Matching refs:Font

34 Font::Font(Context *rsc) : ObjectBase(rsc), mCachedGlyphs(NULL) {
40 bool Font::init(const char *name, float fontSize, uint32_t dpi, const void *data, uint32_t dataLen) {
55 ALOGE("Unable to initialize font %s", name);
65 ALOGE("Unable to set font size on %s", name);
76 void Font::preDestroy() const {
86 void Font::invalidateTextureCache() {
92 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) {
112 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y,
138 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) {
160 void Font::renderUTF(const char *text, uint32_t len, int32_t x, int32_t y,
168 if (mode == Font::MEASURE) {
224 Font::CachedGlyphInfo* Font::getCachedUTFChar(int32_t utfChar) {
238 void Font::updateGlyphCache(CachedGlyphInfo *glyph) {
257 // Let the font state figure out where to put the bitmap
283 Font::CachedGlyphInfo *Font::cacheGlyph(uint32_t glyph) {
295 Font * Font::create(Context *rsc, const char *name, float fontSize, uint32_t dpi,
301 Font *ithFont = activeFonts[i];
307 Font *newFont = new Font(rsc);
319 Font::~Font() {
418 ALOGE("Font size to large to fit in cache. width, height = %i, %i", (int)bitmap->width, (int)bitmap->rows);
731 void FontState::precacheLatin(Font *font) {
737 font->getCachedUTFChar((int32_t)mLatinPrecache[precacheIdx]);
746 Font::RenderMode mode,
747 Font::Rect *bounds,
752 Font *currentFont = mRSC->getFont();
761 mDefault.set(Font::create(mRSC, fullPath, 8, mRSC->getDPI()));
783 void FontState::measureText(const char *text, uint32_t len, Font::Rect *bounds) {
784 renderText(text, len, 0, 0, 0, -1, Font::MEASURE, bounds);
860 Font *newFont = Font::create(rsc, name, fontSize, dpi);
871 Font *newFont = Font::create(rsc, name, fontSize, dpi, data, data_length);