Home
last modified time | relevance | path

Searched refs:glyph (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/libs/hwui/font/
DFontCacheHistoryTracker.cpp25 void FontCacheHistoryTracker::dumpCachedGlyph(String8& log, const CachedGlyph& glyph) { in dumpCachedGlyph() argument
26 log.appendFormat("glyph (texture %p, position: (%d, %d), size: %dx%d, gen: %d)", glyph.texture, in dumpCachedGlyph()
27 glyph.startX, glyph.startY, glyph.bitmapW, glyph.bitmapH, glyph.generation); in dumpCachedGlyph()
32 log.appendFormat(" glyph skipped in gen: %d\n", entry.glyph.generation); in dumpRenderEntry()
35 dumpCachedGlyph(log, entry.glyph); in dumpRenderEntry()
40 void FontCacheHistoryTracker::dumpUploadEntry(String8& log, const CachedGlyph& glyph) { in dumpUploadEntry() argument
41 if (glyph.bitmapW == 0 && glyph.bitmapH == 0) { in dumpUploadEntry()
42 log.appendFormat(" cleared cachetexture %p in gen %d\n", glyph.texture, in dumpUploadEntry()
43 glyph.generation); in dumpUploadEntry()
46 dumpCachedGlyph(log, glyph); in dumpUploadEntry()
[all …]
DFont.cpp135 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, in measureCachedGlyph() argument
137 int width = (int) glyph->mBitmapWidth; in measureCachedGlyph()
138 int height = (int) glyph->mBitmapHeight; in measureCachedGlyph()
140 int nPenX = x + glyph->mBitmapLeft; in measureCachedGlyph()
141 int nPenY = y + glyph->mBitmapTop; in measureCachedGlyph()
157 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, in drawCachedGlyph() argument
159 float width = (float) glyph->mBitmapWidth; in drawCachedGlyph()
160 float height = (float) glyph->mBitmapHeight; in drawCachedGlyph()
162 float nPenX = x + glyph->mBitmapLeft; in drawCachedGlyph()
163 float nPenY = y + glyph->mBitmapTop + height; in drawCachedGlyph()
[all …]
DFont.h126 CachedGlyphInfo* cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching);
128 SkGlyphCache* skiaGlyphCache, CachedGlyphInfo* glyph, bool precaching);
130 void measureCachedGlyph(CachedGlyphInfo* glyph, int x, int y,
133 void drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y,
136 void drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y,
139 void drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y,
142 void drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset,
DFontUtil.h44 #define GET_METRICS(cache, glyph) cache->getGlyphIDMetrics(glyph) argument
45 #define IS_END_OF_STRING(glyph) false argument
DFontCacheHistoryTracker.h49 CachedGlyph glyph; member
54 static void dumpCachedGlyph(String8& log, const CachedGlyph& glyph);
56 static void dumpUploadEntry(String8& log, const CachedGlyph& glyph);
DCacheTexture.cpp226 bool CacheTexture::fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_t* retOriginY) { in fitBitmap() argument
227 switch (glyph.fMaskFormat) { in fitBitmap()
248 ALOGD("fitBitmap: unknown glyph format %x encountered", glyph.fMaskFormat); in fitBitmap()
253 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > getHeight()) { in fitBitmap()
257 uint16_t glyphW = glyph.fWidth + TEXTURE_BORDER_SIZE; in fitBitmap()
258 uint16_t glyphH = glyph.fHeight + TEXTURE_BORDER_SIZE; in fitBitmap()
DCacheTexture.h92 bool fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_t* retOriginY);
/frameworks/rs/
DrsFont.cpp92 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) { in drawCachedGlyph() argument
95 int32_t nPenX = x + glyph->mBitmapLeft; in drawCachedGlyph()
96 int32_t nPenY = y - glyph->mBitmapTop + glyph->mBitmapHeight; in drawCachedGlyph()
98 float u1 = glyph->mBitmapMinU; in drawCachedGlyph()
99 float u2 = glyph->mBitmapMaxU; in drawCachedGlyph()
100 float v1 = glyph->mBitmapMinV; in drawCachedGlyph()
101 float v2 = glyph->mBitmapMaxV; in drawCachedGlyph()
103 int32_t width = (int32_t) glyph->mBitmapWidth; in drawCachedGlyph()
104 int32_t height = (int32_t) glyph->mBitmapHeight; in drawCachedGlyph()
112 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, in drawCachedGlyph() argument
[all …]
DrsFont.h130 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,
/frameworks/base/core/jni/android/graphics/
DHarfBuzzNGFaceSkia.cpp66 uint16_t glyph = codepoint; in SkiaGetGlyphWidthAndExtents() local
68 paint->getTextWidths(&glyph, sizeof(glyph), &skWidth, &skBounds); in SkiaGetGlyphWidthAndExtents()
83 …a, hb_codepoint_t unicode, hb_codepoint_t variationSelector, hb_codepoint_t* glyph, void* userData) in harfbuzzGetGlyph() argument
96 *glyph = glyph16; in harfbuzzGetGlyph()
97 return !!*glyph; in harfbuzzGetGlyph()
100 …zGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData) in harfbuzzGetGlyphHorizontalAdvance() argument
105 SkiaGetGlyphWidthAndExtents(hbFontData->m_paint, glyph, &advance, 0); in harfbuzzGetGlyphHorizontalAdvance()
109 …etGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_t* x,… in harfbuzzGetGlyphHorizontalOrigin() argument
116 static hb_bool_t harfbuzzGetGlyphExtents(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, h… in harfbuzzGetGlyphExtents() argument
120 SkiaGetGlyphWidthAndExtents(hbFontData->m_paint, glyph, 0, extents); in harfbuzzGetGlyphExtents()
/frameworks/base/libs/hwui/
DFontRenderer.cpp198 const SkGlyph& glyph, uint32_t* startX, uint32_t* startY) { in cacheBitmapInTexture() argument
200 if (cacheTextures[i]->fitBitmap(glyph, startX, startY)) { in cacheBitmapInTexture()
208 void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, in cacheBitmap() argument
214 if (glyph.fWidth == 0 || glyph.fHeight == 0) { in cacheBitmap()
223 SkMask::Format format = static_cast<SkMask::Format>(glyph.fMaskFormat); in cacheBitmap()
241 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > in cacheBitmap()
244 (int) glyph.fWidth, (int) glyph.fHeight); in cacheBitmap()
252 CacheTexture* cacheTexture = cacheBitmapInTexture(*cacheTextures, glyph, &startX, &startY); in cacheBitmap()
259 cacheTexture = cacheBitmapInTexture(*cacheTextures, glyph, &startX, &startY); in cacheBitmap()
273 uint32_t endX = startX + glyph.fWidth; in cacheBitmap()
[all …]
DFontRenderer.h138 void cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph,
140 …CacheTexture* cacheBitmapInTexture(std::vector<CacheTexture*>& cacheTextures, const SkGlyph& glyph,
/frameworks/minikin/libs/minikin/
DLayout.cpp239 hb_codepoint_t glyph, void* /* userData */) { in harfbuzzGetGlyphHorizontalAdvance() argument
241 float advance = paint->font->GetHorizontalAdvance(glyph, *paint); in harfbuzzGetGlyphHorizontalAdvance()
297 const LayoutGlyph& glyph = mGlyphs[i]; in dump() local
298 std::cout << glyph.glyph_id << ": " << glyph.x << ", " << glyph.y << std::endl; in dump()
711 hb_codepoint_t glyph; in determineHyphenChar() local
715 if (hb_font_get_nominal_glyph(font, preferredHyphen, &glyph)) { in determineHyphenChar()
727 if (!hb_font_get_nominal_glyph(font, preferredHyphen, &glyph)) { in determineHyphenChar()
986 LayoutGlyph glyph = {font_ix, glyph_ix, x + xoff, y + yoff}; in doLayoutRun() local
987 mGlyphs.push_back(glyph); in doLayoutRun()
1045 LayoutGlyph glyph = {font_ix, glyph_id, x, y}; in appendLayout() local
[all …]
/frameworks/base/tools/fonts/
Dfontchain_lint.py115 reverse_cmap = {glyph: code for code, glyph in emoji_map.items()}
120 for base, glyph in vs_dict[vs]:
121 if glyph is None:
124 emoji_map[(base, vs)] = glyph
138 sequence = [reverse_cmap[glyph] for glyph in sequence]
301 for glyph in set(coverage.values()):
302 maps_to_glyph = [seq for seq in coverage if coverage[seq] == glyph]
315 glyph))
/frameworks/base/libs/hwui/tests/common/
DTestUtils.cpp97 glyph_t glyph = autoCache.getCache()->unicharToGlyph(unichar); in layoutTextUnscaled() local
101 outGlyphs->push_back(glyph); in layoutTextUnscaled()
113 paint.getTextWidths(&glyph, sizeof(glyph), &skWidth, NULL); in layoutTextUnscaled()