Searched defs:glyph (Results 1 - 5 of 5) sorted by relevance

/frameworks/base/core/jni/android/graphics/
H A DHarfBuzzNGFaceSkia.cpp62 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 DCacheTexture.cpp233 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 DFont.cpp142 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...]
/frameworks/base/libs/hwui/
H A DFontRenderer.cpp70 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...]
/frameworks/rs/
H A DrsFont.cpp93 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...]

Completed in 88 milliseconds