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

/frameworks/base/core/jni/android/graphics/
H A DHarfBuzzNGFaceSkia.cpp64 uint16_t glyph = codepoint; local
66 paint->getTextWidths(&glyph, sizeof(glyph), &skWidth, &skBounds);
68 ALOGD("returned glyph for %i: width = %f", codepoint, skWidth);
81 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
95 *glyph = glyph16;
96 return !!*glyph;
99 static hb_position_t harfbuzzGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData) argument
104 SkiaGetGlyphWidthAndExtents(hbFontData->m_paint, glyph, &advance, 0);
108 static hb_bool_t harfbuzzGetGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_ argument
115 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.cpp231 bool CacheTexture::fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_t* retOriginY) { argument
232 switch (glyph.fMaskFormat) {
253 ALOGD("fitBitmap: unknown glyph format %x encountered", glyph.fMaskFormat);
258 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > getHeight()) {
262 uint16_t glyphW = glyph.fWidth + TEXTURE_BORDER_SIZE;
263 uint16_t glyphH = glyph.fHeight + TEXTURE_BORDER_SIZE;
273 // Store glyph in this block iff: it fits the block's remaining space and:
274 // it's the remainder space (mY == 0) or there's only enough height for this one glyph
280 // Only enough space for this glyph
[all...]
H A DFont.cpp140 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, argument
142 int width = (int) glyph->mBitmapWidth;
143 int height = (int) glyph->mBitmapHeight;
145 int nPenX = x + glyph->mBitmapLeft;
146 int nPenY = y + glyph->mBitmapTop;
162 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, argument
164 float width = (float) glyph->mBitmapWidth;
165 float height = (float) glyph->mBitmapHeight;
167 float nPenX = x + glyph->mBitmapLeft;
168 float nPenY = y + glyph
181 drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument
211 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument
242 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
407 glyph_t glyph = GET_GLYPH(text); local
430 updateGlyphCache(const SkPaint* paint, const SkGlyph& skiaGlyph, SkGlyphCache* skiaGlyphCache, CachedGlyphInfo* glyph, bool precaching) argument
474 cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching) argument
[all...]
/frameworks/base/libs/hwui/
H A DFontRenderer.cpp195 const SkGlyph& glyph, uint32_t* startX, uint32_t* startY) {
197 if (cacheTextures[i]->fitBitmap(glyph, startX, startY)) {
201 // Could not fit glyph into current cache textures
205 void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, argument
209 // If the glyph bitmap is empty let's assum the glyph is valid
211 if (glyph.fWidth == 0 || glyph.fHeight == 0) {
219 // choose an appropriate cache texture list for this glyph format
220 SkMask::Format format = static_cast<SkMask::Format>(glyph
194 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...]
/frameworks/minikin/libs/minikin/
H A DLayout.cpp315 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
322 *glyph = glyph_id;
327 static hb_position_t harfbuzzGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData) argument
331 float advance = font->GetHorizontalAdvance(glyph, *paint);
335 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
385 const LayoutGlyph& glyph = mGlyphs[i]; local
386 std::cout << glyph.glyph_id << ": " << glyph.x << ", " << glyph.y << std::endl;
766 hb_codepoint_t glyph; local
800 LayoutGlyph glyph = {font_ix, glyph_ix, x + xoff, y + yoff}; local
847 LayoutGlyph glyph = {font_ix, glyph_id, x, y}; local
873 const LayoutGlyph& glyph = mGlyphs[i]; local
894 const LayoutGlyph& glyph = mGlyphs[i]; local
899 const LayoutGlyph& glyph = mGlyphs[i]; local
904 const LayoutGlyph& glyph = mGlyphs[i]; local
909 const LayoutGlyph& glyph = mGlyphs[i]; local
914 const LayoutGlyph& glyph = mGlyphs[i]; local
[all...]

Completed in 106 milliseconds