Searched refs:glyph (Results 1 - 18 of 18) sorted by relevance

/frameworks/base/libs/hwui/font/
H A DFontUtil.h43 #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 DFont.cpp141 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...]
H A DFont.h124 CachedGlyphInfo* cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching);
126 SkGlyphCache* skiaGlyphCache, CachedGlyphInfo* glyph, bool precaching);
128 void measureCachedGlyph(CachedGlyphInfo* glyph, int x, int y,
131 void drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y,
134 void drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y,
137 void drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y,
140 void drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset,
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 DCacheTexture.h39 * 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/minikin/libs/minikin/
H A DMinikinFontFreeType.cpp41 bool MinikinFontFreeType::GetGlyph(uint32_t codepoint, uint32_t *glyph) const {
43 *glyph = glyph_index;
83 error = FT_Render_Glyph(mTypeface->glyph, FT_RENDER_MODE_NORMAL);
87 FT_Bitmap &bitmap = mTypeface->glyph->bitmap;
91 result->left = mTypeface->glyph->bitmap_left;
92 result->top = mTypeface->glyph->bitmap_top;
H A DLayout.cpp308 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...]
/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...]
H A DMinikinSkia.h31 bool GetGlyph(uint32_t codepoint, uint32_t *glyph) const;
H A DMinikinSkia.cpp35 bool MinikinFontSkia::GetGlyph(uint32_t codepoint, uint32_t *glyph) const {
41 *glyph = glyph16;
63 ALOGD("width for typeface %d glyph %d = %f", mTypeface->uniqueID(), glyph_id, skWidth);
/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...]
H A DrsFont.h83 // (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/minikin/sample/
H A DMinikinSkia.h9 bool GetGlyph(uint32_t codepoint, uint32_t *glyph) const;
H A DMinikinSkia.cpp17 bool MinikinFontSkia::GetGlyph(uint32_t codepoint, uint32_t *glyph) const {
23 *glyph = glyph16;
24 //printf("glyph for U+%04x = %d\n", codepoint, glyph16);
25 return !!glyph;
43 ALOGD("width for typeface %d glyph %d = %f", mTypeface->uniqueID(), glyph_id
/frameworks/minikin/include/minikin/
H A DMinikinFontFreeType.h45 bool GetGlyph(uint32_t codepoint, uint32_t *glyph) const;
59 // glyph bitmaps is probably different depending on the
H A DMinikinFont.h85 virtual bool GetGlyph(uint32_t codepoint, uint32_t *glyph) const = 0;
/frameworks/base/libs/hwui/
H A DFontRenderer.cpp70 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...]
H A DFontRenderer.h149 void cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph,
151 CacheTexture* cacheBitmapInTexture(Vector<CacheTexture*>& cacheTextures, const SkGlyph& glyph,

Completed in 609 milliseconds