/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/base/libs/hwui/font/ |
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 | Font.cpp | 141 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, argument 143 int width = (int) glyph->mBitmapWidth; 144 int height = (int) glyph->mBitmapHeight; 146 int nPenX = x + glyph->mBitmapLeft; 147 int nPenY = y + glyph->mBitmapTop; 163 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, argument 165 float width = (float) glyph->mBitmapWidth; 166 float height = (float) glyph->mBitmapHeight; 168 float nPenX = x + glyph->mBitmapLeft; 169 float nPenY = y + glyph 182 drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 212 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument 243 drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset, SkPathMeasure& measure, SkPoint* position, SkVector* tangent) argument 335 glyph_t glyph = GET_GLYPH(text); local 374 glyph_t glyph = GET_GLYPH(text); local 409 glyph_t glyph = GET_GLYPH(text); local 432 updateGlyphCache(const SkPaint* paint, const SkGlyph& skiaGlyph, SkGlyphCache* skiaGlyphCache, CachedGlyphInfo* glyph, bool precaching) argument 476 cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | FontRenderer.cpp | 70 ALOGD("TextSetupFunctor: called with unknown glyph format %x", glyphFormat); 209 const SkGlyph& glyph, uint32_t* startX, uint32_t* startY) { 211 if (cacheTextures[i]->fitBitmap(glyph, startX, startY)) { 215 // Could not fit glyph into current cache textures 219 void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, argument 223 // If the glyph bitmap is empty let's assum the glyph is valid 225 if (glyph.fWidth == 0 || glyph.fHeight == 0) { 233 // choose an appropriate cache texture list for this glyph forma 208 cacheBitmapInTexture(Vector<CacheTexture*>& cacheTextures, const SkGlyph& glyph, uint32_t* startX, uint32_t* startY) 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...] |
/frameworks/minikin/libs/minikin/ |
H A D | Layout.cpp | 308 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 321 *glyph = glyph_id; 326 static hb_position_t harfbuzzGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData) argument 330 float advance = font->GetHorizontalAdvance(glyph, *paint); 334 static hb_bool_t harfbuzzGetGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_t* x, hb_position_t* y, void* userData) argument 384 const LayoutGlyph& glyph = mGlyphs[i]; local 385 std::cout << glyph.glyph_id << ": " << glyph.x << ", " << glyph.y << std::endl; 749 LayoutGlyph glyph local 791 LayoutGlyph glyph = {font_ix, glyph_id, x, y}; local 817 const LayoutGlyph& glyph = mGlyphs[i]; local 838 const LayoutGlyph& glyph = mGlyphs[i]; local 843 const LayoutGlyph& glyph = mGlyphs[i]; local 848 const LayoutGlyph& glyph = mGlyphs[i]; local 853 const LayoutGlyph& glyph = mGlyphs[i]; local 858 const LayoutGlyph& glyph = mGlyphs[i]; local [all...] |