Searched defs:glyph (Results 1 - 7 of 7) 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
94 *glyph = glyph16;
95 return !!*glyph;
98 static hb_position_t harfbuzzGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData) argument
103 SkiaGetGlyphWidthAndExtents(hbFontData->m_paint, glyph, &advance, 0);
107 static hb_bool_t harfbuzzGetGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_ argument
114 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.cpp215 bool CacheTexture::fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_t* retOriginY) { argument
216 switch (glyph.fMaskFormat) {
237 ALOGD("fitBitmap: unknown glyph format %x encountered", glyph.fMaskFormat);
242 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > getHeight()) {
246 uint16_t glyphW = glyph.fWidth + TEXTURE_BORDER_SIZE;
247 uint16_t glyphH = glyph.fHeight + TEXTURE_BORDER_SIZE;
257 // Store glyph in this block iff: it fits the block's remaining space and:
258 // it's the remainder space (mY == 0) or there's only enough height for this one glyph
264 // Only enough space for this glyph
[all...]
H A DFont.cpp135 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, argument
137 int width = (int) glyph->mBitmapWidth;
138 int height = (int) glyph->mBitmapHeight;
140 int nPenX = x + glyph->mBitmapLeft;
141 int nPenY = y + glyph->mBitmapTop;
157 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, argument
159 float width = (float) glyph->mBitmapWidth;
160 float height = (float) glyph->mBitmapHeight;
162 float nPenX = x + glyph->mBitmapLeft;
163 float nPenY = y + glyph
176 drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument
206 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument
237 drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset, SkPathMeasure& measure, SkPoint* position, SkVector* tangent) argument
328 glyph_t glyph = *(glyphs++); local
365 glyph_t glyph = *(glyphs++); local
397 glyph_t glyph = *(glyphs++); local
420 updateGlyphCache(const SkPaint* paint, const SkGlyph& skiaGlyph, SkGlyphCache* skiaGlyphCache, CachedGlyphInfo* glyph, bool precaching) argument
464 cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching) argument
[all...]
/frameworks/base/libs/hwui/tests/common/
H A DTestUtils.cpp72 glyph_t glyph = autoCache.getCache()->unicharToGlyph(unichar); local
75 // push glyph and its relative position
76 outGlyphs->push_back(glyph);
88 paint.getTextWidths(&glyph, sizeof(glyph), &skWidth, NULL);
/frameworks/base/libs/hwui/
H A DFontRenderer.cpp201 const SkGlyph& glyph, uint32_t* startX, uint32_t* startY) {
203 if (cacheTextures[i]->fitBitmap(glyph, startX, startY)) {
207 // Could not fit glyph into current cache textures
211 void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, argument
215 // If the glyph bitmap is empty let's assum the glyph is valid
217 if (glyph.fWidth == 0 || glyph.fHeight == 0) {
225 // choose an appropriate cache texture list for this glyph format
226 SkMask::Format format = static_cast<SkMask::Format>(glyph
200 cacheBitmapInTexture(std::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.cpp289 hb_codepoint_t glyph, void* /* userData */) {
292 float advance = font->GetHorizontalAdvance(glyph, *paint);
297 hb_codepoint_t /* glyph */, hb_position_t* /* x */, hb_position_t* /* y */,
328 const LayoutGlyph& glyph = mGlyphs[i]; local
329 std::cout << glyph.glyph_id << ": " << glyph.x << ", " << glyph.y << std::endl;
797 hb_codepoint_t glyph; local
798 // Fallback to ASCII HYPHEN-MINUS if the font didn't have a glyph for HYPHEN. Note
802 if (!hb_font_get_glyph(hbFont, hyphenChar, 0, &glyph)) {
288 harfbuzzGetGlyphHorizontalAdvance(hb_font_t* , void* fontData, hb_codepoint_t glyph, void* ) argument
835 LayoutGlyph glyph = {font_ix, glyph_ix, x + xoff, y + yoff}; local
882 LayoutGlyph glyph = {font_ix, glyph_id, x, y}; local
908 const LayoutGlyph& glyph = mGlyphs[i]; local
931 const LayoutGlyph& glyph = mGlyphs[i]; local
936 const LayoutGlyph& glyph = mGlyphs[i]; local
941 const LayoutGlyph& glyph = mGlyphs[i]; local
946 const LayoutGlyph& glyph = mGlyphs[i]; local
951 const LayoutGlyph& glyph = mGlyphs[i]; local
[all...]

Completed in 156 milliseconds