• Home
  • Raw
  • Download

Lines Matching refs:paint

47 Font::FontDescription::FontDescription(const SkPaint* paint, const mat4& matrix) {  in FontDescription()  argument
48 mFontId = SkTypeface::UniqueID(paint->getTypeface()); in FontDescription()
49 mFontSize = paint->getTextSize(); in FontDescription()
51 if (paint->isFakeBoldText()) { in FontDescription()
54 mItalicStyle = paint->getTextSkewX(); in FontDescription()
55 mScaleX = paint->getTextScaleX(); in FontDescription()
56 mStyle = paint->getStyle(); in FontDescription()
57 mStrokeWidth = paint->getStrokeWidth(); in FontDescription()
58 mAntiAliasing = paint->isAntiAlias(); in FontDescription()
59 mHinting = paint->getHinting(); in FontDescription()
270 CachedGlyphInfo* Font::getCachedGlyph(SkPaint* paint, glyph_t textUnit, bool precaching) { in getCachedGlyph() argument
275 SkAutoGlyphCache autoCache(*paint, NULL, &mDescription.mLookupTransform); in getCachedGlyph()
277 updateGlyphCache(paint, skiaGlyph, autoCache.getCache(), cachedGlyph, precaching); in getCachedGlyph()
280 cachedGlyph = cacheGlyph(paint, textUnit, precaching); in getCachedGlyph()
286 void Font::render(SkPaint* paint, const char *text, uint32_t start, uint32_t len, in render() argument
288 render(paint, text, start, len, numGlyphs, x, y, FRAMEBUFFER, NULL, in render()
292 void Font::render(SkPaint* paint, const char *text, uint32_t start, uint32_t len, in render() argument
311 if (paint->getTextAlign() != SkPaint::kLeft_Align) { in render()
312 float textWidth = SkScalarToFloat(paint->measureText(text, len)); in render()
314 if (paint->getTextAlign() == SkPaint::kCenter_Align) { in render()
328 CachedGlyphInfo* cachedGlyph = getCachedGlyph(paint, glyph); in render()
342 void Font::measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len, in measure() argument
349 render(paint, text, start, len, numGlyphs, 0, 0, MEASURE, NULL, 0, 0, bounds, positions); in measure()
352 void Font::precache(SkPaint* paint, const char* text, int numGlyphs) { in precache() argument
368 CachedGlyphInfo* cachedGlyph = getCachedGlyph(paint, glyph, true); in precache()
373 void Font::render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, in render() argument
393 const SkPaint::Align align = paint->getTextAlign(); in render()
403 CachedGlyphInfo* cachedGlyph = getCachedGlyph(paint, glyph); in render()
419 void Font::updateGlyphCache(SkPaint* paint, const SkGlyph& skiaGlyph, SkGlyphCache* skiaGlyphCache, in updateGlyphCache() argument
463 CachedGlyphInfo* Font::cacheGlyph(SkPaint* paint, glyph_t glyph, bool precaching) { in cacheGlyph() argument
467 SkAutoGlyphCache autoCache(*paint, NULL, &mDescription.mLookupTransform); in cacheGlyph()
472 updateGlyphCache(paint, skiaGlyph, autoCache.getCache(), newGlyph, precaching); in cacheGlyph()
477 Font* Font::create(FontRenderer* state, const SkPaint* paint, const mat4& matrix) { in create() argument
478 FontDescription description(paint, matrix); in create()