/external/freetype/src/base/ |
D | ftglyph.c | 61 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph; in ft_bitmap_glyph_init() local 63 FT_Library library = FT_GLYPH( glyph )->library; in ft_bitmap_glyph_init() 72 glyph->left = slot->bitmap_left; in ft_bitmap_glyph_init() 73 glyph->top = slot->bitmap_top; in ft_bitmap_glyph_init() 78 glyph->bitmap = slot->bitmap; in ft_bitmap_glyph_init() 83 FT_Bitmap_New( &glyph->bitmap ); in ft_bitmap_glyph_init() 84 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap ); in ft_bitmap_glyph_init() 111 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph; in ft_bitmap_glyph_done() local 112 FT_Library library = FT_GLYPH( glyph )->library; in ft_bitmap_glyph_done() 115 FT_Bitmap_Done( library, &glyph->bitmap ); in ft_bitmap_glyph_done() [all …]
|
/external/skia/src/core/ |
D | SkScalerContext.cpp | 223 SkScalerContext* SkScalerContext::getGlyphContext(const SkGlyph& glyph) { in getGlyphContext() argument 224 unsigned glyphID = glyph.getGlyphID(); in getGlyphContext() 234 SkDebugf("--- no context for glyph %x\n", glyph.getGlyphID()); in getGlyphContext() 282 void SkScalerContext::getAdvance(SkGlyph* glyph) { in getAdvance() argument 284 glyph->fMaskFormat = MASK_FORMAT_JUST_ADVANCE; in getAdvance() 288 this->getGlyphContext(*glyph)->generateAdvance(glyph); in getAdvance() 291 void SkScalerContext::getMetrics(SkGlyph* glyph) { in getMetrics() argument 292 this->getGlyphContext(*glyph)->generateMetrics(glyph); in getMetrics() 300 glyph->fLsbDelta = glyph->fRsbDelta = 0; in getMetrics() 304 if (0 == glyph->fWidth || 0 == glyph->fHeight) { in getMetrics() [all …]
|
D | SkGlyphCache.cpp | 156 SkGlyph* glyph = fGlyphHash[index]; in getGlyphIDAdvance() local 158 if (NULL == glyph || glyph->fID != id) { in getGlyphIDAdvance() 159 glyph = this->lookupMetrics(glyphID, kJustAdvance_MetricsType); in getGlyphIDAdvance() 160 fGlyphHash[index] = glyph; in getGlyphIDAdvance() 162 return *glyph; in getGlyphIDAdvance() 216 SkGlyph* glyph = fGlyphHash[index]; in getGlyphIDMetrics() local 218 if (NULL == glyph || glyph->fID != id) { in getGlyphIDMetrics() 219 RecordHashCollisionIf(glyph != NULL); in getGlyphIDMetrics() 220 glyph = this->lookupMetrics(glyphID, kFull_MetricsType); in getGlyphIDMetrics() 221 fGlyphHash[index] = glyph; in getGlyphIDMetrics() [all …]
|
/external/skia/src/ports/ |
D | SkFontHost_FreeType.cpp | 112 virtual void generateAdvance(SkGlyph* glyph); 113 virtual void generateMetrics(SkGlyph* glyph); 114 virtual void generateImage(const SkGlyph& glyph); 115 virtual void generatePath(const SkGlyph& glyph, SkPath* path); 118 virtual SkUnichar generateGlyphToChar(uint16_t glyph); 506 SkUnichar SkScalerContext_FreeType::generateGlyphToChar(uint16_t glyph) { in generateGlyphToChar() argument 512 if (glyphIndex == glyph) { in generateGlyphToChar() 535 void SkScalerContext_FreeType::generateAdvance(SkGlyph* glyph) { in generateAdvance() argument 544 glyph->zeroMetrics(); in generateAdvance() 551 error = FT_Get_Advance( fFace, glyph->getGlyphID(fBaseGlyphCount), in generateAdvance() [all …]
|
/external/skia/src/gl/ |
D | SkGLTextCache.cpp | 43 SkGLTextCache::Strike::findGlyph(const SkGlyph& glyph, int* offset) { in findGlyph() argument 45 SkDEBUGCODE(const int height = SkNextPow2(glyph.fHeight);) in findGlyph() 51 glyph.fID, sizeof(strike->fGlyphIDArray[0])); in findGlyph() 72 SkGLTextCache::Strike::addGlyphAndBind(const SkGlyph& glyph, in addGlyphAndBind() argument 75 SkASSERT(this->findGlyph(glyph, NULL) == NULL); in addGlyphAndBind() 76 const int height = SkNextPow2(glyph.fHeight); in addGlyphAndBind() 80 int rowBytes = glyph.rowBytes(); in addGlyphAndBind() 81 SkASSERT(rowBytes >= glyph.fWidth); in addGlyphAndBind() 88 strike = SkNEW_ARGS(Strike, (this, rowBytes, glyph.fHeight)); in addGlyphAndBind() 100 glyph.fHeight, gTextTextureFormat, gTextTextureType, in addGlyphAndBind() [all …]
|
/external/freetype/src/pshinter/ |
D | pshalgo.c | 443 PSH_Glyph glyph ) in psh_hint_align() argument 461 if ( ( dimension == 0 && !glyph->do_horz_hints ) || in psh_hint_align() 462 ( dimension == 1 && !glyph->do_vert_hints ) ) in psh_hint_align() 474 do_snapping = ( dimension == 0 && glyph->do_horz_snapping ) || in psh_hint_align() 475 ( dimension == 1 && glyph->do_vert_snapping ); in psh_hint_align() 520 psh_hint_align( parent, globals, dimension, glyph ); in psh_hint_align() 540 if ( glyph->do_stem_adjust ) in psh_hint_align() 671 PSH_Glyph glyph ) 689 if ( ( dimension == 0 && !glyph->do_horz_hints ) || 690 ( dimension == 1 && !glyph->do_vert_hints ) ) [all …]
|
/external/webkit/WebCore/platform/graphics/ |
D | GlyphWidthMap.h | 47 float widthForGlyph(Glyph glyph) in widthForGlyph() argument 49 return locatePage(glyph / GlyphWidthPage::size)->widthForGlyph(glyph); in widthForGlyph() 52 void setWidthForGlyph(Glyph glyph, float width) in setWidthForGlyph() argument 54 locatePage(glyph / GlyphWidthPage::size)->setWidthForGlyph(glyph, width); in setWidthForGlyph() 62 float widthForGlyph(Glyph glyph) const { return m_widths[glyph % size]; } in widthForGlyph() 63 void setWidthForGlyph(Glyph glyph, float width) in setWidthForGlyph() 65 setWidthForIndex(glyph % size, width); in setWidthForGlyph()
|
/external/webkit/WebCore/platform/graphics/haiku/ |
D | FontHaiku.cpp | 42 int charUnicodeToUTF8HACK(unsigned short glyph, char* out) in charUnicodeToUTF8HACK() argument 46 if (glyph < 0x0080) in charUnicodeToUTF8HACK() 47 out[i++] = static_cast<char>(glyph); in charUnicodeToUTF8HACK() 48 else if (glyph < 0x0800) { // 2 bytes in charUnicodeToUTF8HACK() 49 out[i++] = 0xc0 | (glyph >> 6); in charUnicodeToUTF8HACK() 50 out[i++] = 0x80 | (glyph & 0x3F); in charUnicodeToUTF8HACK() 51 } else if (glyph > 0x0800) { // 3 bytes in charUnicodeToUTF8HACK() 52 out[i++] = 0xe0 | (glyph >> 12); in charUnicodeToUTF8HACK() 53 out[i++] = 0x80 | ((glyph >> 6) & 0x3F); in charUnicodeToUTF8HACK() 54 out[i++] = 0x80 | (glyph & 0x3F); in charUnicodeToUTF8HACK()
|
/external/freetype/src/truetype/ |
D | ttgload.c | 420 load->glyph->control_len = 0; in TT_Load_Simple_Glyph() 421 load->glyph->control_data = 0; in TT_Load_Simple_Glyph() 449 load->glyph->control_len = n_ins; in TT_Load_Simple_Glyph() 450 load->glyph->control_data = load->exec->glyphIns; in TT_Load_Simple_Glyph() 748 if ( loader->glyph->control_len > 0xFFFFL ) in TT_Hint_Glyph() 752 loader->glyph->control_len )); in TT_Hint_Glyph() 754 n_ins = (FT_UInt)( loader->glyph->control_len ); in TT_Hint_Glyph() 1185 loader->glyph->control_data = loader->exec->glyphIns; in TT_Process_Composite_Glyph() 1186 loader->glyph->control_len = n_ins; in TT_Process_Composite_Glyph() 1517 loader->glyph->format = FT_GLYPH_FORMAT_COMPOSITE; in load_truetype_glyph() [all …]
|
/external/icu4c/samples/layout/ |
D | GnomeFontInstance.cpp | 137 void GnomeFontInstance::getGlyphAdvance(LEGlyphID glyph, LEPoint &advance) const in getGlyphAdvance() argument 142 if (glyph >= 0xFFFE) { in getGlyphAdvance() 148 error = FT_Load_Glyph(fFace, glyph, FT_LOAD_DEFAULT); in getGlyphAdvance() 154 advance.fX = fFace->glyph->metrics.horiAdvance >> 6; in getGlyphAdvance() 158 le_bool GnomeFontInstance::getGlyphPoint(LEGlyphID glyph, le_int32 pointNumber, LEPoint &point) con… in getGlyphPoint() argument 162 error = FT_Load_Glyph(fFace, glyph, FT_LOAD_DEFAULT); in getGlyphPoint() 168 if (pointNumber >= fFace->glyph->outline.n_points) { in getGlyphPoint() 172 point.fX = fFace->glyph->outline.points[pointNumber].x >> 6; in getGlyphPoint() 173 point.fY = fFace->glyph->outline.points[pointNumber].y >> 6; in getGlyphPoint() 185 TTGlyphID glyph = LE_GET_GLYPH(glyphs[in]); in rasterizeGlyphs() local [all …]
|
D | ScriptCompositeFontInstance.cpp | 36 void ScriptCompositeFontInstance::getGlyphAdvance(LEGlyphID glyph, LEPoint &advance) const in getGlyphAdvance() argument 39 le_int32 script = LE_GET_SUB_FONT(glyph); in getGlyphAdvance() 46 font->getGlyphAdvance(LE_GET_GLYPH(glyph), advance); in getGlyphAdvance() 50 le_bool ScriptCompositeFontInstance::getGlyphPoint(LEGlyphID glyph, le_int32 pointNumber, LEPoint &… in getGlyphPoint() argument 53 le_int32 script = LE_GET_SUB_FONT(glyph); in getGlyphPoint() 57 return font->getGlyphPoint(LE_GET_GLYPH(glyph), pointNumber, point); in getGlyphPoint() 99 LEGlyphID glyph = scriptFont->mapCharToGlyph(ch); in mapCharToGlyph() local 101 return LE_SET_GLYPH(subFont, glyph); in mapCharToGlyph()
|
/external/freetype/src/cff/ |
D | cffgload.c | 251 CFF_GlyphSlot glyph, in cff_builder_init() argument 258 builder->glyph = glyph; in cff_builder_init() 261 if ( glyph ) in cff_builder_init() 263 FT_GlyphLoader loader = glyph->root.internal->loader; in cff_builder_init() 280 builder->hints_funcs = glyph->root.internal->glyph_hints; in cff_builder_init() 310 CFF_GlyphSlot glyph = builder->glyph; in cff_builder_done() local 313 if ( glyph ) in cff_builder_done() 314 glyph->root.outline = *builder->base; in cff_builder_done() 767 FT_GlyphSlot glyph = (FT_GlyphSlot)builder->glyph; in cff_operator_seac() local 768 FT_GlyphLoader loader = glyph->internal->loader; in cff_operator_seac() [all …]
|
/external/icu4c/layout/ |
D | SingleSubstitutionSubtables.cpp | 45 LEGlyphID glyph = glyphIterator->getCurrGlyphID(); in process() local 46 le_int32 coverageIndex = getGlyphCoverage(glyph); in process() 49 TTGlyphID substitute = ((TTGlyphID) LE_GET_GLYPH(glyph)) + SWAPW(deltaGlyphID); in process() 51 if (filter == NULL || filter->accept(LE_SET_GLYPH(glyph, substitute))) { in process() 63 LEGlyphID glyph = glyphIterator->getCurrGlyphID(); in process() local 64 le_int32 coverageIndex = getGlyphCoverage(glyph); in process() 69 if (filter == NULL || filter->accept(LE_SET_GLYPH(glyph, substitute))) { in process()
|
D | LookupTables.cpp | 27 …gment *BinarySearchLookupTable::lookupSegment(const LookupSegment *segments, LEGlyphID glyph) const in lookupSegment() 32 TTGlyphID ttGlyph = (TTGlyphID) LE_GET_GLYPH(glyph); in lookupSegment() 56 …upSingle *BinarySearchLookupTable::lookupSingle(const LookupSingle *entries, LEGlyphID glyph) const in lookupSingle() 61 TTGlyphID ttGlyph = (TTGlyphID) LE_GET_GLYPH(glyph); in lookupSingle() 65 if (SWAPW(trial->glyph) <= ttGlyph) { in lookupSingle() 73 if (SWAPW(trial->glyph) <= ttGlyph) { in lookupSingle() 78 if (SWAPW(entry->glyph) == ttGlyph) { in lookupSingle()
|
D | SimpleArrayProcessor.cpp | 39 le_int32 glyph; in process() local 41 for (glyph = 0; glyph < glyphCount; glyph += 1) { in process() 42 LEGlyphID thisGlyph = glyphStorage[glyph]; in process() 46 glyphStorage[glyph] = LE_SET_GLYPH(thisGlyph, newGlyph); in process()
|
D | SingleTableProcessor.cpp | 39 le_int32 glyph; in process() local 42 for (glyph = 0; glyph < glyphCount; glyph += 1) { in process() 43 …st LookupSingle *lookupSingle = singleTableLookupTable->lookupSingle(entries, glyphStorage[glyph]); in process() 46 glyphStorage[glyph] = SWAPW(lookupSingle->value); in process()
|
D | SegmentSingleProcessor.cpp | 40 le_int32 glyph; in process() local 42 for (glyph = 0; glyph < glyphCount; glyph += 1) { in process() 43 LEGlyphID thisGlyph = glyphStorage[glyph]; in process() 49 glyphStorage[glyph] = LE_SET_GLYPH(thisGlyph, newGlyph); in process()
|
D | TrimmedArrayProcessor.cpp | 41 le_int32 glyph; in process() local 43 for (glyph = 0; glyph < glyphCount; glyph += 1) { in process() 44 LEGlyphID thisGlyph = glyphStorage[glyph]; in process() 50 glyphStorage[glyph] = LE_SET_GLYPH(thisGlyph, newGlyph); in process()
|
D | SegmentArrayProcessor.cpp | 40 le_int32 glyph; in process() local 42 for (glyph = 0; glyph < glyphCount; glyph += 1) { in process() 43 LEGlyphID thisGlyph = glyphStorage[glyph]; in process() 54 glyphStorage[glyph] = LE_SET_GLYPH(thisGlyph, newGlyph); in process()
|
/external/icu4c/test/letest/ |
D | letest.cpp | 246 le_int32 biasedIndices[6], indices[6], glyph; in AccessTest() local 280 for(glyph = 0; glyph < glyphCount; glyph += 1) { in AccessTest() 281 if (extraBitGlyphs[glyph] != (glyphs[glyph] | 0xFF000000L)) { in AccessTest() 283 glyph, glyph, extraBitGlyphs[glyph], glyphs[glyph]); in AccessTest() 295 for (glyph = 0; glyph < glyphCount; glyph += 1) { in AccessTest() 296 if (biasedIndices[glyph] != (indices[glyph] + 1024)) { in AccessTest() 298 glyph, glyph, biasedIndices[glyph], indices[glyph]); in AccessTest() 305 for (glyph = 0; glyph <= glyphCount; glyph += 1) { in AccessTest() 308 engine->getGlyphPosition(glyph, x, y, status); in AccessTest() 311 log_err("getGlyphPosition(%d, x, y, status) failed.\n", glyph); in AccessTest() [all …]
|
D | cletest.c | 216 le_int32 biasedIndices[6], indices[6], glyph; in AccessTest() local 251 for (glyph = 0; glyph < glyphCount; glyph += 1) { in AccessTest() 252 if (biasedIndices[glyph] != (indices[glyph] + 1024)) { in AccessTest() 254 glyph, glyph, biasedIndices[glyph], indices[glyph]); in AccessTest() 261 for (glyph = 0; glyph <= glyphCount; glyph += 1) { in AccessTest() 264 le_getGlyphPosition(engine, glyph, &x, &y, &status); in AccessTest() 267 log_err("getGlyphPosition(%d, x, y, status) failed.\n", glyph); in AccessTest() 271 if (x != positions[glyph*2] || y != positions[glyph*2 + 1]) { in AccessTest() 273 glyph, x, y, positions[glyph*2], positions[glyph*2 + 1]); in AccessTest()
|
/external/chromium/third_party/icu/source/test/letest/ |
D | letest.cpp | 246 le_int32 biasedIndices[6], indices[6], glyph; in AccessTest() local 280 for(glyph = 0; glyph < glyphCount; glyph += 1) { in AccessTest() 281 if (extraBitGlyphs[glyph] != (glyphs[glyph] | 0xFF000000L)) { in AccessTest() 283 glyph, glyph, extraBitGlyphs[glyph], glyphs[glyph]); in AccessTest() 295 for (glyph = 0; glyph < glyphCount; glyph += 1) { in AccessTest() 296 if (biasedIndices[glyph] != (indices[glyph] + 1024)) { in AccessTest() 298 glyph, glyph, biasedIndices[glyph], indices[glyph]); in AccessTest() 305 for (glyph = 0; glyph <= glyphCount; glyph += 1) { in AccessTest() 308 engine->getGlyphPosition(glyph, x, y, status); in AccessTest() 311 log_err("getGlyphPosition(%d, x, y, status) failed.\n", glyph); in AccessTest() [all …]
|
D | cletest.c | 216 le_int32 biasedIndices[6], indices[6], glyph; in AccessTest() local 251 for (glyph = 0; glyph < glyphCount; glyph += 1) { in AccessTest() 252 if (biasedIndices[glyph] != (indices[glyph] + 1024)) { in AccessTest() 254 glyph, glyph, biasedIndices[glyph], indices[glyph]); in AccessTest() 261 for (glyph = 0; glyph <= glyphCount; glyph += 1) { in AccessTest() 264 le_getGlyphPosition(engine, glyph, &x, &y, &status); in AccessTest() 267 log_err("getGlyphPosition(%d, x, y, status) failed.\n", glyph); in AccessTest() 271 if (x != positions[glyph*2] || y != positions[glyph*2 + 1]) { in AccessTest() 273 glyph, x, y, positions[glyph*2], positions[glyph*2 + 1]); in AccessTest()
|
/external/webkit/WebCore/platform/graphics/chromium/ |
D | GlyphPageTreeNodeChromiumWin.cpp | 144 Glyph glyph = localGlyphBuffer[i]; in fillBMPGlyphs() local 152 glyph = initSpaceGlyph(dc, &spaceGlyph); in fillBMPGlyphs() 153 } else if (glyph == invalidGlyph) { in fillBMPGlyphs() 156 glyph = 0; in fillBMPGlyphs() 160 page->setGlyphDataForCharacter(offset + i, glyph, glyphFontData); in fillBMPGlyphs() 204 WORD glyph = state.firstGlyphForCharacter(i * 2); in fillNonBMPGlyphs() local 205 if (glyph) { in fillNonBMPGlyphs() 207 page->setGlyphDataForIndex(offset + i, glyph, fontData); in fillNonBMPGlyphs()
|
/external/webkit/WebCore/platform/graphics/skia/ |
D | SkiaFontWin.cpp | 48 CachedOutlineKey() : font(0), glyph(0), path(0) {} in CachedOutlineKey() 49 CachedOutlineKey(HFONT f, WORD g) : font(f), glyph(g), path(0) {} in CachedOutlineKey() 52 WORD glyph; member 61 return a.font == b.font && a.glyph == b.glyph; in operator ==() 69 return keyBytes + key.glyph; in hash() 74 return a.font == b.font && a.glyph == b.glyph; in equal() 143 static bool getPathForGlyph(HDC dc, WORD glyph, SkPath* path) in getPathForGlyph() argument 149 DWORD totalSize = GetGlyphOutlineW(dc, glyph, GGO_GLYPH_INDEX | GGO_NATIVE, in getPathForGlyph() 180 const SkPath* SkiaWinOutlineCache::lookupOrCreatePathForGlyph(HDC hdc, HFONT font, WORD glyph) in lookupOrCreatePathForGlyph() argument 182 CachedOutlineKey key(font, glyph); in lookupOrCreatePathForGlyph() [all …]
|