Lines Matching defs:Font
29 #include "Font.h"
39 // Font
42 Font::Font(FontRenderer* state, const Font::FontDescription& desc) :
46 Font::FontDescription::FontDescription(const SkPaint* paint, const mat4& matrix) {
51 mFlags |= Font::kFakeBold;
63 ALOGW("Could not query the inverse lookup transform for this font");
67 Font::~Font() {
75 hash_t Font::FontDescription::hash() const {
90 int Font::FontDescription::compare(const Font::FontDescription& lhs,
91 const Font::FontDescription& rhs) {
132 void Font::invalidateTextureCache(CacheTexture* cacheTexture) {
141 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y,
163 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y,
182 void Font::drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y,
209 void Font::drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap,
229 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset,
269 CachedGlyphInfo* Font::getCachedGlyph(SkPaint* paint, glyph_t textUnit, bool precaching) {
285 void Font::render(SkPaint* paint, const char *text, uint32_t start, uint32_t len,
291 void Font::render(SkPaint* paint, const char *text, uint32_t start, uint32_t len,
341 void Font::measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len,
351 void Font::precache(SkPaint* paint, const char* text, int numGlyphs) {
372 void Font::render(SkPaint* paint, const char* text, uint32_t start, uint32_t len,
380 &android::uirenderer::Font::drawCachedGlyph,
381 &android::uirenderer::Font::drawCachedGlyphTransformed,
382 &android::uirenderer::Font::drawCachedGlyphBitmap,
383 &android::uirenderer::Font::drawCachedGlyphBitmap,
384 &android::uirenderer::Font::measureCachedGlyph,
385 &android::uirenderer::Font::measureCachedGlyph
418 void Font::updateGlyphCache(SkPaint* paint, const SkGlyph& skiaGlyph, CachedGlyphInfo* glyph,
462 CachedGlyphInfo* Font::cacheGlyph(SkPaint* paint, glyph_t glyph, bool precaching) {
475 Font* Font::create(FontRenderer* state, const SkPaint* paint, const mat4& matrix) {
477 Font* font = state->mActiveFonts.get(description);
479 if (!font) {
480 font = new Font(state, description);
481 state->mActiveFonts.put(description, font);
483 font->mIdentityTransform = matrix.isIdentity();
485 return font;