Lines Matching defs:Font

28 #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;
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,
157 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y,
176 void Font::drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y,
206 void Font::drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap,
237 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset,
277 CachedGlyphInfo* Font::getCachedGlyph(const SkPaint* paint, glyph_t textUnit, bool precaching) {
294 void Font::render(const SkPaint* paint, const glyph_t* glyphs,
300 void Font::render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs,
348 void Font::measure(const SkPaint* paint, const glyph_t* glyphs,
358 void Font::precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs) {
377 void Font::render(const SkPaint* paint, const glyph_t* glyphs,
385 &android::uirenderer::Font::drawCachedGlyph,
386 &android::uirenderer::Font::drawCachedGlyphTransformed,
387 &android::uirenderer::Font::drawCachedGlyphBitmap,
388 &android::uirenderer::Font::drawCachedGlyphBitmap,
389 &android::uirenderer::Font::measureCachedGlyph,
390 &android::uirenderer::Font::measureCachedGlyph
426 void Font::updateGlyphCache(const SkPaint* paint, const SkGlyph& skiaGlyph,
470 CachedGlyphInfo* Font::cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching) {
485 Font* Font::create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix) {
487 Font* font = state->mActiveFonts.get(description);
490 font = new Font(state, description);