/external/freetype/src/base/ |
D | ftglyph.c | 63 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/ |
D | ftglyph.c | 63 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/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/base/ |
D | ftglyph.c | 63 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/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/pfr/ |
D | pfrgload.c | 40 pfr_glyph_init( PFR_Glyph glyph, in pfr_glyph_init() argument 43 FT_ZERO( glyph ); in pfr_glyph_init() 45 glyph->loader = loader; in pfr_glyph_init() 46 glyph->path_begun = 0; in pfr_glyph_init() 53 pfr_glyph_done( PFR_Glyph glyph ) in pfr_glyph_done() argument 55 FT_Memory memory = glyph->loader->memory; in pfr_glyph_done() 58 FT_FREE( glyph->x_control ); in pfr_glyph_done() 59 glyph->y_control = NULL; in pfr_glyph_done() 61 glyph->max_xy_control = 0; in pfr_glyph_done() 63 glyph->num_x_control = 0; in pfr_glyph_done() [all …]
|
/external/skia/src/gpu/text/ |
D | GrFontScaler.cpp | 49 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 …]
|
D | GrBatchFontCache.h | 35 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 …]
|
D | GrBatchFontCache.cpp | 187 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 …]
|
/external/harfbuzz_ng/src/ |
D | hb-font-private.hh | 183 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 …]
|
D | hb-font.cc | 99 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 …]
|
D | hb-font.h | 121 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 …]
|
D | hb-ot-font.cc | 111 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 …]
|
D | hb-ft.cc | 161 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 …]
|
/external/skia/src/fonts/ |
D | SkRandomScalerContext.cpp | 56 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 …]
|
D | SkTestScalerContext.cpp | 122 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 …]
|
D | SkGScalerContext.cpp | 76 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/ |
D | text.c | 51 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/ |
D | SkScalerContext_win_dw.cpp | 339 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 …]
|
D | SkFontHost_FreeType_common.cpp | 337 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 …]
|
D | SkFontHost_FreeType.cpp | 194 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 …]
|
D | SkFontHost_win.cpp | 384 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/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
D | BitmapFont.java | 180 for (Glyph glyph : page) in load() 181 if (glyph != null) data.setGlyphRegion(glyph, regions.get(glyph.page)); in load() 554 Glyph glyph = new Glyph(); in load() local 561 missingGlyph = glyph; in load() 563 setGlyph(ch, glyph); in load() 566 glyph.id = ch; in load() 568 glyph.srcX = Integer.parseInt(tokens.nextToken()); in load() 570 glyph.srcY = Integer.parseInt(tokens.nextToken()); in load() 572 glyph.width = Integer.parseInt(tokens.nextToken()); in load() 574 glyph.height = Integer.parseInt(tokens.nextToken()); in load() [all …]
|
/external/pdfium/third_party/freetype/src/pshinter/ |
D | pshalgo.c | 440 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/ |
D | pshalgo.c | 440 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/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/pshinter/ |
D | pshalgo.c | 440 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/ |
D | SkScalerContext.cpp | 118 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 …]
|