Home
last modified time | relevance | path

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

12345678

/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/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_New( &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/harfbuzz_ng/src/
Dhb-font-private.hh45 HB_FONT_FUNC_IMPLEMENT (glyph) \
149 hb_codepoint_t glyph; in has_glyph() local
150 return get_glyph (unicode, 0, &glyph); in has_glyph()
154 hb_codepoint_t *glyph) in get_glyph()
156 *glyph = 0; in get_glyph()
157 return klass->get.glyph (this, user_data, in get_glyph()
158 unicode, variation_selector, glyph, in get_glyph()
159 klass->user_data.glyph); in get_glyph()
162 inline hb_position_t get_glyph_h_advance (hb_codepoint_t glyph) in get_glyph_h_advance()
165 glyph, in get_glyph_h_advance()
[all …]
Dhb-font.cc52 hb_codepoint_t *glyph, in hb_font_get_glyph_nil() argument
56 return font->parent->get_glyph (unicode, variation_selector, glyph); in hb_font_get_glyph_nil()
58 *glyph = 0; in hb_font_get_glyph_nil()
65 hb_codepoint_t glyph, in hb_font_get_glyph_h_advance_nil() argument
69 return font->parent_scale_x_distance (font->parent->get_glyph_h_advance (glyph)); in hb_font_get_glyph_h_advance_nil()
77 hb_codepoint_t glyph, in hb_font_get_glyph_v_advance_nil() argument
81 return font->parent_scale_y_distance (font->parent->get_glyph_v_advance (glyph)); in hb_font_get_glyph_v_advance_nil()
89 hb_codepoint_t glyph, in hb_font_get_glyph_h_origin_nil() argument
95 hb_bool_t ret = font->parent->get_glyph_h_origin (glyph, x, y); in hb_font_get_glyph_h_origin_nil()
108 hb_codepoint_t glyph, in hb_font_get_glyph_v_origin_nil() argument
[all …]
Dhb-ft.cc74 hb_codepoint_t *glyph, in hb_ft_get_glyph() argument
81 *glyph = FT_Face_GetCharVariantIndex (ft_face, unicode, variation_selector); in hb_ft_get_glyph()
82 return *glyph != 0; in hb_ft_get_glyph()
85 *glyph = FT_Get_Char_Index (ft_face, unicode); in hb_ft_get_glyph()
86 return *glyph != 0; in hb_ft_get_glyph()
92 hb_codepoint_t glyph, in hb_ft_get_glyph_h_advance() argument
99 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) in hb_ft_get_glyph_h_advance()
111 hb_codepoint_t glyph, in hb_ft_get_glyph_v_advance() argument
118 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) in hb_ft_get_glyph_v_advance()
129 hb_codepoint_t glyph HB_UNUSED, in hb_ft_get_glyph_h_origin()
[all …]
Dhb-font.h96 hb_codepoint_t *glyph,
101 hb_codepoint_t glyph,
107 hb_codepoint_t glyph,
121 hb_codepoint_t glyph,
125 hb_codepoint_t glyph, unsigned int point_index,
131 hb_codepoint_t glyph,
136 hb_codepoint_t *glyph,
324 hb_codepoint_t *glyph);
328 hb_codepoint_t glyph);
331 hb_codepoint_t glyph);
[all …]
Dhb-ot-font.cc74 inline unsigned int get_advance (hb_codepoint_t glyph) const in get_advance()
76 if (unlikely (glyph >= this->num_metrics)) in get_advance()
87 if (glyph >= this->num_advances) in get_advance()
88 glyph = this->num_advances - 1; in get_advance()
90 return this->table->longMetric[glyph].advance; in get_advance()
136 hb_codepoint_t *glyph) const in get_glyph()
142 glyph)) in get_glyph()
150 return this->table->get_glyph (unicode, glyph); in get_glyph()
197 hb_codepoint_t *glyph, in hb_ot_get_glyph() argument
202 return ot_font->cmap.get_glyph (unicode, variation_selector, glyph); in hb_ot_get_glyph()
[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()
71 inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph()
124 *glyph = gid & 0xFFFFu; in get_glyph()
203 inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph()
209 *glyph = gid; in get_glyph()
236 inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const in get_glyph()
241 *glyph = T::group_get_glyph (groups[i], codepoint); in get_glyph()
328 hb_codepoint_t *glyph, in get_glyph()
340 *glyph = nonDefaults[i].glyphID; in get_glyph()
[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/fonts/
DSkTestScalerContext.cpp120 void SkTestTypeface::getAdvance(SkGlyph* glyph) { in getAdvance() argument
121 glyph->fAdvanceX = fTestFont->fWidths[glyph->getGlyphID()]; in getAdvance()
122 glyph->fAdvanceY = 0; in getAdvance()
129 void SkTestTypeface::getMetrics(SkGlyph* glyph) { in getMetrics() argument
130 glyph->fAdvanceX = fTestFont->fWidths[glyph->getGlyphID()]; in getMetrics()
131 glyph->fAdvanceY = 0; in getMetrics()
134 void SkTestTypeface::getPath(const SkGlyph& glyph, SkPath* path) { in getPath() argument
135 *path = *fTestFont->fPaths[glyph.getGlyphID()]; in getPath()
209 uint16_t glyph; in generateCharToGlyph() local
210 (void) fFace->onCharsToGlyphs((const void *) &uni, SkTypeface::kUTF16_Encoding, &glyph, 1); in generateCharToGlyph()
[all …]
DSkGScalerContext.cpp78 void SkGScalerContext::generateAdvance(SkGlyph* glyph) { in generateAdvance() argument
79 fProxy->getAdvance(glyph); in generateAdvance()
82 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateAdvance()
83 SkFixedToScalar(glyph->fAdvanceY), &advance); in generateAdvance()
84 glyph->fAdvanceX = SkScalarToFixed(advance.fX); in generateAdvance()
85 glyph->fAdvanceY = SkScalarToFixed(advance.fY); in generateAdvance()
88 void SkGScalerContext::generateMetrics(SkGlyph* glyph) { in generateMetrics() argument
89 fProxy->getMetrics(glyph); in generateMetrics()
92 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateMetrics()
93 SkFixedToScalar(glyph->fAdvanceY), &advance); in generateMetrics()
[all …]
/external/skia/src/ports/
DSkScalerContext_win_dw.cpp324 void SkScalerContext_DW::generateAdvance(SkGlyph* glyph) { in generateAdvance() argument
328 glyph->fRsbDelta = 0; in generateAdvance()
329 glyph->fLsbDelta = 0; in generateAdvance()
331 glyph->fAdvanceX = 0; in generateAdvance()
332 glyph->fAdvanceY = 0; in generateAdvance()
334 uint16_t glyphId = glyph->getGlyphID(); in generateAdvance()
371 glyph->fAdvanceX = SkScalarToFixed(vecs[0].fX); in generateAdvance()
372 glyph->fAdvanceY = SkScalarToFixed(vecs[0].fY); in generateAdvance()
375 HRESULT SkScalerContext_DW::getBoundingBox(SkGlyph* glyph, in getBoundingBox() argument
381 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.cpp198 void generateAdvance(SkGlyph* glyph) override;
199 void generateMetrics(SkGlyph* glyph) override;
200 void generateImage(const SkGlyph& glyph) override;
201 void generatePath(const SkGlyph& glyph, SkPath* path) override;
203 SkUnichar generateGlyphToChar(uint16_t glyph) override;
221 void getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox,
225 void updateGlyphIfLCD(SkGlyph* glyph);
228 void emboldenIfNeeded(FT_Face face, FT_GlyphSlot glyph);
399 FT_Outline_Get_CBox(&face->glyph->outline, bbox); in GetLetterCBox()
983 SkUnichar SkScalerContext_FreeType::generateGlyphToChar(uint16_t glyph) { in generateGlyphToChar() argument
[all …]
DSkFontHost_win.cpp382 SkAutoTArray<WORD> glyph(count); in populate_glyph_to_unicode() local
386 GetGlyphIndicesW(fontHdc, chars.get(), count, glyph.get(), in populate_glyph_to_unicode()
396 if (glyph[j] != 0xffff && glyph[j] < glyphCount && in populate_glyph_to_unicode()
397 (*glyphToUnicode)[glyph[j]] == 0) { in populate_glyph_to_unicode()
398 (*glyphToUnicode)[glyph[j]] = chars[j]; in populate_glyph_to_unicode()
452 const void* HDCOffscreen::draw(const SkGlyph& glyph, bool isBW, in draw() argument
471 if (fBM && (fIsBW != isBW || fWidth < glyph.fWidth || fHeight < glyph.fHeight)) { in draw()
477 fWidth = SkMax32(fWidth, glyph.fWidth); in draw()
478 fHeight = SkMax32(fHeight, glyph.fHeight); in draw()
513 xform.eDx = (float)-glyph.fLeft; in draw()
[all …]
/external/skia/src/gpu/
DGrFontScaler.cpp87 const SkGlyph& glyph = fStrike->getGlyphIDMetrics(GrGlyph::UnpackID(packed), in getPackedGlyphMaskFormat() local
90 SkMask::Format format = static_cast<SkMask::Format>(glyph.fMaskFormat); in getPackedGlyphMaskFormat()
107 const SkGlyph& glyph = fStrike->getGlyphIDMetrics(GrGlyph::UnpackID(packed), in getPackedGlyphBounds() local
110 bounds->setXYWH(glyph.fLeft, glyph.fTop, glyph.fWidth, glyph.fHeight); in getPackedGlyphBounds()
116 const SkGlyph& glyph = fStrike->getGlyphIDMetrics(GrGlyph::UnpackID(packed), in getPackedGlyphDFBounds() local
119 bounds->setXYWH(glyph.fLeft, glyph.fTop, glyph.fWidth, glyph.fHeight); in getPackedGlyphDFBounds()
154 const SkGlyph& glyph = fStrike->getGlyphIDMetrics(GrGlyph::UnpackID(packed), in getPackedGlyphImage() local
157 SkASSERT(glyph.fWidth == width); in getPackedGlyphImage()
158 SkASSERT(glyph.fHeight == height); in getPackedGlyphImage()
159 const void* src = fStrike->findImage(glyph); in getPackedGlyphImage()
[all …]
DGrBatchFontCache.cpp188 GrGlyph* glyph = (GrGlyph*)fPool.alloc(sizeof(GrGlyph), SK_MALLOC_THROW); in generateGlyph() local
189 glyph->init(packed, bounds, format); in generateGlyph()
190 fCache.add(glyph); in generateGlyph()
191 return glyph; in generateGlyph()
206 bool GrBatchTextStrike::addGlyphToAtlas(GrBatchTarget* batchTarget, GrGlyph* glyph, in addGlyphToAtlas() argument
208 SkASSERT(glyph); in addGlyphToAtlas()
210 SkASSERT(fCache.find(glyph->fPackedID)); in addGlyphToAtlas()
211 SkASSERT(NULL == glyph->fPlot); in addGlyphToAtlas()
215 int bytesPerPixel = GrMaskFormatBytesPerPixel(glyph->fMaskFormat); in addGlyphToAtlas()
217 size_t size = glyph->fBounds.area() * bytesPerPixel; in addGlyphToAtlas()
[all …]
DGrBatchFontCache.h36 GrGlyph* glyph = fCache.find(packed); in getGlyph() local
37 if (NULL == glyph) { in getGlyph()
38 glyph = this->generateGlyph(packed, scaler); in getGlyph()
40 return glyph; in getGlyph()
112 bool hasGlyph(GrGlyph* glyph) { in hasGlyph() argument
113 SkASSERT(glyph); in hasGlyph()
114 return this->getAtlas(glyph->fMaskFormat)->hasID(glyph->fID); in hasGlyph()
123 GrGlyph* glyph, GrBatchAtlas::BatchToken token) { in addGlyphToBulkAndSetUseToken() argument
124 SkASSERT(glyph); in addGlyphToBulkAndSetUseToken()
125 updater->add(glyph->fID); in addGlyphToBulkAndSetUseToken()
[all …]
/external/pdfium/third_party/freetype/src/pshinter/
Dpshalgo.c442 PSH_Glyph glyph ) in psh_hint_align() argument
460 if ( ( dimension == 0 && !glyph->do_horz_hints ) || in psh_hint_align()
461 ( dimension == 1 && !glyph->do_vert_hints ) ) in psh_hint_align()
473 do_snapping = ( dimension == 0 && glyph->do_horz_snapping ) || in psh_hint_align()
474 ( dimension == 1 && glyph->do_vert_snapping ); in psh_hint_align()
519 psh_hint_align( parent, globals, dimension, glyph ); in psh_hint_align()
539 if ( glyph->do_stem_adjust ) in psh_hint_align()
670 PSH_Glyph glyph )
688 if ( ( dimension == 0 && !glyph->do_horz_hints ) ||
689 ( 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.cpp226 SkGlyph* glyph; in lookupByChar() local
234 glyph = &fGlyphArray[rec->fGlyphIndex]; in lookupByChar()
237 glyph = &fGlyphArray[rec->fGlyphIndex]; in lookupByChar()
238 if (type == kFull_MetricsType && glyph->isJustAdvance()) { in lookupByChar()
239 fScalerContext->getMetrics(glyph); in lookupByChar()
242 return glyph; in lookupByChar()
248 SkGlyph* glyph = &fGlyphArray[glyph_index]; in lookupByCombinedID() local
250 if (glyph->fID != id) { in lookupByCombinedID()
254 glyph = &fGlyphArray[glyph_index]; in lookupByCombinedID()
257 if (type == kFull_MetricsType && glyph->isJustAdvance()) { in lookupByCombinedID()
[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 …]
/external/pdfium/third_party/freetype/src/truetype/
Dttgload.c409 load->glyph->control_len = 0; in TT_Load_Simple_Glyph()
410 load->glyph->control_data = 0; in TT_Load_Simple_Glyph()
445 load->glyph->control_len = n_ins; in TT_Load_Simple_Glyph()
446 load->glyph->control_data = load->exec->glyphIns; in TT_Load_Simple_Glyph()
750 if ( loader->glyph->control_len > 0xFFFFL ) in TT_Hint_Glyph()
754 loader->glyph->control_len )); in TT_Hint_Glyph()
756 n_ins = (FT_UInt)( loader->glyph->control_len ); in TT_Hint_Glyph()
1244 loader->glyph->control_data = loader->exec->glyphIns; in TT_Process_Composite_Glyph()
1245 loader->glyph->control_len = n_ins; in TT_Process_Composite_Glyph()
1720 loader->glyph->format = FT_GLYPH_FORMAT_COMPOSITE; in load_truetype_glyph()
[all …]
/external/freetype/src/cff/
Dcffgload.c256 CFF_GlyphSlot glyph, in cff_builder_init() argument
263 builder->glyph = glyph; in cff_builder_init()
266 if ( glyph ) in cff_builder_init()
268 FT_GlyphLoader loader = glyph->root.internal->loader; in cff_builder_init()
285 builder->hints_funcs = glyph->root.internal->glyph_hints; in cff_builder_init()
315 CFF_GlyphSlot glyph = builder->glyph; in cff_builder_done() local
318 if ( glyph ) in cff_builder_done()
319 glyph->root.outline = *builder->base; in cff_builder_done()
785 FT_GlyphSlot glyph = (FT_GlyphSlot)builder->glyph; in cff_operator_seac() local
786 FT_GlyphLoader loader = glyph->internal->loader; in cff_operator_seac()
[all …]

12345678