/frameworks/base/libs/hwui/font/ |
H A D | FontUtil.h | 43 #define GET_METRICS(cache, glyph) cache->getGlyphIDMetrics(glyph) 45 #define IS_END_OF_STRING(glyph) false 56 #define GET_METRICS(cache, glyph) cache->getUnicharMetrics(glyph) 58 #define IS_END_OF_STRING(glyph) glyph < 0
|
H A D | Font.cpp | 142 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, argument 144 int nPenX = x + glyph->mBitmapLeft; 145 int nPenY = y + glyph->mBitmapTop; 147 int width = (int) glyph->mBitmapWidth; 148 int height = (int) glyph->mBitmapHeight; 164 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, argument 166 float nPenX = x + glyph->mBitmapLeft; 167 float nPenY = y + glyph->mBitmapTop + glyph->mBitmapHeight; 169 float width = (float) glyph 183 drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 210 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument 230 drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset, SkPathMeasure& measure, SkPoint* position, SkVector* tangent) argument 322 glyph_t glyph = GET_GLYPH(text); local 361 glyph_t glyph = GET_GLYPH(text); local 396 glyph_t glyph = GET_GLYPH(text); local 419 updateGlyphCache(SkPaint* paint, const SkGlyph& skiaGlyph, SkGlyphCache* skiaGlyphCache, CachedGlyphInfo* glyph, bool precaching) argument 463 cacheGlyph(SkPaint* paint, glyph_t glyph, bool precaching) argument [all...] |
H A D | Font.h | 120 CachedGlyphInfo* cacheGlyph(SkPaint* paint, glyph_t glyph, bool precaching); 122 CachedGlyphInfo* glyph, bool precaching); 124 void measureCachedGlyph(CachedGlyphInfo* glyph, int x, int y, 127 void drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, 130 void drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y, 133 void drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, 136 void drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset,
|
H A D | CacheTexture.cpp | 233 bool CacheTexture::fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_t* retOriginY) { argument 234 switch (glyph.fMaskFormat) { 255 ALOGD("fitBitmap: unknown glyph format %x encountered", glyph.fMaskFormat); 260 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > mHeight) { 264 uint16_t glyphW = glyph.fWidth + TEXTURE_BORDER_SIZE; 265 uint16_t glyphH = glyph.fHeight + TEXTURE_BORDER_SIZE; 275 // Store glyph in this block iff: it fits the block's remaining space and: 276 // it's the remainder space (mY == 0) or there's only enough height for this one glyph 282 // Only enough space for this glyph [all...] |
H A D | CacheTexture.h | 39 * When we add a glyph to the cache, we see if it fits within one of the existing columns that 40 * have already been started (this is the case if the glyph fits vertically as well as 43 * glyph fits, we check the final node, which is the remaining space in the cache, creating 93 bool fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_t* retOriginY);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | HarfBuzzNGFaceSkia.cpp | 62 uint16_t glyph = codepoint; local 64 paint->getTextWidths(&glyph, sizeof(glyph), &skWidth, &skBounds); 66 ALOGD("returned glyph for %i: width = %f", codepoint, skWidth); 79 static hb_bool_t harfbuzzGetGlyph(hb_font_t* hbFont, void* fontData, hb_codepoint_t unicode, hb_codepoint_t variationSelector, hb_codepoint_t* glyph, void* userData) argument 93 *glyph = glyph16; 94 return !!*glyph; 97 static hb_position_t harfbuzzGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData) argument 102 SkiaGetGlyphWidthAndExtents(hbFontData->m_paint, glyph, &advance, 0); 106 static hb_bool_t harfbuzzGetGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_ argument 113 harfbuzzGetGlyphExtents(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_glyph_extents_t* extents, void* userData) argument [all...] |
/frameworks/rs/ |
H A D | rsFont.cpp | 93 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) { argument 96 int32_t nPenX = x + glyph->mBitmapLeft; 97 int32_t nPenY = y - glyph->mBitmapTop + glyph->mBitmapHeight; 99 float u1 = glyph->mBitmapMinU; 100 float u2 = glyph->mBitmapMaxU; 101 float v1 = glyph->mBitmapMinV; 102 float v2 = glyph->mBitmapMaxV; 104 int32_t width = (int32_t) glyph->mBitmapWidth; 105 int32_t height = (int32_t) glyph 113 drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 139 measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) argument 239 updateGlyphCache(CachedGlyphInfo *glyph) argument 284 cacheGlyph(uint32_t glyph) argument 328 CachedGlyphInfo *glyph = mCachedGlyphs.valueAt(i); local [all...] |
H A D | rsFont.h | 83 // (each glyph may be longer than a char because we are dealing with utf data) 95 // Location of the cached glyph in the bitmap 110 // Values below contain a glyph's origin in the bitmap 130 CachedGlyphInfo *cacheGlyph(uint32_t glyph); 131 void updateGlyphCache(CachedGlyphInfo *glyph); 132 void measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds); 133 void drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y); 134 void drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, 215 // Texture to cache glyph bitmaps
|
/frameworks/base/libs/hwui/ |
H A D | FontRenderer.cpp | 70 ALOGD("TextSetupFunctor: called with unknown glyph format %x", glyphFormat); 208 const SkGlyph& glyph, uint32_t* startX, uint32_t* startY) { 210 if (cacheTextures[i]->fitBitmap(glyph, startX, startY)) { 214 // Could not fit glyph into current cache textures 218 void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, argument 222 // If the glyph bitmap is empty let's assum the glyph is valid 224 if (glyph.fWidth == 0 || glyph.fHeight == 0) { 232 // choose an appropriate cache texture list for this glyph forma 207 cacheBitmapInTexture(Vector<CacheTexture*>& cacheTextures, const SkGlyph& glyph, uint32_t* startX, uint32_t* startY) argument [all...] |
H A D | FontRenderer.h | 151 void cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, 153 CacheTexture* cacheBitmapInTexture(Vector<CacheTexture*>& cacheTextures, const SkGlyph& glyph,
|