/frameworks/base/libs/hwui/font/ |
H A D | FontUtil.h | 44 #define GET_METRICS(cache, glyph) cache->getGlyphIDMetrics(glyph) 45 #define IS_END_OF_STRING(glyph) false
|
H A D | Font.cpp | 135 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...] |
H A D | Font.h | 124 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 D | CacheTexture.cpp | 215 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 D | CacheTexture.h | 38 * When we add a glyph to the cache, we see if it fits within one of the existing columns that 39 * have already been started (this is the case if the glyph fits vertically as well as 42 * glyph fits, we check the final node, which is the remaining space in the cache, creating 92 bool fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_t* retOriginY);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | HarfBuzzNGFaceSkia.cpp | 64 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/rs/ |
H A D | rsFont.cpp | 93 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 D | rsFont.h | 83 // (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/libs/minikin/ |
H A D | MinikinFontFreeType.cpp | 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 D | Layout.cpp | 289 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...] |
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.cpp | 72 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 D | FontRenderer.cpp | 201 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...] |
H A D | FontRenderer.h | 146 void cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, 148 CacheTexture* cacheBitmapInTexture(std::vector<CacheTexture*>& cacheTextures, const SkGlyph& glyph,
|
/frameworks/base/tools/fonts/ |
H A D | fontchain_lint.py | 113 reverse_cmap = {glyph: code for code, glyph in emoji_map.items()} 118 for base, glyph in vs_dict[vs]: 119 if glyph is None: 122 emoji_map[(base, vs)] = glyph 133 sequence = [reverse_cmap[glyph] for glyph in sequence] 279 '%s and %s should map to the same glyph.' % ( 283 for glyph in set(coverage.values()): 284 maps_to_glyph = [seq for seq in coverage if coverage[seq] == glyph] [all...] |