Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/font/
DFont.cpp62 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, in measureCachedGlyph() argument
64 int nPenX = x + glyph->mBitmapLeft; in measureCachedGlyph()
65 int nPenY = y + glyph->mBitmapTop; in measureCachedGlyph()
67 int width = (int) glyph->mBitmapWidth; in measureCachedGlyph()
68 int height = (int) glyph->mBitmapHeight; in measureCachedGlyph()
84 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, in drawCachedGlyph() argument
86 int nPenX = x + glyph->mBitmapLeft; in drawCachedGlyph()
87 int nPenY = y + glyph->mBitmapTop + glyph->mBitmapHeight; in drawCachedGlyph()
89 float u1 = glyph->mBitmapMinU; in drawCachedGlyph()
90 float u2 = glyph->mBitmapMaxU; in drawCachedGlyph()
[all …]
DFontUtil.h40 #define GET_METRICS(paint, glyph) paint->getGlyphMetrics(glyph) argument
42 #define IS_END_OF_STRING(glyph) false argument
53 #define GET_METRICS(paint, glyph) paint->getUnicharMetrics(glyph) argument
55 #define IS_END_OF_STRING(glyph) glyph < 0 argument
DFont.h99 CachedGlyphInfo* cacheGlyph(SkPaint* paint, glyph_t glyph, bool precaching);
100 void updateGlyphCache(SkPaint* paint, const SkGlyph& skiaGlyph, CachedGlyphInfo* glyph,
103 void measureCachedGlyph(CachedGlyphInfo* glyph, int x, int y,
106 void drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y,
109 void drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y,
112 void drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset,
DCacheTexture.cpp108 bool CacheTexture::fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_t* retOriginY) { in fitBitmap() argument
109 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > mHeight) { in fitBitmap()
113 uint16_t glyphW = glyph.fWidth + TEXTURE_BORDER_SIZE; in fitBitmap()
114 uint16_t glyphH = glyph.fHeight + TEXTURE_BORDER_SIZE; in fitBitmap()
DCacheTexture.h140 bool fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_t* retOriginY);
/frameworks/rs/
DrsFont.cpp91 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) { in drawCachedGlyph() argument
94 int32_t nPenX = x + glyph->mBitmapLeft; in drawCachedGlyph()
95 int32_t nPenY = y - glyph->mBitmapTop + glyph->mBitmapHeight; in drawCachedGlyph()
97 float u1 = glyph->mBitmapMinU; in drawCachedGlyph()
98 float u2 = glyph->mBitmapMaxU; in drawCachedGlyph()
99 float v1 = glyph->mBitmapMinV; in drawCachedGlyph()
100 float v2 = glyph->mBitmapMaxV; in drawCachedGlyph()
102 int32_t width = (int32_t) glyph->mBitmapWidth; in drawCachedGlyph()
103 int32_t height = (int32_t) glyph->mBitmapHeight; in drawCachedGlyph()
111 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, in drawCachedGlyph() argument
[all …]
DrsFont.h131 CachedGlyphInfo *cacheGlyph(uint32_t glyph);
132 void updateGlyphCache(CachedGlyphInfo *glyph);
133 void measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds);
134 void drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y);
135 void drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y,
/frameworks/base/core/jni/android/graphics/
DHarfbuzzSkia.cpp114 static HB_Error getOutlinePoint(HB_Font hbFont, HB_Glyph glyph, int flags, hb_uint32 point, in getOutlinePoint() argument
124 uint16_t glyph16 = glyph; in getOutlinePoint()
143 static void getGlyphMetrics(HB_Font hbFont, HB_Glyph glyph, HB_GlyphMetrics* metrics) in getGlyphMetrics() argument
148 uint16_t glyph16 = glyph; in getGlyphMetrics()
DTextLayoutCache.cpp712 jchar glyph = glyphBaseCount + in computeRunValues() local
715 ALOGD(" -- glyph[%d] = %d", i, glyph); in computeRunValues()
717 outGlyphs->add(glyph); in computeRunValues()
/frameworks/base/libs/hwui/
DFontRenderer.cpp158 CacheTexture* FontRenderer::cacheBitmapInTexture(const SkGlyph& glyph, in cacheBitmapInTexture() argument
161 if (mCacheTextures[i]->fitBitmap(glyph, startX, startY)) { in cacheBitmapInTexture()
169 void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, in cacheBitmap() argument
174 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > in cacheBitmap()
177 (int) glyph.fWidth, (int) glyph.fHeight); in cacheBitmap()
185 CacheTexture* cacheTexture = cacheBitmapInTexture(glyph, &startX, &startY); in cacheBitmap()
192 cacheTexture = cacheBitmapInTexture(glyph, &startX, &startY); in cacheBitmap()
206 uint32_t endX = startX + glyph.fWidth; in cacheBitmap()
207 uint32_t endY = startY + glyph.fHeight; in cacheBitmap()
218 uint8_t* bitmapBuffer = (uint8_t*) glyph.fImage; in cacheBitmap()
[all …]
DFontRenderer.h114 void cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph,
116 CacheTexture* cacheBitmapInTexture(const SkGlyph& glyph, uint32_t* startX, uint32_t* startY);
/frameworks/base/docs/html/guide/topics/text/
Dcreating-input-method.jd348 If your IME does text prediction or requires multiple steps to compose a glyph or
/frameworks/base/docs/html/about/versions/
Djelly-bean.jd736 <li>Better glyph support for Japanese users (renders Japanese-specific versions of glyphs when syst…