Home
last modified time | relevance | path

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

12345678910>>...12

/external/chromium_org/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/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/chromium_org/third_party/harfbuzz-ng/src/
Dhb-font-private.hh46 HB_FONT_FUNC_IMPLEMENT (glyph) \
149 hb_codepoint_t *glyph) in get_glyph()
151 *glyph = 0; in get_glyph()
152 return klass->get.glyph (this, user_data, in get_glyph()
153 unicode, variation_selector, glyph, in get_glyph()
154 klass->user_data.glyph); in get_glyph()
157 inline hb_position_t get_glyph_h_advance (hb_codepoint_t glyph) in get_glyph_h_advance()
160 glyph, in get_glyph_h_advance()
164 inline hb_position_t get_glyph_v_advance (hb_codepoint_t glyph) in get_glyph_v_advance()
167 glyph, in get_glyph_v_advance()
[all …]
Dhb-font.cc53 hb_codepoint_t *glyph, in hb_font_get_glyph_nil() argument
57 return font->parent->get_glyph (unicode, variation_selector, glyph); in hb_font_get_glyph_nil()
59 *glyph = 0; in hb_font_get_glyph_nil()
66 hb_codepoint_t glyph, in hb_font_get_glyph_h_advance_nil() argument
70 return font->parent_scale_x_distance (font->parent->get_glyph_h_advance (glyph)); in hb_font_get_glyph_h_advance_nil()
78 hb_codepoint_t glyph, in hb_font_get_glyph_v_advance_nil() argument
82 return font->parent_scale_y_distance (font->parent->get_glyph_v_advance (glyph)); in hb_font_get_glyph_v_advance_nil()
90 hb_codepoint_t glyph, in hb_font_get_glyph_h_origin_nil() argument
96 hb_bool_t ret = font->parent->get_glyph_h_origin (glyph, x, y); in hb_font_get_glyph_h_origin_nil()
109 hb_codepoint_t glyph, in hb_font_get_glyph_v_origin_nil() argument
[all …]
Dhb-ft.cc67 hb_codepoint_t *glyph, in hb_ft_get_glyph() argument
75 *glyph = FT_Face_GetCharVariantIndex (ft_face, unicode, variation_selector); in hb_ft_get_glyph()
76 return *glyph != 0; in hb_ft_get_glyph()
80 *glyph = FT_Get_Char_Index (ft_face, unicode); in hb_ft_get_glyph()
81 return *glyph != 0; in hb_ft_get_glyph()
87 hb_codepoint_t glyph, in hb_ft_get_glyph_h_advance() argument
94 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) in hb_ft_get_glyph_h_advance()
103 hb_codepoint_t glyph, in hb_ft_get_glyph_v_advance() argument
110 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) in hb_ft_get_glyph_v_advance()
121 hb_codepoint_t glyph HB_UNUSED, in hb_ft_get_glyph_h_origin()
[all …]
/external/chromium_org/third_party/mesa/src/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/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/harfbuzz_ng/src/
Dhb-font-private.hh46 HB_FONT_FUNC_IMPLEMENT (glyph) \
214 hb_codepoint_t *glyph) in get_glyph()
216 *glyph = 0; in get_glyph()
217 return klass->get.glyph (this, user_data, in get_glyph()
218 unicode, variation_selector, glyph, in get_glyph()
219 klass->user_data.glyph); in get_glyph()
222 inline hb_position_t get_glyph_h_advance (hb_codepoint_t glyph) in get_glyph_h_advance()
225 glyph, in get_glyph_h_advance()
229 inline hb_position_t get_glyph_v_advance (hb_codepoint_t glyph) in get_glyph_v_advance()
232 glyph, in get_glyph_v_advance()
[all …]
Dhb-ft.cc67 hb_codepoint_t *glyph, in hb_ft_get_glyph() argument
75 *glyph = FT_Face_GetCharVariantIndex (ft_face, unicode, variation_selector); in hb_ft_get_glyph()
76 if (*glyph) in hb_ft_get_glyph()
81 *glyph = FT_Get_Char_Index (ft_face, unicode); in hb_ft_get_glyph()
82 return *glyph != 0; in hb_ft_get_glyph()
88 hb_codepoint_t glyph, in hb_ft_get_glyph_h_advance() argument
95 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) in hb_ft_get_glyph_h_advance()
104 hb_codepoint_t glyph, in hb_ft_get_glyph_v_advance() argument
111 if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v))) in hb_ft_get_glyph_v_advance()
122 hb_codepoint_t glyph HB_UNUSED, in hb_ft_get_glyph_h_origin()
[all …]
Dhb-font.cc54 hb_codepoint_t *glyph, in hb_font_get_glyph_nil() argument
58 return font->parent->get_glyph (unicode, variation_selector, glyph); in hb_font_get_glyph_nil()
60 *glyph = 0; in hb_font_get_glyph_nil()
67 hb_codepoint_t glyph, in hb_font_get_glyph_h_advance_nil() argument
71 return font->parent_scale_x_distance (font->parent->get_glyph_h_advance (glyph)); in hb_font_get_glyph_h_advance_nil()
79 hb_codepoint_t glyph, in hb_font_get_glyph_v_advance_nil() argument
83 return font->parent_scale_y_distance (font->parent->get_glyph_v_advance (glyph)); in hb_font_get_glyph_v_advance_nil()
91 hb_codepoint_t glyph, in hb_font_get_glyph_h_origin_nil() argument
97 hb_bool_t ret = font->parent->get_glyph_h_origin (glyph, x, y); in hb_font_get_glyph_h_origin_nil()
110 hb_codepoint_t glyph, in hb_font_get_glyph_v_origin_nil() argument
[all …]
/external/pixman/pixman/
Dpixman-glyph.c66 free_glyph (glyph_t *glyph) in free_glyph() argument
68 pixman_list_unlink (&glyph->mru_link); in free_glyph()
69 pixman_image_unref (glyph->image); in free_glyph()
70 free (glyph); in free_glyph()
118 glyph_t *glyph) in insert_glyph() argument
123 idx = hash (glyph->font_key, glyph->glyph_key); in insert_glyph()
137 *loc = glyph; in insert_glyph()
142 glyph_t *glyph) in remove_glyph() argument
146 idx = hash (glyph->font_key, glyph->glyph_key); in remove_glyph()
147 while (cache->glyphs[idx & HASH_MASK] != glyph) in remove_glyph()
[all …]
/external/skia/src/core/
DSkGlyphCache.cpp181 SkGlyph* glyph = fGlyphHash[index]; in getGlyphIDAdvance() local
183 if (NULL == glyph || glyph->fID != id) { in getGlyphIDAdvance()
184 glyph = this->lookupMetrics(glyphID, kJustAdvance_MetricsType); in getGlyphIDAdvance()
185 fGlyphHash[index] = glyph; in getGlyphIDAdvance()
187 return *glyph; in getGlyphIDAdvance()
241 SkGlyph* glyph = fGlyphHash[index]; in getGlyphIDMetrics() local
243 if (NULL == glyph || glyph->fID != id) { in getGlyphIDMetrics()
244 RecordHashCollisionIf(glyph != NULL); in getGlyphIDMetrics()
245 glyph = this->lookupMetrics(glyphID, kFull_MetricsType); in getGlyphIDMetrics()
246 fGlyphHash[index] = glyph; in getGlyphIDMetrics()
[all …]
DSkScalerContext.cpp192 SkScalerContext* SkScalerContext::getGlyphContext(const SkGlyph& glyph) { in getGlyphContext() argument
193 unsigned glyphID = glyph.getGlyphID(); in getGlyphContext()
215 const uint16_t glyph = ctx->generateCharToGlyph(uni); in getContextFromChar() local
216 if (glyph) { in getContextFromChar()
218 *glyphID = glyph; in getContextFromChar()
291 void SkScalerContext::getAdvance(SkGlyph* glyph) { in getAdvance() argument
293 glyph->fMaskFormat = MASK_FORMAT_JUST_ADVANCE; in getAdvance()
297 this->getGlyphContext(*glyph)->generateAdvance(glyph); in getAdvance()
300 void SkScalerContext::getMetrics(SkGlyph* glyph) { in getMetrics() argument
301 this->getGlyphContext(*glyph)->generateMetrics(glyph); in getMetrics()
[all …]
/external/chromium_org/third_party/skia/src/core/
DSkGlyphCache.cpp181 SkGlyph* glyph = fGlyphHash[index]; in getGlyphIDAdvance() local
183 if (NULL == glyph || glyph->fID != id) { in getGlyphIDAdvance()
184 glyph = this->lookupMetrics(glyphID, kJustAdvance_MetricsType); in getGlyphIDAdvance()
185 fGlyphHash[index] = glyph; in getGlyphIDAdvance()
187 return *glyph; in getGlyphIDAdvance()
241 SkGlyph* glyph = fGlyphHash[index]; in getGlyphIDMetrics() local
243 if (NULL == glyph || glyph->fID != id) { in getGlyphIDMetrics()
244 RecordHashCollisionIf(glyph != NULL); in getGlyphIDMetrics()
245 glyph = this->lookupMetrics(glyphID, kFull_MetricsType); in getGlyphIDMetrics()
246 fGlyphHash[index] = glyph; in getGlyphIDMetrics()
[all …]
DSkScalerContext.cpp192 SkScalerContext* SkScalerContext::getGlyphContext(const SkGlyph& glyph) { in getGlyphContext() argument
193 unsigned glyphID = glyph.getGlyphID(); in getGlyphContext()
215 const uint16_t glyph = ctx->generateCharToGlyph(uni); in getContextFromChar() local
216 if (glyph) { in getContextFromChar()
218 *glyphID = glyph; in getContextFromChar()
291 void SkScalerContext::getAdvance(SkGlyph* glyph) { in getAdvance() argument
293 glyph->fMaskFormat = MASK_FORMAT_JUST_ADVANCE; in getAdvance()
297 this->getGlyphContext(*glyph)->generateAdvance(glyph); in getAdvance()
300 void SkScalerContext::getMetrics(SkGlyph* glyph) { in getMetrics() argument
301 this->getGlyphContext(*glyph)->generateMetrics(glyph); in getMetrics()
[all …]
/external/skia/src/ports/
DSkFontHost_FreeType.cpp192 virtual void generateAdvance(SkGlyph* glyph) SK_OVERRIDE;
193 virtual void generateMetrics(SkGlyph* glyph) SK_OVERRIDE;
194 virtual void generateImage(const SkGlyph& glyph) SK_OVERRIDE;
195 virtual void generatePath(const SkGlyph& glyph, SkPath* path) SK_OVERRIDE;
198 virtual SkUnichar generateGlyphToChar(uint16_t glyph) SK_OVERRIDE;
216 void getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox,
219 void updateGlyphIfLCD(SkGlyph* glyph);
410 advances[i] = face->glyph->advance.x; in getAdvances()
437 FT_Outline_Get_CBox(&face->glyph->outline, bbox); in GetLetterCBox()
797 static void dumpSkGlyphMetrics(const SkGlyph& glyph) { in dumpSkGlyphMetrics() argument
[all …]
DSkFontHost_FreeType_common.cpp348 void SkScalerContext_FreeType_Base::generateGlyphImage(FT_Face face, const SkGlyph& glyph) { in generateGlyphImage() argument
352 switch ( face->glyph->format ) { in generateGlyphImage()
354 FT_Outline* outline = &face->glyph->outline; in generateGlyphImage()
365 dx = SkFixedToFDot6(glyph.getSubXFixed()); in generateGlyphImage()
366 dy = SkFixedToFDot6(glyph.getSubYFixed()); in generateGlyphImage()
382 if (SkMask::kLCD16_Format == glyph.fMaskFormat) { in generateGlyphImage()
383 FT_Render_Glyph(face->glyph, doVert ? FT_RENDER_MODE_LCD_V : FT_RENDER_MODE_LCD); in generateGlyphImage()
385 glyph.toMask(&mask); in generateGlyphImage()
387 copyFT2LCD16<true>(face->glyph->bitmap, mask, doBGR, in generateGlyphImage()
390 copyFT2LCD16<false>(face->glyph->bitmap, mask, doBGR, in generateGlyphImage()
[all …]
/external/chromium_org/third_party/skia/src/ports/
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()
354 dx = SkFixedToFDot6(glyph.getSubXFixed()); in generateGlyphImage()
355 dy = SkFixedToFDot6(glyph.getSubYFixed()); in generateGlyphImage()
371 if (SkMask::kLCD16_Format == glyph.fMaskFormat) { in generateGlyphImage()
372 FT_Render_Glyph(face->glyph, doVert ? FT_RENDER_MODE_LCD_V : FT_RENDER_MODE_LCD); in generateGlyphImage()
374 glyph.toMask(&mask); in generateGlyphImage()
376 copyFT2LCD16<true>(face->glyph->bitmap, mask, doBGR, in generateGlyphImage()
379 copyFT2LCD16<false>(face->glyph->bitmap, mask, doBGR, in generateGlyphImage()
[all …]
DSkFontHost_FreeType.cpp190 virtual void generateAdvance(SkGlyph* glyph) SK_OVERRIDE;
191 virtual void generateMetrics(SkGlyph* glyph) SK_OVERRIDE;
192 virtual void generateImage(const SkGlyph& glyph) SK_OVERRIDE;
193 virtual void generatePath(const SkGlyph& glyph, SkPath* path) SK_OVERRIDE;
196 virtual SkUnichar generateGlyphToChar(uint16_t glyph) SK_OVERRIDE;
214 void getBBoxForCurrentGlyph(SkGlyph* glyph, FT_BBox* bbox,
217 void updateGlyphIfLCD(SkGlyph* glyph);
408 advances[i] = face->glyph->advance.x; in getAdvances()
435 FT_Outline_Get_CBox(&face->glyph->outline, bbox); in GetLetterCBox()
1042 SkUnichar SkScalerContext_FreeType::generateGlyphToChar(uint16_t glyph) { in generateGlyphToChar() argument
[all …]
/external/skia/src/fonts/
DSkGScalerContext.cpp79 void SkGScalerContext::generateAdvance(SkGlyph* glyph) { in generateAdvance() argument
80 fProxy->getAdvance(glyph); in generateAdvance()
83 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateAdvance()
84 SkFixedToScalar(glyph->fAdvanceY), &advance); in generateAdvance()
85 glyph->fAdvanceX = SkScalarToFixed(advance.fX); in generateAdvance()
86 glyph->fAdvanceY = SkScalarToFixed(advance.fY); in generateAdvance()
89 void SkGScalerContext::generateMetrics(SkGlyph* glyph) { in generateMetrics() argument
90 fProxy->getMetrics(glyph); in generateMetrics()
93 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateMetrics()
94 SkFixedToScalar(glyph->fAdvanceY), &advance); in generateMetrics()
[all …]
/external/chromium_org/third_party/skia/src/fonts/
DSkGScalerContext.cpp79 void SkGScalerContext::generateAdvance(SkGlyph* glyph) { in generateAdvance() argument
80 fProxy->getAdvance(glyph); in generateAdvance()
83 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateAdvance()
84 SkFixedToScalar(glyph->fAdvanceY), &advance); in generateAdvance()
85 glyph->fAdvanceX = SkScalarToFixed(advance.fX); in generateAdvance()
86 glyph->fAdvanceY = SkScalarToFixed(advance.fY); in generateAdvance()
89 void SkGScalerContext::generateMetrics(SkGlyph* glyph) { in generateMetrics() argument
90 fProxy->getMetrics(glyph); in generateMetrics()
93 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateMetrics()
94 SkFixedToScalar(glyph->fAdvanceY), &advance); in generateMetrics()
[all …]
/external/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/chromium_org/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/chromium_org/third_party/skia/src/gpu/
DGrBitmapTextContext.cpp136 GrGlyph* glyph = fStrike->getGlyph(packed, scaler); in drawPackedGlyph() local
137 if (NULL == glyph || glyph->fBounds.isEmpty()) { in drawPackedGlyph()
141 vx += SkIntToFixed(glyph->fBounds.fLeft); in drawPackedGlyph()
142 vy += SkIntToFixed(glyph->fBounds.fTop); in drawPackedGlyph()
145 GrFixed width = glyph->fBounds.width(); in drawPackedGlyph()
146 GrFixed height = glyph->fBounds.height(); in drawPackedGlyph()
149 if (true || NULL == glyph->fPlot) { in drawPackedGlyph()
158 if (NULL == glyph->fPlot) { in drawPackedGlyph()
159 if (fStrike->getGlyphAtlas(glyph, scaler)) { in drawPackedGlyph()
165 if (fStrike->getGlyphAtlas(glyph, scaler)) { in drawPackedGlyph()
[all …]
/external/skia/src/gpu/
DGrBitmapTextContext.cpp136 GrGlyph* glyph = fStrike->getGlyph(packed, scaler); in drawPackedGlyph() local
137 if (NULL == glyph || glyph->fBounds.isEmpty()) { in drawPackedGlyph()
141 vx += SkIntToFixed(glyph->fBounds.fLeft); in drawPackedGlyph()
142 vy += SkIntToFixed(glyph->fBounds.fTop); in drawPackedGlyph()
145 GrFixed width = glyph->fBounds.width(); in drawPackedGlyph()
146 GrFixed height = glyph->fBounds.height(); in drawPackedGlyph()
149 if (true || NULL == glyph->fPlot) { in drawPackedGlyph()
158 if (NULL == glyph->fPlot) { in drawPackedGlyph()
159 if (fStrike->getGlyphAtlas(glyph, scaler)) { in drawPackedGlyph()
165 if (fStrike->getGlyphAtlas(glyph, scaler)) { in drawPackedGlyph()
[all …]

12345678910>>...12