Home
last modified time | relevance | path

Searched refs:cbox (Results 1 – 20 of 20) sorted by relevance

/external/freetype/src/base/
Dftlcdfil.c37 ft_lcd_padding( FT_BBox* cbox, in ft_lcd_padding() argument
61 cbox->xMin -= lcd_weights[0] ? 43 : in ft_lcd_padding()
63 cbox->xMax += lcd_weights[4] ? 43 : in ft_lcd_padding()
68 cbox->yMin -= lcd_weights[0] ? 43 : in ft_lcd_padding()
70 cbox->yMax += lcd_weights[4] ? 43 : in ft_lcd_padding()
373 ft_lcd_padding( FT_BBox* cbox, in ft_lcd_padding() argument
381 cbox->xMin -= FT_MAX( FT_MAX( sub[0].x, sub[1].x ), sub[2].x ); in ft_lcd_padding()
382 cbox->xMax -= FT_MIN( FT_MIN( sub[0].x, sub[1].x ), sub[2].x ); in ft_lcd_padding()
383 cbox->yMin -= FT_MAX( FT_MAX( sub[0].y, sub[1].y ), sub[2].y ); in ft_lcd_padding()
384 cbox->yMax -= FT_MIN( FT_MIN( sub[0].y, sub[1].y ), sub[2].y ); in ft_lcd_padding()
[all …]
Dftoutln.c622 FT_BBox cbox; in FT_Outline_Render() local
634 FT_Outline_Get_CBox( outline, &cbox ); in FT_Outline_Render()
635 if ( cbox.xMin < -0x1000000L || cbox.yMin < -0x1000000L || in FT_Outline_Render()
636 cbox.xMax > 0x1000000L || cbox.yMax > 0x1000000L ) in FT_Outline_Render()
1053 FT_BBox cbox = { 0, 0, 0, 0 }; in FT_Outline_Get_Orientation() local
1069 FT_Outline_Get_CBox( outline, &cbox ); in FT_Outline_Get_Orientation()
1072 if ( cbox.xMin == cbox.xMax || cbox.yMin == cbox.yMax ) in FT_Outline_Get_Orientation()
1075 xshift = FT_MSB( (FT_UInt32)( FT_ABS( cbox.xMax ) | in FT_Outline_Get_Orientation()
1076 FT_ABS( cbox.xMin ) ) ) - 14; in FT_Outline_Get_Orientation()
1079 yshift = FT_MSB( (FT_UInt32)( cbox.yMax - cbox.yMin ) ) - 14; in FT_Outline_Get_Orientation()
Dftbbox.c466 FT_BBox cbox = { 0x7FFFFFFFL, 0x7FFFFFFFL, in FT_EXPORT_DEF() local
497 FT_UPDATE_BBOX( vec, cbox ); in FT_EXPORT_DEF()
506 if ( cbox.xMin < bbox.xMin || cbox.xMax > bbox.xMax || in FT_EXPORT_DEF()
507 cbox.yMin < bbox.yMin || cbox.yMax > bbox.yMax ) in FT_EXPORT_DEF()
Dftobjs.c355 FT_BBox cbox; in ft_glyphslot_preset_bitmap() local
373 FT_Outline_Get_CBox( outline, &cbox ); in ft_glyphslot_preset_bitmap()
375 cbox.xMin += x_shift; in ft_glyphslot_preset_bitmap()
376 cbox.yMin += y_shift; in ft_glyphslot_preset_bitmap()
377 cbox.xMax += x_shift; in ft_glyphslot_preset_bitmap()
378 cbox.yMax += y_shift; in ft_glyphslot_preset_bitmap()
387 if ( cbox.xMax - cbox.xMin < 64 ) in ft_glyphslot_preset_bitmap()
389 cbox.xMin = ( cbox.xMin + cbox.xMax ) / 2 - 32; in ft_glyphslot_preset_bitmap()
390 cbox.xMax = cbox.xMin + 64; in ft_glyphslot_preset_bitmap()
393 cbox.xMin = FT_PIX_ROUND_LONG( cbox.xMin ); in ft_glyphslot_preset_bitmap()
[all …]
Dftglyph.c122 FT_BBox* cbox ) in ft_bitmap_glyph_bbox() argument
127 cbox->xMin = glyph->left * 64; in ft_bitmap_glyph_bbox()
128 cbox->xMax = cbox->xMin + (FT_Pos)( glyph->bitmap.width * 64 ); in ft_bitmap_glyph_bbox()
129 cbox->yMax = glyph->top * 64; in ft_bitmap_glyph_bbox()
130 cbox->yMin = cbox->yMax - (FT_Pos)( glyph->bitmap.rows * 64 ); in ft_bitmap_glyph_bbox()
/external/pdfium/core/fpdfapi/font/
Dcpdf_cidfont.cpp460 FXFT_BBox cbox; in GetCharBBox() local
461 FXFT_Glyph_Get_CBox(glyph, FXFT_GLYPH_BBOX_PIXELS, &cbox); in GetCharBBox()
462 cbox.xMin = pdfium::clamp(cbox.xMin, kMinCBox, kMaxCBox); in GetCharBBox()
463 cbox.xMax = pdfium::clamp(cbox.xMax, kMinCBox, kMaxCBox); in GetCharBBox()
464 cbox.yMin = pdfium::clamp(cbox.yMin, kMinCBox, kMaxCBox); in GetCharBBox()
465 cbox.yMax = pdfium::clamp(cbox.yMax, kMinCBox, kMaxCBox); in GetCharBBox()
469 rect = FX_RECT(cbox.xMin, cbox.yMax, cbox.xMax, cbox.yMin); in GetCharBBox()
471 rect = FX_RECT(cbox.xMin * 1000 / pixel_size_x, in GetCharBBox()
472 cbox.yMax * 1000 / pixel_size_y, in GetCharBBox()
473 cbox.xMax * 1000 / pixel_size_x, in GetCharBBox()
[all …]
/external/pdfium/core/fxge/android/
Dcfpf_skiafont.cpp106 FXFT_BBox cbox; in GetGlyphBBox() local
107 FXFT_Glyph_Get_CBox(glyph, FXFT_GLYPH_BBOX_PIXELS, &cbox); in GetGlyphBBox()
110 rtBBox.left = FPF_EM_ADJUST(x_ppem, cbox.xMin); in GetGlyphBBox()
111 rtBBox.right = FPF_EM_ADJUST(x_ppem, cbox.xMax); in GetGlyphBBox()
112 rtBBox.top = FPF_EM_ADJUST(y_ppem, cbox.yMax); in GetGlyphBBox()
113 rtBBox.bottom = FPF_EM_ADJUST(y_ppem, cbox.yMin); in GetGlyphBBox()
/external/pdfium/core/fxge/
Dcfx_font.cpp366 FXFT_BBox cbox; in GetGlyphBBox() local
372 FXFT_Glyph_Get_CBox(glyph, FXFT_GLYPH_BBOX_PIXELS, &cbox); in GetGlyphBBox()
376 bbox.left = cbox.xMin; in GetGlyphBBox()
377 bbox.right = cbox.xMax; in GetGlyphBBox()
378 bbox.top = cbox.yMax; in GetGlyphBBox()
379 bbox.bottom = cbox.yMin; in GetGlyphBBox()
381 bbox.left = cbox.xMin * 1000 / pixel_size_x; in GetGlyphBBox()
382 bbox.right = cbox.xMax * 1000 / pixel_size_x; in GetGlyphBBox()
383 bbox.top = cbox.yMax * 1000 / pixel_size_y; in GetGlyphBBox()
384 bbox.bottom = cbox.yMin * 1000 / pixel_size_y; in GetGlyphBBox()
/external/freetype/src/cid/
Dcidgload.c439 FT_BBox cbox; in cid_slot_load_glyph() local
506 FT_Outline_Get_CBox( &cidglyph->outline, &cbox ); in cid_slot_load_glyph()
508 metrics->width = cbox.xMax - cbox.xMin; in cid_slot_load_glyph()
509 metrics->height = cbox.yMax - cbox.yMin; in cid_slot_load_glyph()
511 metrics->horiBearingX = cbox.xMin; in cid_slot_load_glyph()
512 metrics->horiBearingY = cbox.yMax; in cid_slot_load_glyph()
/external/freetype/src/pfr/
Dpfrobjs.c366 FT_BBox cbox; in pfr_slot_load() local
449 FT_Outline_Get_CBox( outline, &cbox ); in pfr_slot_load()
451 metrics->width = cbox.xMax - cbox.xMin; in pfr_slot_load()
452 metrics->height = cbox.yMax - cbox.yMin; in pfr_slot_load()
453 metrics->horiBearingX = cbox.xMin; in pfr_slot_load()
454 metrics->horiBearingY = cbox.yMax - metrics->height; in pfr_slot_load()
/external/freetype/src/type1/
Dt1gload.c483 FT_BBox cbox; in T1_Load_Glyph() local
562 FT_Outline_Get_CBox( &t1glyph->outline, &cbox ); in T1_Load_Glyph()
564 metrics->width = cbox.xMax - cbox.xMin; in T1_Load_Glyph()
565 metrics->height = cbox.yMax - cbox.yMin; in T1_Load_Glyph()
567 metrics->horiBearingX = cbox.xMin; in T1_Load_Glyph()
568 metrics->horiBearingY = cbox.yMax; in T1_Load_Glyph()
/external/freetype/src/cff/
Dcffgload.c547 FT_BBox cbox; in cff_slot_load() local
659 FT_Outline_Get_CBox( &glyph->root.outline, &cbox ); in cff_slot_load()
661 metrics->width = cbox.xMax - cbox.xMin; in cff_slot_load()
662 metrics->height = cbox.yMax - cbox.yMin; in cff_slot_load()
664 metrics->horiBearingX = cbox.xMin; in cff_slot_load()
665 metrics->horiBearingY = cbox.yMax; in cff_slot_load()
/external/freetype/src/raster/
Dftrend1.c83 FT_BBox* cbox ) in ft_raster1_get_cbox() argument
85 FT_ZERO( cbox ); in ft_raster1_get_cbox()
88 FT_Outline_Get_CBox( &slot->outline, cbox ); in ft_raster1_get_cbox()
/external/freetype/src/smooth/
Dftsmooth.c98 FT_BBox* cbox ) in ft_smooth_get_cbox() argument
100 FT_ZERO( cbox ); in ft_smooth_get_cbox()
103 FT_Outline_Get_CBox( &slot->outline, cbox ); in ft_smooth_get_cbox()
/external/freetype/include/freetype/
Dftrender.h104 FT_BBox* cbox );
/external/freetype/include/freetype/internal/
Dftobjs.h275 ft_lcd_padding( FT_BBox* cbox,
/external/freetype/
DChangeLog.222810 . As we use the glyph's cbox to calculate the top bearing now
DChangeLog406 * src/base/ftoutln.c (FT_Outline_Get_Orientation): Init `cbox'.
DChangeLog.251020 virtually by modifying cbox, actually translate outline if cumulative
DChangeLog.26929 * src/base/ftoutln.c (FT_Outline_Render): Move cbox size test to...