/frameworks/base/libs/hwui/font/ |
FontCacheHistoryTracker.cpp | 25 void FontCacheHistoryTracker::dumpCachedGlyph(String8& log, const CachedGlyph& glyph) { 26 log.appendFormat("glyph (texture %p, position: (%d, %d), size: %dx%d, gen: %d)", glyph.texture, 27 glyph.startX, glyph.startY, glyph.bitmapW, glyph.bitmapH, glyph.generation); 32 log.appendFormat(" glyph skipped in gen: %d\n", entry.glyph.generation) 77 CachedGlyph& glyph = mUploadHistory.next(); local 87 CachedGlyph& glyph = mUploadHistory.next(); local [all...] |
FontUtil.h | 39 #define GET_METRICS(cache, glyph) cache->getGlyphIDMetrics(glyph) 40 #define IS_END_OF_STRING(glyph) false
|
Font.cpp | 135 void Font::measureCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, 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, uint8_t* bitmap, uint32_t bitmapW, 159 float width = (float)glyph->mBitmapWidth; 160 float height = (float)glyph->mBitmapHeight; 162 float nPenX = x + glyph->mBitmapLeft; 163 float nPenY = y + glyph->mBitmapTop + height 322 glyph_t glyph = *(glyphs++); local 359 glyph_t glyph = *(glyphs++); local 389 glyph_t glyph = *(glyphs++); local [all...] |
/external/skia/src/core/ |
SkAutoKern.h | 25 SkScalar adjust(const SkGlyph& glyph) 27 // if (SkAbs32(glyph.fLsbDelta) > 47 || SkAbs32(glyph.fRsbDelta) > 47) 28 // printf("------- %d> L %d R %d\n", glyph.f_GlyphID, glyph.fLsbDelta, glyph.fRsbDelta); 31 int distort = fPrevRsbDelta - glyph.fLsbDelta; 33 fPrevRsbDelta = glyph.fRsbDelta; 42 SkScalar adjust = SkAutoKern_Adjust(fPrevRsbDelta, glyph.fLsbDelta); 43 fPrevRsbDelta = glyph.fRsbDelta [all...] |
SkTypeface_remote.cpp | 22 void SkScalerContextProxy::generateMetrics(SkGlyph* glyph) { 23 fRemote->generateMetricsAndImage(*this->typefaceProxy(), this->getRec(), &fAlloc, glyph); 26 void SkScalerContextProxy::generateImage(const SkGlyph& glyph) { 27 fRemote->generateImage(*this->typefaceProxy(), this->getRec(), glyph);
|
/external/skqp/src/core/ |
SkAutoKern.h | 25 SkScalar adjust(const SkGlyph& glyph) 27 // if (SkAbs32(glyph.fLsbDelta) > 47 || SkAbs32(glyph.fRsbDelta) > 47) 28 // printf("------- %d> L %d R %d\n", glyph.f_GlyphID, glyph.fLsbDelta, glyph.fRsbDelta); 31 int distort = fPrevRsbDelta - glyph.fLsbDelta; 33 fPrevRsbDelta = glyph.fRsbDelta; 42 SkScalar adjust = SkAutoKern_Adjust(fPrevRsbDelta, glyph.fLsbDelta); 43 fPrevRsbDelta = glyph.fRsbDelta [all...] |
SkTypeface_remote.cpp | 22 void SkScalerContextProxy::generateMetrics(SkGlyph* glyph) { 23 fRemote->generateMetrics(*this->typefaceProxy(), this->getRec(), glyph); 26 void SkScalerContextProxy::generateImage(const SkGlyph& glyph) { 27 fRemote->generateImage(*this->typefaceProxy(), this->getRec(), glyph);
|
/external/harfbuzz_ng/test/api/ |
test-ot-math.c | 185 hb_codepoint_t glyph; local 189 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph)); 190 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 0); // MathGlyphInfo not available 194 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph)); 195 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 0); // MathGlyphInfo empty 199 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph)); 200 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 0); // MathItalicsCorrectionInfo empty 204 g_assert(hb_font_get_glyph_from_name (hb_font, "space", -1, &glyph)); 205 g_assert_cmpint(hb_ot_math_get_glyph_italics_correction (hb_font, glyph), ==, 0); // Glyph without italic correction 220 hb_codepoint_t glyph; local 255 hb_codepoint_t glyph; local 281 hb_codepoint_t glyph; local 348 hb_codepoint_t glyph; local 414 hb_codepoint_t glyph; local 538 hb_codepoint_t glyph; local [all...] |
/external/freetype/src/pfr/ |
pfrgload.h | 5 /* FreeType PFR glyph loader (specification). */ 28 pfr_glyph_init( PFR_Glyph glyph, 32 pfr_glyph_done( PFR_Glyph glyph ); variable 36 pfr_glyph_load( PFR_Glyph glyph,
|
pfrgload.c | 5 /* FreeType PFR glyph loader (body). */ 33 /***** PFR GLYPH BUILDER *****/ 40 pfr_glyph_init( PFR_Glyph glyph, 43 FT_ZERO( glyph ); 45 glyph->loader = loader; 46 glyph->path_begun = 0; 53 pfr_glyph_done( PFR_Glyph glyph ) 55 FT_Memory memory = glyph->loader->memory; 58 FT_FREE( glyph->x_control ); 59 glyph->y_control = NULL [all...] |
pfrsbit.h | 27 pfr_slot_load_bitmap( PFR_Slot glyph,
|
/external/skia/src/gpu/text/ |
GrGlyphCache.cpp | 57 static inline GrMaskFormat get_packed_glyph_mask_format(const SkGlyph& glyph) { 58 SkMask::Format format = static_cast<SkMask::Format>(glyph.fMaskFormat); 76 static inline bool get_packed_glyph_bounds(SkGlyphCache* cache, const SkGlyph& glyph, 81 cache->findImage(glyph); 83 bounds->setXYWH(glyph.fLeft, glyph.fTop, glyph.fWidth, glyph.fHeight); 88 static inline bool get_packed_glyph_df_bounds(SkGlyphCache* cache, const SkGlyph& glyph, 93 cache->findImage(glyph); 277 GrGlyph* glyph = fPool.make<GrGlyph>(); local [all...] |
/external/skia/tools/fonts/ |
SkRandomScalerContext.cpp | 57 void SkRandomScalerContext::generateAdvance(SkGlyph* glyph) { 58 fProxy->getAdvance(glyph); 61 void SkRandomScalerContext::generateMetrics(SkGlyph* glyph) { 62 // Here we will change the mask format of the glyph 65 switch (glyph->getGlyphID() % 4) { 80 fProxy->getMetrics(glyph); 82 glyph->fMaskFormat = format; 88 fProxy->getPath(glyph->getPackedID(), &path); 97 glyph->fLeft = ibounds.fLeft; 98 glyph->fTop = ibounds.fTop [all...] |
SkTestScalerContext.cpp | 93 void SkTestTypeface::getAdvance(SkGlyph* glyph) { 95 glyph->fAdvanceX = SkFixedToFloat(fTestFont->fWidths[glyph->getGlyphID()]); 96 glyph->fAdvanceY = 0; 103 void SkTestTypeface::getMetrics(SkGlyph* glyph) { 104 SkGlyphID glyphID = glyph->getGlyphID(); 108 glyph->fAdvanceX = SkFixedToFloat(fTestFont->fWidths[glyphID]); 109 glyph->fAdvanceY = 0; 191 uint16_t glyph; variable 193 SkTypeface::kUTF32_Encoding, &glyph, 1) 198 this->getTestTypeface()->getAdvance(glyph); variable 207 this->getTestTypeface()->getMetrics(glyph); variable [all...] |
/external/skqp/tools/ |
SkRandomScalerContext.cpp | 57 void SkRandomScalerContext::generateAdvance(SkGlyph* glyph) { 58 fProxy->getAdvance(glyph); 61 void SkRandomScalerContext::generateMetrics(SkGlyph* glyph) { 62 // Here we will change the mask format of the glyph 65 switch (glyph->getGlyphID() % 4) { 80 fProxy->getMetrics(glyph); 82 glyph->fMaskFormat = format; 88 fProxy->getPath(glyph->getPackedID(), &path); 97 glyph->fLeft = ibounds.fLeft; 98 glyph->fTop = ibounds.fTop [all...] |
SkTestScalerContext.cpp | 93 void SkTestTypeface::getAdvance(SkGlyph* glyph) { 95 glyph->fAdvanceX = SkFixedToFloat(fTestFont->fWidths[glyph->getGlyphID()]); 96 glyph->fAdvanceY = 0; 103 void SkTestTypeface::getMetrics(SkGlyph* glyph) { 104 SkGlyphID glyphID = glyph->getGlyphID(); 108 glyph->fAdvanceX = SkFixedToFloat(fTestFont->fWidths[glyphID]); 109 glyph->fAdvanceY = 0; 191 uint16_t glyph; variable 193 SkTypeface::kUTF32_Encoding, &glyph, 1) 198 this->getTestTypeface()->getAdvance(glyph); variable 207 this->getTestTypeface()->getMetrics(glyph); variable [all...] |
/external/freetype/src/base/ |
ftglyph.c | 21 /* that can be used by client applications to easily retrieve glyph */ 63 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph; local 65 FT_Library library = FT_GLYPH( glyph )->library; 74 glyph->left = slot->bitmap_left; 75 glyph->top = slot->bitmap_top; 80 glyph->bitmap = slot->bitmap; 85 FT_Bitmap_Init( &glyph->bitmap ); 86 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap ); 113 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph; local 114 FT_Library library = FT_GLYPH( glyph )->library 125 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph; local 163 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph; local 195 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph; local 228 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph; local 243 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph; local 254 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph; local 295 FT_Glyph glyph = NULL; local 368 FT_Glyph glyph; local 535 FT_Glyph b, glyph; local [all...] |
/external/skia/src/ports/ |
SkScalerContext_win_dw.h | 32 void generateAdvance(SkGlyph* glyph) override; 33 void generateMetrics(SkGlyph* glyph) override; 34 void generateImage(const SkGlyph& glyph) override; 35 void generatePath(SkGlyphID glyph, SkPath* path) override; 39 const void* drawDWMask(const SkGlyph& glyph, 43 HRESULT getBoundingBox(SkGlyph* glyph, 48 bool isColorGlyph(const SkGlyph& glyph); 54 bool getColorGlyphRun(const SkGlyph& glyph, IDWriteColorGlyphRunEnumerator** colorGlyph); 56 void generateColorGlyphImage(const SkGlyph& glyph);
|
SkScalerContext_win_dw.cpp | 231 // horizontal glyphs and the subpixel flag should not affect glyph shapes. 379 void SkScalerContext_DW::generateAdvance(SkGlyph* glyph) { 383 glyph->fRsbDelta = 0; 384 glyph->fLsbDelta = 0; 386 glyph->fAdvanceX = 0; 387 glyph->fAdvanceY = 0; 389 uint16_t glyphId = glyph->getGlyphID(); 405 "Could not get gdi compatible glyph metrics."); 429 glyph->fAdvanceX = SkScalarToFloat(advance.fX); 430 glyph->fAdvanceY = SkScalarToFloat(advance.fY) [all...] |
/external/skqp/src/ports/ |
SkScalerContext_win_dw.h | 32 void generateAdvance(SkGlyph* glyph) override; 33 void generateMetrics(SkGlyph* glyph) override; 34 void generateImage(const SkGlyph& glyph) override; 35 void generatePath(SkGlyphID glyph, SkPath* path) override; 39 const void* drawDWMask(const SkGlyph& glyph, 43 HRESULT getBoundingBox(SkGlyph* glyph, 48 bool isColorGlyph(const SkGlyph& glyph); 54 bool getColorGlyphRun(const SkGlyph& glyph, IDWriteColorGlyphRunEnumerator** colorGlyph); 56 void generateColorGlyphImage(const SkGlyph& glyph);
|
SkScalerContext_win_dw.cpp | 231 // horizontal glyphs and the subpixel flag should not affect glyph shapes. 379 void SkScalerContext_DW::generateAdvance(SkGlyph* glyph) { 383 glyph->fRsbDelta = 0; 384 glyph->fLsbDelta = 0; 386 glyph->fAdvanceX = 0; 387 glyph->fAdvanceY = 0; 389 uint16_t glyphId = glyph->getGlyphID(); 405 "Could not get gdi compatible glyph metrics."); 429 glyph->fAdvanceX = SkScalarToFloat(advance.fX); 430 glyph->fAdvanceY = SkScalarToFloat(advance.fY) [all...] |
/external/skqp/src/gpu/text/ |
GrAtlasGlyphCache.cpp | 210 static inline GrMaskFormat get_packed_glyph_mask_format(const SkGlyph& glyph) { 211 SkMask::Format format = static_cast<SkMask::Format>(glyph.fMaskFormat); 229 static inline bool get_packed_glyph_bounds(SkGlyphCache* cache, const SkGlyph& glyph, 234 cache->findImage(glyph); 236 bounds->setXYWH(glyph.fLeft, glyph.fTop, glyph.fWidth, glyph.fHeight); 241 static inline bool get_packed_glyph_df_bounds(SkGlyphCache* cache, const SkGlyph& glyph, 246 cache->findImage(glyph); 431 GrGlyph* glyph = fPool.make<GrGlyph>(); local [all...] |
/external/harfbuzz_ng/src/ |
hb-ot-math.cc | 87 * @glyph: glyph index from which to retrieve the value 89 * Return value: the italics correction of the glyph or 0 95 hb_codepoint_t glyph) 98 return math.get_math_glyph_info().get_italics_correction (glyph, font); 104 * @glyph: glyph index from which to retrieve the value 106 * Return value: the top accent attachment of the glyph or 0 112 hb_codepoint_t glyph) 115 return math.get_math_glyph_info().get_top_accent_attachment (glyph, font) [all...] |
hb-font-private.hh | 195 hb_codepoint_t glyph; local 196 return get_nominal_glyph (unicode, &glyph); 200 hb_codepoint_t *glyph) 202 *glyph = 0; 204 unicode, glyph, 209 hb_codepoint_t *glyph) 211 *glyph = 0; 213 unicode, variation_selector, glyph, 217 inline hb_position_t get_glyph_h_advance (hb_codepoint_t glyph) 220 glyph, [all...] |
/external/wayland/cursor/ |
convert_font.c | 45 struct glyph { struct 58 struct glyph *glyphs; 137 extracted_font.glyphs = calloc(count, sizeof(struct glyph)); 141 struct glyph *glyph = &extracted_font.glyphs[i]; local 142 glyph->left_bearing = 144 glyph->right_bearing = 146 glyph->width = ((int16_t) m[i].character_width) - 0x80; 147 glyph->ascent = ((int16_t) m[i].character_ascent) - 0x80; 148 glyph->descent = ((int16_t) m[i].character_descent) - 0x80 223 struct glyph *glyph = &extracted_font.glyphs[i]; local [all...] |