Home
last modified time | relevance | path

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

1234567

/external/freetype/src/base/
Dftglyph.c61 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/
DSkScalerContext.cpp221 SkScalerContext* SkScalerContext::getGlyphContext(const SkGlyph& glyph) { in getGlyphContext() argument
222 unsigned glyphID = glyph.getGlyphID(); in getGlyphContext()
232 SkDebugf("--- no context for glyph %x\n", glyph.getGlyphID()); in getGlyphContext()
280 void SkScalerContext::getAdvance(SkGlyph* glyph) { in getAdvance() argument
282 glyph->fMaskFormat = MASK_FORMAT_JUST_ADVANCE; in getAdvance()
286 this->getGlyphContext(*glyph)->generateAdvance(glyph); in getAdvance()
289 void SkScalerContext::getMetrics(SkGlyph* glyph) { in getMetrics() argument
290 this->getGlyphContext(*glyph)->generateMetrics(glyph); in getMetrics()
298 glyph->fLsbDelta = glyph->fRsbDelta = 0; in getMetrics()
302 if (0 == glyph->fWidth || 0 == glyph->fHeight) { in getMetrics()
[all …]
DSkGlyphCache.cpp145 SkGlyph* glyph = fGlyphHash[index]; in getGlyphIDAdvance() local
147 if (NULL == glyph || glyph->fID != id) { in getGlyphIDAdvance()
148 glyph = this->lookupMetrics(glyphID, kJustAdvance_MetricsType); in getGlyphIDAdvance()
149 fGlyphHash[index] = glyph; in getGlyphIDAdvance()
151 return *glyph; in getGlyphIDAdvance()
205 SkGlyph* glyph = fGlyphHash[index]; in getGlyphIDMetrics() local
207 if (NULL == glyph || glyph->fID != id) { in getGlyphIDMetrics()
208 RecordHashCollisionIf(glyph != NULL); in getGlyphIDMetrics()
209 glyph = this->lookupMetrics(glyphID, kFull_MetricsType); in getGlyphIDMetrics()
210 fGlyphHash[index] = glyph; in getGlyphIDMetrics()
[all …]
/external/skia/src/ports/
DSkFontHost_ascender.cpp27 virtual void generateMetrics(SkGlyph* glyph);
28 virtual void generateImage(const SkGlyph& glyph);
29 virtual void generatePath(const SkGlyph& glyph, SkPath* path);
115 void SkScalerContext_Ascender::generateMetrics(SkGlyph* glyph) in generateMetrics() argument
117 glyph->fRsbDelta = 0; in generateMetrics()
118 glyph->fLsbDelta = 0; in generateMetrics()
123 int adv = aca_Get_Adv_Width(fHandle, glyph->getGlyphID()); in generateMetrics()
127 aca_Rasterize(glyph->getGlyphID(), fHandle, &rec, &topLeft); in generateMetrics()
132 glyph->fWidth = 0; in generateMetrics()
133 glyph->fHeight = 0; in generateMetrics()
[all …]
DSkFontHost_FreeType.cpp130 virtual void generateAdvance(SkGlyph* glyph);
131 virtual void generateMetrics(SkGlyph* glyph);
132 virtual void generateImage(const SkGlyph& glyph);
133 virtual void generatePath(const SkGlyph& glyph, SkPath* path);
136 virtual SkUnichar generateGlyphToChar(uint16_t glyph);
309 advances[i] = face->glyph->advance.x; in getAdvances()
336 FT_Outline_Get_CBox(&face->glyph->outline, bbox); in GetLetterCBox()
833 SkUnichar SkScalerContext_FreeType::generateGlyphToChar(uint16_t glyph) { in generateGlyphToChar() argument
839 if (glyphIndex == glyph) { in generateGlyphToChar()
862 void SkScalerContext_FreeType::generateAdvance(SkGlyph* glyph) { in generateAdvance() argument
[all …]
DSkFontHost_mac_atsui.cpp92 virtual void generateAdvance(SkGlyph* glyph);
93 virtual void generateMetrics(SkGlyph* glyph);
94 virtual void generateImage(const SkGlyph& glyph);
95 virtual void generatePath(const SkGlyph& glyph, SkPath* path);
209 ATSGlyphRef glyph; in generateCharToGlyph() local
212 glyph = layoutPtr->glyphID; in generateCharToGlyph()
214 return glyph; in generateCharToGlyph()
217 static void set_glyph_metrics_on_error(SkGlyph* glyph) { in set_glyph_metrics_on_error() argument
218 glyph->fRsbDelta = 0; in set_glyph_metrics_on_error()
219 glyph->fLsbDelta = 0; in set_glyph_metrics_on_error()
[all …]
DSkFontHost_win.cpp228 SkAutoTArray<WORD> glyph(count); in populate_glyph_to_unicode() local
232 GetGlyphIndicesW(fontHdc, chars.get(), count, glyph.get(), in populate_glyph_to_unicode()
242 if (glyph[j] != 0xffff && glyph[j] < glyphCount && in populate_glyph_to_unicode()
243 (*glyphToUnicode)[glyph[j]] == 0) { in populate_glyph_to_unicode()
244 (*glyphToUnicode)[glyph[j]] = chars[j]; in populate_glyph_to_unicode()
260 virtual void generateAdvance(SkGlyph* glyph);
261 virtual void generateMetrics(SkGlyph* glyph);
262 virtual void generateImage(const SkGlyph& glyph);
263 virtual void generatePath(const SkGlyph& glyph, SkPath* path);
396 void SkScalerContext_Windows::generateAdvance(SkGlyph* glyph) { in generateAdvance() argument
[all …]
DSkFontHost_mac_coretext.cpp265 void generateAdvance(SkGlyph* glyph);
266 void generateMetrics(SkGlyph* glyph);
267 void generateImage(const SkGlyph& glyph);
268 void generatePath( const SkGlyph& glyph, SkPath* path);
352 void SkScalerContext_Mac::generateAdvance(SkGlyph* glyph) in generateAdvance() argument
354 this->generateMetrics(glyph); in generateAdvance()
357 void SkScalerContext_Mac::generateMetrics(SkGlyph* glyph) in generateMetrics() argument
365 cgGlyph = (CGGlyph) glyph->getGlyphID(fBaseGlyphCount); in generateMetrics()
383 glyph->zeroMetrics(); in generateMetrics()
384 glyph->fAdvanceX = SkFloatToFixed(theAdvance.width); in generateMetrics()
[all …]
/external/skia/gpu/src/
DGrTextStrike.cpp145 static void FreeGlyph(GrGlyph*& glyph) { glyph->free(); } in FreeGlyph() argument
165 GrGlyph* glyph = fPool.alloc(); in generateGlyph() local
166 glyph->init(packed, bounds); in generateGlyph()
167 fCache.insert(packed, glyph); in generateGlyph()
168 return glyph; in generateGlyph()
171 bool GrTextStrike::getGlyphAtlas(GrGlyph* glyph, GrFontScaler* scaler) { in getGlyphAtlas() argument
177 GrAssert(glyph); in getGlyphAtlas()
179 GrAssert(fCache.contains(glyph)); in getGlyphAtlas()
180 if (glyph->fAtlas) { in getGlyphAtlas()
187 size_t size = glyph->fBounds.area() * bytesPerPixel; in getGlyphAtlas()
[all …]
DGrTextContext.cpp169 GrGlyph* glyph = fStrike->getGlyph(packed, scaler); in drawPackedGlyph() local
170 if (NULL == glyph || glyph->fBounds.isEmpty()) { in drawPackedGlyph()
174 vx += GrIntToFixed(glyph->fBounds.fLeft); in drawPackedGlyph()
175 vy += GrIntToFixed(glyph->fBounds.fTop); in drawPackedGlyph()
178 GrFixed width = glyph->fBounds.width(); in drawPackedGlyph()
179 GrFixed height = glyph->fBounds.height(); in drawPackedGlyph()
182 if (true || NULL == glyph->fAtlas) { in drawPackedGlyph()
191 if (NULL == glyph->fAtlas) { in drawPackedGlyph()
192 if (fStrike->getGlyphAtlas(glyph, scaler)) { in drawPackedGlyph()
202 if (fStrike->getGlyphAtlas(glyph, scaler)) { in drawPackedGlyph()
[all …]
DGrTextStrike_impl.h92 static bool LT(const GrGlyph& glyph, const Key& key) { in LT() argument
93 return glyph.fPackedID < key.fPackedID; in LT()
95 static bool EQ(const GrGlyph& glyph, const Key& key) { in EQ() argument
96 return glyph.fPackedID == key.fPackedID; in EQ()
105 GrGlyph* glyph = fCache.find(packed); in getGlyph() local
106 if (NULL == glyph) { in getGlyph()
107 glyph = this->generateGlyph(packed, scaler); in getGlyph()
109 return glyph; in getGlyph()
/external/freetype/src/pshinter/
Dpshalgo.c443 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/Source/WebCore/platform/graphics/haiku/
DFontHaiku.cpp42 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/webkit/Source/WebCore/platform/graphics/
DGlyphMetricsMap.h53 T metricsForGlyph(Glyph glyph) in metricsForGlyph() argument
55 return locatePage(glyph / GlyphMetricsPage::size)->metricsForGlyph(glyph); in metricsForGlyph()
58 void setMetricsForGlyph(Glyph glyph, const T& metrics) in setMetricsForGlyph() argument
60 locatePage(glyph / GlyphMetricsPage::size)->setMetricsForGlyph(glyph, metrics); in setMetricsForGlyph()
68 T metricsForGlyph(Glyph glyph) const { return m_metrics[glyph % size]; } in metricsForGlyph()
69 void setMetricsForGlyph(Glyph glyph, const T& metrics) in setMetricsForGlyph()
71 setMetricsForIndex(glyph % size, metrics); in setMetricsForGlyph()
DSimpleFontData.h112 float widthForGlyph(Glyph glyph) const;
123 … bool isZeroWidthSpaceGlyph(Glyph glyph) const { return glyph == m_zeroWidthSpaceGlyph && glyph; } in isZeroWidthSpaceGlyph() argument
202 FloatRect boundsForGDIGlyph(Glyph glyph) const;
203 float widthForGDIGlyph(Glyph glyph) const;
291 ALWAYS_INLINE FloatRect SimpleFontData::boundsForGlyph(Glyph glyph) const in boundsForGlyph() argument
293 if (isZeroWidthSpaceGlyph(glyph)) in boundsForGlyph()
298 bounds = m_glyphToBoundsMap->metricsForGlyph(glyph); in boundsForGlyph()
303 bounds = platformBoundsForGlyph(glyph); in boundsForGlyph()
306 m_glyphToBoundsMap->setMetricsForGlyph(glyph, bounds); in boundsForGlyph()
310 ALWAYS_INLINE float SimpleFontData::widthForGlyph(Glyph glyph) const in widthForGlyph() argument
[all …]
/external/icu4c/samples/layout/
DGnomeFontInstance.cpp137 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 …]
DScriptCompositeFontInstance.cpp36 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/skia/src/gpu/
DSkGrFontScaler.cpp110 const SkGlyph& glyph = fStrike->getGlyphIDMetrics(GrGlyph::UnpackID(packed), in getPackedGlyphBounds() local
113 bounds->setXYWH(glyph.fLeft, glyph.fTop, glyph.fWidth, glyph.fHeight); in getPackedGlyphBounds()
133 const SkGlyph& glyph = fStrike->getGlyphIDMetrics(GrGlyph::UnpackID(packed), in getPackedGlyphImage() local
136 GrAssert(glyph.fWidth == width); in getPackedGlyphImage()
137 GrAssert(glyph.fHeight == height); in getPackedGlyphImage()
138 const void* src = fStrike->findImage(glyph); in getPackedGlyphImage()
143 int srcRB = glyph.rowBytes(); in getPackedGlyphImage()
169 const SkGlyph& glyph = fStrike->getGlyphIDMetrics(glyphID); in getGlyphPath() local
170 const SkPath* skPath = fStrike->findPath(glyph); in getGlyphPath()
/external/icu4c/layout/
DSingleSubstitutionSubtables.cpp45 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()
DSimpleArrayProcessor.cpp39 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()
DSingleTableProcessor.cpp39 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()
DSegmentSingleProcessor.cpp40 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()
DLookupTables.cpp27 …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()
DTrimmedArrayProcessor.cpp41 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()
/external/freetype/src/truetype/
Dttgload.c403 load->glyph->control_len = 0; in TT_Load_Simple_Glyph()
404 load->glyph->control_data = 0; in TT_Load_Simple_Glyph()
432 load->glyph->control_len = n_ins; in TT_Load_Simple_Glyph()
433 load->glyph->control_data = load->exec->glyphIns; in TT_Load_Simple_Glyph()
731 if ( loader->glyph->control_len > 0xFFFFL ) in TT_Hint_Glyph()
735 loader->glyph->control_len )); in TT_Hint_Glyph()
737 n_ins = (FT_UInt)( loader->glyph->control_len ); in TT_Hint_Glyph()
1168 loader->glyph->control_data = loader->exec->glyphIns; in TT_Process_Composite_Glyph()
1169 loader->glyph->control_len = n_ins; in TT_Process_Composite_Glyph()
1500 loader->glyph->format = FT_GLYPH_FORMAT_COMPOSITE; in load_truetype_glyph()
[all …]

1234567