Home
last modified time | relevance | path

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

123456789

/external/pdfium/third_party/freetype/src/base/
Dftglyph.c63 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph; in ft_bitmap_glyph_init() local
65 FT_Library library = FT_GLYPH( glyph )->library; in ft_bitmap_glyph_init()
74 glyph->left = slot->bitmap_left; in ft_bitmap_glyph_init()
75 glyph->top = slot->bitmap_top; in ft_bitmap_glyph_init()
80 glyph->bitmap = slot->bitmap; in ft_bitmap_glyph_init()
85 FT_Bitmap_Init( &glyph->bitmap ); in ft_bitmap_glyph_init()
86 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap ); in ft_bitmap_glyph_init()
113 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph; in ft_bitmap_glyph_done() local
114 FT_Library library = FT_GLYPH( glyph )->library; in ft_bitmap_glyph_done()
117 FT_Bitmap_Done( library, &glyph->bitmap ); in ft_bitmap_glyph_done()
[all …]
/external/freetype/src/base/
Dftglyph.c63 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph; in ft_bitmap_glyph_init() local
65 FT_Library library = FT_GLYPH( glyph )->library; in ft_bitmap_glyph_init()
74 glyph->left = slot->bitmap_left; in ft_bitmap_glyph_init()
75 glyph->top = slot->bitmap_top; in ft_bitmap_glyph_init()
80 glyph->bitmap = slot->bitmap; in ft_bitmap_glyph_init()
85 FT_Bitmap_Init( &glyph->bitmap ); in ft_bitmap_glyph_init()
86 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap ); in ft_bitmap_glyph_init()
113 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph; in ft_bitmap_glyph_done() local
114 FT_Library library = FT_GLYPH( glyph )->library; in ft_bitmap_glyph_done()
117 FT_Bitmap_Done( library, &glyph->bitmap ); in ft_bitmap_glyph_done()
[all …]
/external/skia/src/gpu/text/
DGrFontScaler.cpp49 GrMaskFormat GrFontScaler::getPackedGlyphMaskFormat(const SkGlyph& glyph) const { in getPackedGlyphMaskFormat()
50 SkMask::Format format = static_cast<SkMask::Format>(glyph.fMaskFormat); in getPackedGlyphMaskFormat()
66 bool GrFontScaler::getPackedGlyphBounds(const SkGlyph& glyph, SkIRect* bounds) { in getPackedGlyphBounds() argument
70 fStrike->findImage(glyph); in getPackedGlyphBounds()
72 bounds->setXYWH(glyph.fLeft, glyph.fTop, glyph.fWidth, glyph.fHeight); in getPackedGlyphBounds()
77 bool GrFontScaler::getPackedGlyphDFBounds(const SkGlyph& glyph, SkIRect* bounds) { in getPackedGlyphDFBounds() argument
81 fStrike->findImage(glyph); in getPackedGlyphDFBounds()
83 bounds->setXYWH(glyph.fLeft, glyph.fTop, glyph.fWidth, glyph.fHeight); in getPackedGlyphDFBounds()
115 bool GrFontScaler::getPackedGlyphImage(const SkGlyph& glyph, int width, int height, int dstRB, in getPackedGlyphImage() argument
117 SkASSERT(glyph.fWidth == width); in getPackedGlyphImage()
[all …]
DGrBatchFontCache.h35 GrGlyph* glyph = fCache.find(packed); in getGlyph() local
36 if (nullptr == glyph) { in getGlyph()
37 glyph = this->generateGlyph(skGlyph, packed, scaler); in getGlyph()
39 return glyph; in getGlyph()
49 GrGlyph* glyph = fCache.find(packed); in getGlyph() local
50 if (nullptr == glyph) { in getGlyph()
55 glyph = this->generateGlyph(skGlyph, packed, scaler); in getGlyph()
56 glyph->fMaskFormat = expectedMaskFormat; in getGlyph()
58 return glyph; in getGlyph()
135 bool hasGlyph(GrGlyph* glyph) { in hasGlyph() argument
[all …]
DGrBatchFontCache.cpp187 GrGlyph* glyph = (GrGlyph*)fPool.alloc(sizeof(GrGlyph)); in generateGlyph() local
188 glyph->init(packed, bounds, format); in generateGlyph()
189 fCache.add(glyph); in generateGlyph()
190 return glyph; in generateGlyph()
206 GrGlyph* glyph, in addGlyphToAtlas() argument
209 SkASSERT(glyph); in addGlyphToAtlas()
211 SkASSERT(fCache.find(glyph->fPackedID)); in addGlyphToAtlas()
217 size_t size = glyph->fBounds.area() * bytesPerPixel; in addGlyphToAtlas()
220 const SkGlyph& skGlyph = scaler->grToSkGlyph(glyph->fPackedID); in addGlyphToAtlas()
221 if (GrGlyph::kDistance_MaskStyle == GrGlyph::UnpackMaskStyle(glyph->fPackedID)) { in addGlyphToAtlas()
[all …]
DGrTextUtils.cpp68 [&](const SkGlyph& glyph, SkPoint position, SkPoint rounding) { in DrawBmpText() argument
71 blob, runIndex, fontCache, &currStrike, glyph, in DrawBmpText()
110 [&](const SkGlyph& glyph, SkPoint position, SkPoint rounding) { in DrawBmpPosText() argument
113 blob, runIndex, fontCache, &currStrike, glyph, in DrawBmpPosText()
134 GrGlyph* glyph = (*strike)->getGlyph(skGlyph, id, scaler); in BmpAppendGlyph() local
135 if (!glyph) { in BmpAppendGlyph()
139 int x = vx + glyph->fBounds.fLeft; in BmpAppendGlyph()
140 int y = vy + glyph->fBounds.fTop; in BmpAppendGlyph()
143 int width = glyph->fBounds.width(); in BmpAppendGlyph()
144 int height = glyph->fBounds.height(); in BmpAppendGlyph()
[all …]
/external/harfbuzz_ng/src/
Dhb-font-private.hh183 hb_codepoint_t glyph; in has_glyph() local
184 return get_nominal_glyph (unicode, &glyph); in has_glyph()
188 hb_codepoint_t *glyph) in get_nominal_glyph()
190 *glyph = 0; in get_nominal_glyph()
192 unicode, glyph, in get_nominal_glyph()
197 hb_codepoint_t *glyph) in get_variation_glyph()
199 *glyph = 0; in get_variation_glyph()
201 unicode, variation_selector, glyph, in get_variation_glyph()
205 inline hb_position_t get_glyph_h_advance (hb_codepoint_t glyph) in get_glyph_h_advance()
208 glyph, in get_glyph_h_advance()
[all …]
Dhb-font.cc99 hb_codepoint_t *glyph, in hb_font_get_nominal_glyph_nil() argument
102 *glyph = 0; in hb_font_get_nominal_glyph_nil()
109 hb_codepoint_t *glyph, in hb_font_get_nominal_glyph_parent() argument
112 return font->parent->get_nominal_glyph (unicode, glyph); in hb_font_get_nominal_glyph_parent()
120 hb_codepoint_t *glyph, in hb_font_get_variation_glyph_nil() argument
123 *glyph = 0; in hb_font_get_variation_glyph_nil()
131 hb_codepoint_t *glyph, in hb_font_get_variation_glyph_parent() argument
134 return font->parent->get_variation_glyph (unicode, variation_selector, glyph); in hb_font_get_variation_glyph_parent()
141 hb_codepoint_t glyph, in hb_font_get_glyph_h_advance_nil() argument
149 hb_codepoint_t glyph, in hb_font_get_glyph_h_advance_parent() argument
[all …]
Dhb-font.h121 hb_codepoint_t *glyph,
125 hb_codepoint_t *glyph,
130 hb_codepoint_t glyph,
136 hb_codepoint_t glyph,
150 hb_codepoint_t glyph,
154 hb_codepoint_t glyph, unsigned int point_index,
160 hb_codepoint_t glyph,
165 hb_codepoint_t *glyph,
407 hb_codepoint_t *glyph);
411 hb_codepoint_t *glyph);
[all …]
Dhb-ot-font.cc111 inline unsigned int get_advance (hb_codepoint_t glyph) const in get_advance()
113 if (unlikely (glyph >= this->num_metrics)) in get_advance()
124 if (glyph >= this->num_advances) in get_advance()
125 glyph = this->num_advances - 1; in get_advance()
127 return this->table->longMetric[glyph].advance; in get_advance()
169 inline bool get_extents (hb_codepoint_t glyph, in get_extents()
172 if (unlikely (glyph >= this->num_glyphs)) in get_extents()
178 start_offset = 2 * this->loca->u.shortsZ[glyph]; in get_extents()
179 end_offset = 2 * this->loca->u.shortsZ[glyph + 1]; in get_extents()
183 start_offset = this->loca->u.longsZ[glyph]; in get_extents()
[all …]
Dhb-ft.cc161 hb_codepoint_t *glyph, in hb_ft_get_nominal_glyph() argument
170 *glyph = g; in hb_ft_get_nominal_glyph()
179 hb_codepoint_t *glyph, in hb_ft_get_variation_glyph() argument
188 *glyph = g; in hb_ft_get_variation_glyph()
195 hb_codepoint_t glyph, in hb_ft_get_glyph_h_advance() argument
201 if (unlikely (FT_Get_Advance (ft_font->ft_face, glyph, ft_font->load_flags, &v))) in hb_ft_get_glyph_h_advance()
213 hb_codepoint_t glyph, in hb_ft_get_glyph_v_advance() argument
219 …if (unlikely (FT_Get_Advance (ft_font->ft_face, glyph, ft_font->load_flags | FT_LOAD_VERTICAL_LAYO… in hb_ft_get_glyph_v_advance()
233 hb_codepoint_t glyph, in hb_ft_get_glyph_v_origin() argument
241 if (unlikely (FT_Load_Glyph (ft_face, glyph, ft_font->load_flags))) in hb_ft_get_glyph_v_origin()
[all …]
Dhb-ot-cmap-table.hh45 inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph()
50 *glyph = gid; in get_glyph()
85 …tatic inline bool get_glyph_func (const void *obj, hb_codepoint_t codepoint, hb_codepoint_t *glyph) in get_glyph_func()
126 *glyph = gid & 0xFFFFu; in get_glyph_func()
139 inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph()
143 return accel.get_glyph_func (&accel, codepoint, glyph); in get_glyph()
222 inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph()
228 *glyph = gid; in get_glyph()
256 inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph()
261 *glyph = T::group_get_glyph (groups[i], codepoint); in get_glyph()
[all …]
/external/skia/src/fonts/
DSkRandomScalerContext.cpp56 void SkRandomScalerContext::generateAdvance(SkGlyph* glyph) { in generateAdvance() argument
57 fProxy->getAdvance(glyph); in generateAdvance()
60 void SkRandomScalerContext::generateMetrics(SkGlyph* glyph) { in generateMetrics() argument
64 switch (glyph->getGlyphID() % 4) { in generateMetrics()
79 fProxy->getMetrics(glyph); in generateMetrics()
81 glyph->fMaskFormat = format; in generateMetrics()
87 fProxy->getPath(*glyph, &path); in generateMetrics()
96 glyph->fLeft = ibounds.fLeft; in generateMetrics()
97 glyph->fTop = ibounds.fTop; in generateMetrics()
98 glyph->fWidth = ibounds.width(); in generateMetrics()
[all …]
DSkTestScalerContext.cpp122 void SkTestTypeface::getAdvance(SkGlyph* glyph) { in getAdvance() argument
123 glyph->fAdvanceX = fTestFont->fWidths[glyph->getGlyphID()]; in getAdvance()
124 glyph->fAdvanceY = 0; in getAdvance()
131 void SkTestTypeface::getMetrics(SkGlyph* glyph) { in getMetrics() argument
132 glyph->fAdvanceX = fTestFont->fWidths[glyph->getGlyphID()]; in getMetrics()
133 glyph->fAdvanceY = 0; in getMetrics()
136 void SkTestTypeface::getPath(const SkGlyph& glyph, SkPath* path) { in getPath() argument
137 *path = *fTestFont->fPaths[glyph.getGlyphID()]; in getPath()
201 uint16_t glyph; in generateCharToGlyph() local
202 (void) fFace->onCharsToGlyphs((const void *) &uni, SkTypeface::kUTF16_Encoding, &glyph, 1); in generateCharToGlyph()
[all …]
DSkGScalerContext.cpp76 void SkGScalerContext::generateAdvance(SkGlyph* glyph) { in generateAdvance() argument
77 fProxy->getAdvance(glyph); in generateAdvance()
80 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateAdvance()
81 SkFixedToScalar(glyph->fAdvanceY), &advance); in generateAdvance()
82 glyph->fAdvanceX = SkScalarToFixed(advance.fX); in generateAdvance()
83 glyph->fAdvanceY = SkScalarToFixed(advance.fY); in generateAdvance()
86 void SkGScalerContext::generateMetrics(SkGlyph* glyph) { in generateMetrics() argument
87 fProxy->getMetrics(glyph); in generateMetrics()
90 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateMetrics()
91 SkFixedToScalar(glyph->fAdvanceY), &advance); in generateMetrics()
[all …]
/external/mesa3d/src/gallium/state_trackers/vega/
Dtext.c51 struct vg_glyph *glyph; in del_glyph() local
53 glyph = (struct vg_glyph *) in del_glyph()
55 if (glyph) in del_glyph()
56 FREE(glyph); in del_glyph()
58 return (glyph != NULL); in del_glyph()
68 struct vg_glyph *glyph; in add_glyph() local
73 glyph = CALLOC_STRUCT(vg_glyph); in add_glyph()
74 glyph->object = obj; in add_glyph()
75 glyph->is_hinted = isHinted; in add_glyph()
76 memcpy(glyph->glyph_origin, glyphOrigin, sizeof(glyph->glyph_origin)); in add_glyph()
[all …]
/external/skia/src/ports/
DSkScalerContext_win_dw.cpp339 void SkScalerContext_DW::generateAdvance(SkGlyph* glyph) { in generateAdvance() argument
343 glyph->fRsbDelta = 0; in generateAdvance()
344 glyph->fLsbDelta = 0; in generateAdvance()
346 glyph->fAdvanceX = 0; in generateAdvance()
347 glyph->fAdvanceY = 0; in generateAdvance()
349 uint16_t glyphId = glyph->getGlyphID(); in generateAdvance()
391 glyph->fAdvanceX = SkScalarToFixed(vecs[0].fX); in generateAdvance()
392 glyph->fAdvanceY = SkScalarToFixed(vecs[0].fY); in generateAdvance()
395 HRESULT SkScalerContext_DW::getBoundingBox(SkGlyph* glyph, in getBoundingBox() argument
401 fXform.dx = SkFixedToFloat(glyph->getSubXFixed()); in getBoundingBox()
[all …]
DSkFontHost_FreeType_common.cpp337 void SkScalerContext_FreeType_Base::generateGlyphImage(FT_Face face, const SkGlyph& glyph) { in generateGlyphImage() argument
341 switch ( face->glyph->format ) { in generateGlyphImage()
343 FT_Outline* outline = &face->glyph->outline; in generateGlyphImage()
349 dx = SkFixedToFDot6(glyph.getSubXFixed()); in generateGlyphImage()
350 dy = SkFixedToFDot6(glyph.getSubYFixed()); in generateGlyphImage()
366 if (SkMask::kLCD16_Format == glyph.fMaskFormat) { in generateGlyphImage()
367 FT_Render_Glyph(face->glyph, doVert ? FT_RENDER_MODE_LCD_V : FT_RENDER_MODE_LCD); in generateGlyphImage()
369 glyph.toMask(&mask); in generateGlyphImage()
371 copyFT2LCD16<true>(face->glyph->bitmap, mask, doBGR, in generateGlyphImage()
374 copyFT2LCD16<false>(face->glyph->bitmap, mask, doBGR, in generateGlyphImage()
[all …]
DSkFontHost_FreeType.cpp194 void generateAdvance(SkGlyph* glyph) override;
195 void generateMetrics(SkGlyph* glyph) override;
196 void generateImage(const SkGlyph& glyph) override;
197 void generatePath(const SkGlyph& glyph, SkPath* path) override;
199 SkUnichar generateGlyphToChar(uint16_t glyph) override;
216 void getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox,
220 void updateGlyphIfLCD(SkGlyph* glyph);
223 void emboldenIfNeeded(FT_Face face, FT_GlyphSlot glyph);
432 FT_Outline_Get_CBox(&face->glyph->outline, bbox); in GetLetterCBox()
992 SkUnichar SkScalerContext_FreeType::generateGlyphToChar(uint16_t glyph) { in generateGlyphToChar() argument
[all …]
DSkFontHost_win.cpp384 SkAutoTArray<WORD> glyph(count); in populate_glyph_to_unicode() local
388 GetGlyphIndicesW(fontHdc, chars.get(), count, glyph.get(), in populate_glyph_to_unicode()
398 if (glyph[j] != 0xffff && glyph[j] < glyphCount && in populate_glyph_to_unicode()
399 (*glyphToUnicode)[glyph[j]] == 0) { in populate_glyph_to_unicode()
400 (*glyphToUnicode)[glyph[j]] = chars[j]; in populate_glyph_to_unicode()
454 const void* HDCOffscreen::draw(const SkGlyph& glyph, bool isBW, in draw() argument
473 if (fBM && (fIsBW != isBW || fWidth < glyph.fWidth || fHeight < glyph.fHeight)) { in draw()
479 fWidth = SkMax32(fWidth, glyph.fWidth); in draw()
480 fHeight = SkMax32(fHeight, glyph.fHeight); in draw()
515 xform.eDx = (float)-glyph.fLeft; in draw()
[all …]
/external/pdfium/third_party/freetype/src/pshinter/
Dpshalgo.c440 PSH_Glyph glyph ) in psh_hint_align() argument
458 if ( ( dimension == 0 && !glyph->do_horz_hints ) || in psh_hint_align()
459 ( dimension == 1 && !glyph->do_vert_hints ) ) in psh_hint_align()
471 do_snapping = ( dimension == 0 && glyph->do_horz_snapping ) || in psh_hint_align()
472 ( dimension == 1 && glyph->do_vert_snapping ); in psh_hint_align()
517 psh_hint_align( parent, globals, dimension, glyph ); in psh_hint_align()
537 if ( glyph->do_stem_adjust ) in psh_hint_align()
668 PSH_Glyph glyph )
686 if ( ( dimension == 0 && !glyph->do_horz_hints ) ||
687 ( dimension == 1 && !glyph->do_vert_hints ) )
[all …]
/external/freetype/src/pshinter/
Dpshalgo.c440 PSH_Glyph glyph ) in psh_hint_align() argument
458 if ( ( dimension == 0 && !glyph->do_horz_hints ) || in psh_hint_align()
459 ( dimension == 1 && !glyph->do_vert_hints ) ) in psh_hint_align()
471 do_snapping = ( dimension == 0 && glyph->do_horz_snapping ) || in psh_hint_align()
472 ( dimension == 1 && glyph->do_vert_snapping ); in psh_hint_align()
517 psh_hint_align( parent, globals, dimension, glyph ); in psh_hint_align()
537 if ( glyph->do_stem_adjust ) in psh_hint_align()
668 PSH_Glyph glyph )
686 if ( ( dimension == 0 && !glyph->do_horz_hints ) ||
687 ( dimension == 1 && !glyph->do_vert_hints ) )
[all …]
/external/skia/src/core/
DSkScalerContext.cpp118 void SkScalerContext::getAdvance(SkGlyph* glyph) { in getAdvance() argument
120 glyph->fMaskFormat = MASK_FORMAT_JUST_ADVANCE; in getAdvance()
124 generateAdvance(glyph); in getAdvance()
127 void SkScalerContext::getMetrics(SkGlyph* glyph) { in getMetrics() argument
128 generateMetrics(glyph); in getMetrics()
136 glyph->fLsbDelta = glyph->fRsbDelta = 0; in getMetrics()
140 if (0 == glyph->fWidth || 0 == glyph->fHeight) { in getMetrics()
141 glyph->fWidth = 0; in getMetrics()
142 glyph->fHeight = 0; in getMetrics()
143 glyph->fTop = 0; in getMetrics()
[all …]
DSkGlyphCache.cpp165 SkGlyph* glyph = fGlyphMap.find(packedGlyphID); in lookupByPackedGlyphID() local
167 if (nullptr == glyph) { in lookupByPackedGlyphID()
168 glyph = this->allocateNewGlyph(packedGlyphID, type); in lookupByPackedGlyphID()
170 if (type == kFull_MetricsType && glyph->isJustAdvance()) { in lookupByPackedGlyphID()
171 fScalerContext->getMetrics(glyph); in lookupByPackedGlyphID()
174 return glyph; in lookupByPackedGlyphID()
182 SkGlyph glyph; in allocateNewGlyph() local
183 glyph.initGlyphFromCombinedID(packedGlyphID); in allocateNewGlyph()
184 glyphPtr = fGlyphMap.set(glyph); in allocateNewGlyph()
198 const void* SkGlyphCache::findImage(const SkGlyph& glyph) { in findImage() argument
[all …]
/external/icu/icu4c/source/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 …]

123456789