Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/font/
DFont.cpp141 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, in measureCachedGlyph() argument
143 int width = (int) glyph->mBitmapWidth; in measureCachedGlyph()
144 int height = (int) glyph->mBitmapHeight; in measureCachedGlyph()
146 int nPenX = x + glyph->mBitmapLeft; in measureCachedGlyph()
147 int nPenY = y + glyph->mBitmapTop; in measureCachedGlyph()
163 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, in drawCachedGlyph() argument
165 float width = (float) glyph->mBitmapWidth; in drawCachedGlyph()
166 float height = (float) glyph->mBitmapHeight; in drawCachedGlyph()
168 float nPenX = x + glyph->mBitmapLeft; in drawCachedGlyph()
169 float nPenY = y + glyph->mBitmapTop + height; in drawCachedGlyph()
[all …]
DFontUtil.h43 #define GET_METRICS(cache, glyph) cache->getGlyphIDMetrics(glyph) argument
45 #define IS_END_OF_STRING(glyph) false argument
56 #define GET_METRICS(cache, glyph) cache->getUnicharMetrics(glyph) argument
58 #define IS_END_OF_STRING(glyph) glyph < 0 argument
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,
DCacheTexture.cpp233 bool CacheTexture::fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_t* retOriginY) { in fitBitmap() argument
234 switch (glyph.fMaskFormat) { in fitBitmap()
255 ALOGD("fitBitmap: unknown glyph format %x encountered", glyph.fMaskFormat); in fitBitmap()
260 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > mHeight) { in fitBitmap()
264 uint16_t glyphW = glyph.fWidth + TEXTURE_BORDER_SIZE; in fitBitmap()
265 uint16_t glyphH = glyph.fHeight + TEXTURE_BORDER_SIZE; in fitBitmap()
DCacheTexture.h93 bool fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_t* retOriginY);
/frameworks/rs/
DrsFont.cpp93 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) { in drawCachedGlyph() argument
96 int32_t nPenX = x + glyph->mBitmapLeft; in drawCachedGlyph()
97 int32_t nPenY = y - glyph->mBitmapTop + glyph->mBitmapHeight; in drawCachedGlyph()
99 float u1 = glyph->mBitmapMinU; in drawCachedGlyph()
100 float u2 = glyph->mBitmapMaxU; in drawCachedGlyph()
101 float v1 = glyph->mBitmapMinV; in drawCachedGlyph()
102 float v2 = glyph->mBitmapMaxV; in drawCachedGlyph()
104 int32_t width = (int32_t) glyph->mBitmapWidth; in drawCachedGlyph()
105 int32_t height = (int32_t) glyph->mBitmapHeight; in drawCachedGlyph()
113 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.cpp62 uint16_t glyph = codepoint; in SkiaGetGlyphWidthAndExtents() local
64 paint->getTextWidths(&glyph, sizeof(glyph), &skWidth, &skBounds); in SkiaGetGlyphWidthAndExtents()
79 …a, hb_codepoint_t unicode, hb_codepoint_t variationSelector, hb_codepoint_t* glyph, void* userData) in harfbuzzGetGlyph() argument
93 *glyph = glyph16; in harfbuzzGetGlyph()
94 return !!*glyph; in harfbuzzGetGlyph()
97 …zGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData) in harfbuzzGetGlyphHorizontalAdvance() argument
102 SkiaGetGlyphWidthAndExtents(hbFontData->m_paint, glyph, &advance, 0); in harfbuzzGetGlyphHorizontalAdvance()
106 …etGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_t* x,… in harfbuzzGetGlyphHorizontalOrigin() argument
113 static hb_bool_t harfbuzzGetGlyphExtents(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, h… in harfbuzzGetGlyphExtents() argument
117 SkiaGetGlyphWidthAndExtents(hbFontData->m_paint, glyph, 0, extents); in harfbuzzGetGlyphExtents()
DMinikinSkia.cpp35 bool MinikinFontSkia::GetGlyph(uint32_t codepoint, uint32_t *glyph) const { in GetGlyph()
41 *glyph = glyph16; in GetGlyph()
DMinikinSkia.h31 bool GetGlyph(uint32_t codepoint, uint32_t *glyph) const;
/frameworks/minikin/libs/minikin/
DMinikinFontFreeType.cpp41 bool MinikinFontFreeType::GetGlyph(uint32_t codepoint, uint32_t *glyph) const { in GetGlyph()
43 *glyph = glyph_index; in GetGlyph()
83 error = FT_Render_Glyph(mTypeface->glyph, FT_RENDER_MODE_NORMAL); in Render()
87 FT_Bitmap &bitmap = mTypeface->glyph->bitmap; in Render()
91 result->left = mTypeface->glyph->bitmap_left; in Render()
92 result->top = mTypeface->glyph->bitmap_top; in Render()
DLayout.cpp308 …a, hb_codepoint_t unicode, hb_codepoint_t variationSelector, hb_codepoint_t* glyph, void* userData) in harfbuzzGetGlyph() argument
321 *glyph = glyph_id; in harfbuzzGetGlyph()
326 …zGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData) in harfbuzzGetGlyphHorizontalAdvance() argument
330 float advance = font->GetHorizontalAdvance(glyph, *paint); in harfbuzzGetGlyphHorizontalAdvance()
334 …etGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_t* x,… in harfbuzzGetGlyphHorizontalOrigin() argument
384 const LayoutGlyph& glyph = mGlyphs[i]; in dump() local
385 std::cout << glyph.glyph_id << ": " << glyph.x << ", " << glyph.y << std::endl; in dump()
749 LayoutGlyph glyph = {font_ix, glyph_ix, x + xoff, y + yoff}; in doLayoutRun() local
750 mGlyphs.push_back(glyph); in doLayoutRun()
791 LayoutGlyph glyph = {font_ix, glyph_id, x, y}; in appendLayout() local
[all …]
/frameworks/base/libs/hwui/
DFontRenderer.cpp209 const SkGlyph& glyph, uint32_t* startX, uint32_t* startY) { in cacheBitmapInTexture() argument
211 if (cacheTextures[i]->fitBitmap(glyph, startX, startY)) { in cacheBitmapInTexture()
219 void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, in cacheBitmap() argument
225 if (glyph.fWidth == 0 || glyph.fHeight == 0) { in cacheBitmap()
234 SkMask::Format format = static_cast<SkMask::Format>(glyph.fMaskFormat); in cacheBitmap()
252 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > in cacheBitmap()
255 (int) glyph.fWidth, (int) glyph.fHeight); in cacheBitmap()
263 CacheTexture* cacheTexture = cacheBitmapInTexture(*cacheTextures, glyph, &startX, &startY); in cacheBitmap()
270 cacheTexture = cacheBitmapInTexture(*cacheTextures, glyph, &startX, &startY); in cacheBitmap()
284 uint32_t endX = startX + glyph.fWidth; in cacheBitmap()
[all …]
DFontRenderer.h149 void cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph,
151 CacheTexture* cacheBitmapInTexture(Vector<CacheTexture*>& cacheTextures, const SkGlyph& glyph,
/frameworks/minikin/sample/
DMinikinSkia.cpp17 bool MinikinFontSkia::GetGlyph(uint32_t codepoint, uint32_t *glyph) const { in GetGlyph()
23 *glyph = glyph16; in GetGlyph()
25 return !!glyph; in GetGlyph()
DMinikinSkia.h9 bool GetGlyph(uint32_t codepoint, uint32_t *glyph) const;
/frameworks/minikin/include/minikin/
DMinikinFontFreeType.h45 bool GetGlyph(uint32_t codepoint, uint32_t *glyph) const;
DMinikinFont.h85 virtual bool GetGlyph(uint32_t codepoint, uint32_t *glyph) const = 0;
/frameworks/base/docs/html/guide/topics/text/
Dcreating-input-method.jd363 If your IME does text prediction or requires multiple steps to compose a glyph or
/frameworks/base/docs/html/about/versions/
Djelly-bean.jd100 when using multiple fonts or complex glyph sets (CJK), higher rendering quality
1307 <li>Better glyph support for Japanese users (renders Japanese-specific versions of glyphs when syst…