Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Typedefs | Functions | Variables
ftbbox.c File Reference
#include <ft2build.h>

Go to the source code of this file.

Macros

#define CHECK_X(p, bbox)   ( p->x < bbox.xMin || p->x > bbox.xMax )
 
#define CHECK_Y(p, bbox)   ( p->y < bbox.yMin || p->y > bbox.yMax )
 

Typedefs

typedef struct TBBox_Rec_ TBBox_Rec
 

Functions

 FT_DEFINE_OUTLINE_FUNCS (bbox_interface,(FT_Outline_MoveTo_Func) BBox_Move_To,(FT_Outline_LineTo_Func) BBox_Move_To,(FT_Outline_ConicTo_Func) BBox_Conic_To,(FT_Outline_CubicTo_Func) BBox_Cubic_To, 0, 0) FT_Outline_Get_BBox(FT_Outline *outline
 
 if (!abbox) return FT_THROW(Invalid_Argument)
 
 if (outline->n_points==0||outline->n_contours<=0)
 
 for (n=1;n< outline->n_points;n++)
 
 if (cbox.xMin< bbox.xMin||cbox.xMax > bbox.xMax||cbox.yMin< bbox.yMin||cbox.yMax > bbox.yMax)
 

Variables

FT_BBoxabbox
 
FT_BBox bbox
 
FT_Vectorvec = outline->points
 
FT_UShort n
 
bbox xMin = bbox.xMax = cbox.xMin = cbox.xMax = vec->x
 
bbox yMin = bbox.yMax = cbox.yMin = cbox.yMax = vec->y
 
return FT_Err_Ok
 

Macro Definition Documentation

◆ CHECK_X

#define CHECK_X (   p,
  bbox 
)    ( p->x < bbox.xMin || p->x > bbox.xMax )

Definition at line 75 of file ftbbox.c.

◆ CHECK_Y

#define CHECK_Y (   p,
  bbox 
)    ( p->y < bbox.yMin || p->y > bbox.yMax )

Definition at line 78 of file ftbbox.c.

Typedef Documentation

◆ TBBox_Rec

typedef struct TBBox_Rec_ TBBox_Rec

Function Documentation

◆ for()

for ( n  = 1; n < outline->n_points; n++)

◆ FT_DEFINE_OUTLINE_FUNCS()

