Lines Matching full:font
30 #include "Font.h"
40 // Font
43 Font::Font(FontRenderer* state, const Font::FontDescription& desc) :
47 Font::FontDescription::FontDescription(const SkPaint* paint, const mat4& matrix) {
52 mFlags |= Font::kFakeBold;
64 ALOGW("Could not query the inverse lookup transform for this font");
68 Font::~Font() {
76 hash_t Font::FontDescription::hash() const {
91 int Font::FontDescription::compare(const Font::FontDescription& lhs,
92 const Font::FontDescription& rhs) {
133 void Font::invalidateTextureCache(CacheTexture* cacheTexture) {
142 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y,
164 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y,
183 void Font::drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y,
210 void Font::drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap,
230 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset,
270 CachedGlyphInfo* Font::getCachedGlyph(SkPaint* paint, glyph_t textUnit, bool precaching) {
286 void Font::render(SkPaint* paint, const char *text, uint32_t start, uint32_t len,
292 void Font::render(SkPaint* paint, const char *text, uint32_t start, uint32_t len,
342 void Font::measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len,
352 void Font::precache(SkPaint* paint, const char* text, int numGlyphs) {
373 void Font::render(SkPaint* paint, const char* text, uint32_t start, uint32_t len,
381 &android::uirenderer::Font::drawCachedGlyph,
382 &android::uirenderer::Font::drawCachedGlyphTransformed,
383 &android::uirenderer::Font::drawCachedGlyphBitmap,
384 &android::uirenderer::Font::drawCachedGlyphBitmap,
385 &android::uirenderer::Font::measureCachedGlyph,
386 &android::uirenderer::Font::measureCachedGlyph
419 void Font::updateGlyphCache(SkPaint* paint, const SkGlyph& skiaGlyph, SkGlyphCache* skiaGlyphCache,
463 CachedGlyphInfo* Font::cacheGlyph(SkPaint* paint, glyph_t glyph, bool precaching) {
477 Font* Font::create(FontRenderer* state, const SkPaint* paint, const mat4& matrix) {
479 Font* font = state->mActiveFonts.get(description);
481 if (!font) {
482 font = new Font(state, description);
483 state->mActiveFonts.put(description, font);
485 font->mIdentityTransform = matrix.isIdentity();
487 return font;