Lines Matching refs:Font
31 #include "Font.h"
38 // Font
41 Font::Font(FontRenderer* state, const Font::FontDescription& desc)
44 Font::FontDescription::FontDescription(const SkPaint* paint, const SkMatrix& rasterMatrix)
50 mFlags |= Font::kFakeBold;
59 ALOGW("Could not query the inverse lookup transform for this font");
63 Font::~Font() {
69 hash_t Font::FontDescription::hash() const {
84 int Font::FontDescription::compare(const Font::FontDescription& lhs,
85 const Font::FontDescription& rhs) {
126 void Font::invalidateTextureCache(CacheTexture* cacheTexture) {
135 void Font::measureCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap,
157 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW,
175 void Font::drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap,
204 void Font::drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap,
235 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset,
271 CachedGlyphInfo* Font::getCachedGlyph(const SkPaint* paint, glyph_t textUnit, bool precaching) {
289 void Font::render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, int x, int y,
294 void Font::render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, const SkPath* path,
342 void Font::measure(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, Rect* bounds,
352 void Font::precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs) {
371 void Font::render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, int x, int y,
378 static RenderGlyph gRenderGlyph[] = {&android::uirenderer::Font::drawCachedGlyph,
379 &android::uirenderer::Font::drawCachedGlyphTransformed,
380 &android::uirenderer::Font::drawCachedGlyphBitmap,
381 &android::uirenderer::Font::drawCachedGlyphBitmap,
382 &android::uirenderer::Font::measureCachedGlyph,
383 &android::uirenderer::Font::measureCachedGlyph};
417 void Font::updateGlyphCache(const SkPaint* paint, const SkGlyph& skiaGlyph,
461 CachedGlyphInfo* Font::cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching) {
476 Font* Font::create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix) {
478 Font* font = state->mActiveFonts.get(description);
480 if (!font) {
481 font = new Font(state, description);
482 state->mActiveFonts.put(description, font);
484 font->mIdentityTransform = matrix.isIdentity();
486 return font;