FT_DEFINE_OUTLINE_FUNCS ( bbox_interface  ,
(FT_Outline_MoveTo_Func BBox_Move_To,
(FT_Outline_LineTo_Func BBox_Move_To,
(FT_Outline_ConicTo_Func BBox_Conic_To,
(FT_Outline_CubicTo_Func BBox_Cubic_To,
,
 
)

◆ if() [1/3]

if ( abbox)

Referenced by af_glyph_hints_reload(), af_latin_hints_compute_segments(), af_property_get_face_globals(), alloc_large(), alloc_small(), cf2_decoder_parse_charstrings(), cff_builder_add_point(), cff_builder_close_contour(), cff_decoder_parse_charstrings(), cff_decoder_prepare(), cff_face_done(), cff_size_done(), cid_face_init(), cid_parse_font_matrix(), consume_markers(), create_colorindex(), decode_mcu(), decode_mcu_AC_first(), decode_mcu_DC_first(), decode_mcu_DC_refine(), deflateResetKeep(), empty_output_buffer(), encode_mcu_AC_first(), encode_mcu_AC_refine(), encode_mcu_DC_first(), encode_mcu_DC_refine(), encode_mcu_gather(), fill_window(), finish_output_bmp(), finish_output_pass(), flush_packet(), free_pool(), FT_Get_Advances(), ftc_basic_gnode_compare_faceid(), gzclose_w(), inflate(), inflateBack(), inflateEnd(), inflateGetDictionary(), inflateGetHeader(), inflatePrime(), inflateReset2(), inflateResetKeep(), inflateSetDictionary(), inflateSync(), vl::ShaderNode::inherit(), jinit_d_post_controller(), jpeg_make_c_derived_tbl(), jpeg_make_d_derived_tbl(), jpeg_new_colormap(), jpeg_set_marker_processor(), log_append(), MD5Update(), merged_2v_upsample(), vl::DaeLoader::parseGeometry(), pfr_slot_load(), png_do_shift(), post_process_1pass(), post_process_2pass(), post_process_prepass(), prepare_for_output_pass(), process_data_context_main(), process_data_simple_main(), process_restart(), ps_table_add(), ps_table_new(), request_virt_barray(), request_virt_sarray(), sep_upsample(), setfiletime(), sfnt_done_face(), sfnt_init_face(), vl::Effect::shallowCopyFrom(), skip_input_data(), smoothing_ok(), start_iMCU_row(), start_output_pass(), start_pass_2_quant(), start_pass_coef(), start_pass_huff_decoder(), start_pass_prep(), t1_builder_close_contour(), T1_Face_Init(), T1_Get_Advances(), T1_Parse_Glyph(), T1_Parse_Glyph_And_Get_Char_String(), T42_Face_Init(), t42_parse_dict(), t42_parser_init(), term_destination(), TIFFReadCustomDirectory(), TIFFWriteEncodedTile(), tt_cmap_init(), tt_face_build_cmaps(), tt_face_done(), tt_face_get_ps_name(), TT_Load_Simple_Glyph(), tt_size_reset(), unzOpenCurrentFile3(), unzReadCurrentFile(), update_box(), updatewindow(), write_scan_header(), and zip64local_TmzDateToDosDate().

◆ if() [2/3]

if ( outline->  n_points = = 0 || outline->n_contours <= 0)

◆ if() [3/3]

if ( cbox.xMin< bbox.xMin||cbox.xMax > bbox.xMax||cbox.yMin< bbox.yMin||cbox.yMax > bbox.  yMax)

Definition at line 620 of file ftbbox.c.

References bbox, error, and FT_Outline_Decompose().

Variable Documentation

◆ abbox

else * abbox
Initial value:
{
FT_BBox cbox

Definition at line 563 of file ftbbox.c.

◆ bbox

FT_BBox bbox

◆ FT_Err_Ok

return FT_Err_Ok

Definition at line 645 of file ftbbox.c.

Referenced by af_axis_hints_new_edge(), af_axis_hints_new_segment(), af_face_globals_get_metrics(), af_glyph_hints_reload(), af_latin2_hints_compute_edges(), af_latin2_hints_compute_segments(), af_latin2_metrics_init(), af_latin_hints_compute_edges(), af_latin_hints_compute_segments(), af_loader_reset(), af_property_get(), af_property_get_face_globals(), af_property_set(), afm_parser_init(), afm_parser_read_int(), bdf_cmap_init(), BDF_Face_Init(), BDF_Glyph_Load(), bdf_load_font(), BDF_Size_Request(), BDF_Size_Select(), cf2_decoder_parse_charstrings(), cf2_getGlyphWidth(), cf2_getSeacComponent(), cf2_interpT2CharString(), cf2_stack_init(), cff_builder_start_point(), cff_decoder_parse_charstrings(), cff_decoder_prepare(), cff_driver_init(), cff_face_init(), cff_get_advances(), cff_get_kerning(), cff_index_access_element(), cff_parser_run(), cff_size_init(), cff_slot_init(), cid_driver_init(), cid_load_glyph(), cid_parse_font_matrix(), cid_size_init(), FT_Activate_Size(), FT_Add_Module(), FT_Bitmap_Convert(), FT_Bitmap_Copy(), FT_Bitmap_Embolden(), ft_bitmap_glyph_init(), FT_CMap_New(), FT_DEFINE_GLYPH(), FT_Done_Face(), FT_Done_FreeType(), FT_Done_Size(), FT_Get_Advances(), FT_Get_Kerning(), FT_Get_PFR_Metrics(), FT_Get_Track_Kerning(), FT_Glyph_To_Bitmap(), FT_Glyph_Transform(), FT_GlyphLoader_CheckPoints(), FT_GlyphLoader_CheckSubGlyphs(), FT_GlyphSlot_Own_Bitmap(), FT_List_Iterate(), FT_Match_Size(), FT_Matrix_Invert(), ft_mem_qalloc(), ft_mem_qrealloc(), ft_mem_realloc(), FT_New_Library(), FT_New_Memory_Face(), FT_Outline_Copy(), FT_Outline_Decompose(), FT_Outline_EmboldenXY(), ft_outline_glyph_prepare(), FT_Raccess_Get_HeaderInfo(), FT_Reference_Face(), FT_Reference_Library(), FT_Render_Glyph_Internal(), FT_Request_Size(), FT_Select_Size(), FT_Set_Renderer(), FT_Stream_EnterFrame(), FT_Stream_Open(), FT_Stream_ReadAt(), FT_Stream_ReadChar(), FT_Stream_ReadFields(), FT_Stream_ReadULong(), FT_Stream_ReadULongLE(), FT_Stream_ReadUOffset(), FT_Stream_ReadUShort(), FT_Stream_ReadUShortLE(), FT_Stream_Seek(), FT_Stroker_BeginSubPath(), FT_Stroker_ConicTo(), FT_Stroker_CubicTo(), FT_Stroker_EndSubPath(), FT_Stroker_LineTo(), FT_Stroker_ParseOutline(), ft_validator_init(), gxv_sfntName_validate(), main(), parse_afm(), parse_expansion_factor(), parse_fd_array(), pcf_cmap_init(), PCF_Face_Init(), PCF_Glyph_Load(), pcf_load_font(), PCF_Size_Request(), PCF_Size_Select(), pfr_cmap_init(), pfr_extra_item_load_bitmap_info(), pfr_extra_item_load_font_id(), pfr_extra_item_load_kerning_pairs(), pfr_extra_item_load_stem_snaps(), pfr_extra_items_parse(), pfr_face_get_kerning(), pfr_get_advance(), pfr_get_kerning(), pfr_get_metrics(), ps_hints_apply(), ps_hints_init(), ps_parser_init(), ps_parser_load_field_table(), ps_parser_to_bytes(), sfnt_load_face(), t1_builder_add_contour(), t1_builder_start_point(), T1_Compute_Max_Advance(), t1_decoder_init(), t1_decoder_parse_charstrings(), T1_Driver_Init(), T1_Face_Init(), T1_Get_Advances(), T1_Get_Multi_Master(), T1_Get_Private_Dict(), T1_Get_Track_Kerning(), T1_Parse_Glyph_And_Get_Char_String(), T1_Set_MM_Blend(), T1_Size_Init(), T42_Driver_Init(), T42_GlyphSlot_Init(), t42_parse_dict(), t42_parser_init(), T42_Size_Init(), TT_Access_Glyph_Frame(), tt_cmap_init(), tt_driver_init(), tt_face_build_cmaps(), tt_face_done(), tt_face_get_metrics(), tt_face_init(), tt_face_load_any(), tt_face_load_cvt(), tt_face_load_eblc(), tt_face_load_fpgm(), tt_face_load_hdmx(), tt_face_load_post(), tt_face_load_prep(), tt_face_load_strike_metrics(), TT_Load_Glyph(), TT_Load_Glyph_Header(), tt_size_init(), and tt_size_reset().

◆ n

Definition at line 567 of file ftbbox.c.

◆ vec

vec = outline->points

◆ xMin

bbox xMin = bbox.xMax = cbox.xMin = cbox.xMax = vec->x

Definition at line 589 of file ftbbox.c.

Referenced by FT_Outline_Get_CBox().

◆ yMin

bbox yMin = bbox.yMax = cbox.yMin = cbox.yMax = vec->y

Definition at line 590 of file ftbbox.c.

Referenced by FT_Outline_Get_CBox().