📄 speedo.h
字号:
#if INCL_MULTIDEVboolean sp_set_outline_device(PROTO_DECL2 outline_t *ofuncs, ufix16 size);#endifboolean sp_init_outline(PROTO_DECL2 specs_t GLOBALFAR *specsarg);boolean sp_begin_char_outline(PROTO_DECL2 point_t Psw,point_t Pmin,point_t Pmax);void sp_begin_sub_char_outline(PROTO_DECL2 point_t Psw,point_t Pmin,point_t Pmax);void sp_begin_contour_outline(PROTO_DECL2 point_t P1,boolean outside);void sp_curve_outline(PROTO_DECL2 point_t P1,point_t P2,point_t P3, fix15 depth);void sp_line_outline(PROTO_DECL2 point_t P1);void sp_end_contour_outline(PROTO_DECL1);void sp_end_sub_char_outline(PROTO_DECL1);boolean sp_end_char_outline(PROTO_DECL1);#endif/* out_bl2d.c functions */#if INCL_2Dboolean sp_init_2d(PROTO_DECL2 specs_t GLOBALFAR *specsarg);boolean sp_begin_char_2d(PROTO_DECL2 point_t Psw,point_t Pmin,point_t Pmax);void sp_begin_contour_2d(PROTO_DECL2 point_t P1,boolean outside);void sp_line_2d(PROTO_DECL2 point_t P1);boolean sp_end_char_2d(PROTO_DECL1);#endif/* out_util.c functions */#if INCL_BLACK || INCL_SCREEN || INCL_2D #if INCL_MULTIDEVboolean sp_set_bitmap_device(PROTO_DECL2 bitmap_t *bfuncs, ufix16 size);#endifvoid sp_init_char_out(PROTO_DECL2 point_t Psw, point_t Pmin, point_t Pmax);void sp_begin_sub_char_out(PROTO_DECL2 point_t Psw, point_t Pmin, point_t Pmax);void sp_curve_out(PROTO_DECL2 point_t P1, point_t P2, point_t P3, fix15 depth);void sp_end_contour_out(PROTO_DECL1);void sp_end_sub_char_out(PROTO_DECL1);void sp_init_intercepts_out(PROTO_DECL1);void sp_restart_intercepts_out(PROTO_DECL1);void sp_set_first_band_out(PROTO_DECL2 point_t Pmin, point_t Pmax);void sp_reduce_band_size_out(PROTO_DECL1);boolean sp_next_band_out(PROTO_DECL1);#endif#if INCL_USEROUTboolean sp_init_userout(specs_t *specsarg);#endif/* reset.c functions */void sp_reset(PROTO_DECL1);#if INCL_KEYSvoid sp_set_key(PROTO_DECL2 ufix8 key[]);#endifufix16 sp_get_cust_no(PROTO_DECL2 buff_t font_buff);/* set_spcs.c functions */boolean sp_set_specs(PROTO_DECL2 specs_t STACKFAR *specsarg);void sp_type_tcb(PROTO_DECL2 tcb_t GLOBALFAR *ptcb);fix31 sp_read_long(PROTO_DECL2 ufix8 FONTFAR *pointer);fix15 sp_read_word_u(PROTO_DECL2 ufix8 FONTFAR *pointer);/* set_trns.c functions */void sp_init_tcb(PROTO_DECL1);void sp_scale_tcb(PROTO_DECL2 tcb_t GLOBALFAR *ptcb,fix15 x_pos,fix15 y_pos,fix15 x_scale,fix15 y_scale);ufix8 FONTFAR *sp_plaid_tcb(PROTO_DECL2 ufix8 FONTFAR *pointer,ufix8 format);ufix8 FONTFAR *sp_skip_interpolation_table(PROTO_DECL2 ufix8 FONTFAR *pointer, ufix8 format);ufix8 FONTFAR *sp_skip_control_zone(PROTO_DECL2 ufix8 FONTFAR *pointer, ufix8 format);ufix8 FONTFAR *sp_read_oru_table(PROTO_DECL2 ufix8 FONTFAR *pointer);#if INCL_SQUEEZING || INCL_ISWstatic void sp_calculate_x_pix(PROTO_DECL2 ufix8 start_edge,ufix8 end_edge,ufix16 constr_nr,fix31 x_scale,fix31 x_offset,fix31 ppo,fix15 setwidth_pix);#endif#if INCL_SQUEEZINGstatic void sp_calculate_y_pix(PROTO_DECL2 ufix8 start_edge,ufix8 end_edge,ufix16 constr_nr,fix31 top_scale,fix31 bottom_scale,fix31 ppo,fix15 emtop_pix,fix15 embot_pix);boolean sp_calculate_x_scale(PROTO_DECL2 fix31 *x_factor,fix31 *x_offset,fix15 no_x_ctrl_zones);boolean sp_calculate_y_scale(PROTO_DECL2 fix31 *top_scale,fix31 *bottom_scale,fix15 first_y_zone, fix15 no_Y_ctrl_zones);#endif /* user defined functions */void sp_report_error(PROTO_DECL2 fix15 n);#if INCL_BLACK || INCL_SCREEN || INCL_2Dvoid sp_open_bitmap(PROTO_DECL2 fix31 x_set_width, fix31 y_set_width, fix31 xorg, fix31 yorg, fix15 xsize,fix15 ysize);void sp_set_bitmap_bits(PROTO_DECL2 fix15 y, fix15 xbit1, fix15 xbit2);void sp_close_bitmap(PROTO_DECL1);#endif#if INCL_OUTLINEvoid sp_open_outline(PROTO_DECL2 fix31 x_set_width, fix31 y_set_width, fix31 xmin, fix31 xmax, fix31 ymin,fix31 ymax);void sp_start_new_char(PROTO_DECL1);void sp_start_contour(PROTO_DECL2 fix31 x,fix31 y,boolean outside);void sp_curve_to(PROTO_DECL2 fix31 x1, fix31 y1, fix31 x2, fix31 y2, fix31 x3, fix31 y3);void sp_line_to(PROTO_DECL2 fix31 x, fix31 y);void sp_close_contour(PROTO_DECL1);void sp_close_outline(PROTO_DECL1);#endif#if INCL_LCD /* Dynamic load character data supported? */buff_t *sp_load_char_data(PROTO_DECL2 fix31 file_offset,fix15 no_bytes,fix15 cb_offset); /* Load character data from font file */#endif#if INCL_PLAID_OUT /* Plaid data monitoring included? */void sp_record_xint(PROTO_DECL2 fix15 int_num); /* Record xint data */void sp_record_yint(PROTO_DECL2 fix15 int_num); /* Record yint data */void sp_begin_plaid_data(PROTO_DECL1); /* Signal start of plaid data */void sp_begin_ctrl_zones(PROTO_DECL2 fix15, no_X_zones, fix15 no_Y_zones); /* Signal start of control zones */void sp_record_ctrl_zone(PROTO_DECL2 fix31 start, fix31 end, fix15 constr); /* Record control zone data */void sp_begin_int_zones(PROTO_DECL2 fix15 no_X_int_zones, fix15 no_Y_int_zones); /* Signal start of interpolation zones */void sp_record_int_zone(PROTO_DECL2 fix31 start, fix31 end); /* Record interpolation zone data */void sp_end_plaid_data(PROTO_DECL1); /* Signal end of plaid data */#endif#else /* NO PROTOTYPES AVAILABLE *//* do_char.c functions */boolean sp_make_char(); /* Make specified character */#if INCL_ISW fix31 sp_compute_isw_scale();static boolean sp_do_make_char();boolean sp_make_char_isw(); /* Make specified character with */ /* imported set widths.*/static boolean sp_reset_xmax();#endif#if INCL_ISW || INCL_SQUEEZINGstatic void sp_preview_bounding_box();#endifufix16 sp_get_char_id(); /* Get character id for specified char */#if INCL_METRICS /* Metrics functions supported? */fix31 sp_get_char_width(); /* Get character width for specified char */fix15 sp_get_track_kern(); /* Get track kerning for specified size */fix31 sp_get_pair_kern(); /* Get kerning for specified char pair */boolean sp_get_char_bbox();#endif/* do_trns.c functions */ufix8 FONTFAR *sp_read_bbox(); /* Read bounding box */void sp_proc_outl_data(); /* Process outline data *//* out_0c.c functions */boolean sp_init_black();boolean sp_begin_char_black();void sp_begin_contour_black();void sp_line_black();boolean sp_end_char_black();/* out_util.c functions */#if INCL_BLACK || INCL_SCREEN || INCL_2Dvoid sp_init_char_out();void sp_begin_sub_char_out();void sp_curve_out();void sp_end_contour_out();void sp_end_sub_char_out();void sp_init_intercepts_out();void sp_restart_intercepts_out();void sp_set_first_band_out();void sp_reduce_band_size_out();boolean sp_next_band_out();#endif#if INCL_USEROUTboolean sp_init_userout();#endif/* reset.c functions */void sp_reset(); /* Initialize Fontware mechanism */#if INCL_KEYSvoid sp_set_key();#endifufix16 sp_get_cust_no();/* set_spcs.c functions */boolean sp_set_specs(); /* Set specifications */void sp_type_tcb(); /* Update transformation class in tcb */fix31 sp_read_long(); /* Read long as 3 bytes encrypted */fix15 sp_read_word_u(); /* Read word as 2 bytes unencrypted *//* set_trns.c functions */void sp_init_tcb(); /* Initialize current trans control block */void sp_scale_tcb(); /* Transform trans control block */ufix8 FONTFAR *sp_plaid_tcb(); /* Enable intelligent transformation */ufix8 FONTFAR *sp_skip_interpolation_table();ufix8 FONTFAR *sp_skip_control_zone();ufix8 FONTFAR *sp_read_oru_table(); /* Read controlled coord table */#if INCL_SQUEEZING || INCL_ISWstatic void sp_calculate_x_pix();#endif#if INCL_SQUEEZINGstatic void sp_calculate_y_pix();boolean sp_calculate_x_scale();boolean sp_calculate_y_scale() ;#endif/* user defined functions */#if INCL_BLACK || INCL_SCREEN || INCL_2Dvoid sp_open_bitmap();void sp_set_bitmap_bits();void sp_close_bitmap();#endif#if INCL_OUTLINEvoid sp_open_outline();void sp_start_new_char();void sp_start_contour();void sp_curve_to();void sp_line_to();void sp_close_contour();void sp_close_outline();#endif#if INCL_LCD /* Dynamic load character data supported? */buff_t *sp_load_char_data(); /* Load character data from font file */#endif#if INCL_PLAID_OUT /* Plaid data monitoring included? */void sp_record_xint(); /* Record xint data */void sp_record_yint(); /* Record yint data */void sp_begin_plaid_data(); /* Signal start of plaid data */void sp_begin_ctrl_zones(); /* Signal start of control zones */void sp_record_ctrl_zone(); /* Record control zone data */void sp_begin_int_zones(); /* Signal start of interpolation zones */void sp_record_int_zone(); /* Record interpolation zone data */void sp_end_plaid_data(); /* Signal end of plaid data */#endifboolean sp_init_screen(); /* If only screen-writer mode supported */boolean sp_begin_char_screen(); /* If screenwriter mode supported */void sp_begin_contour_screen(); /* If screenwriter mode supported */void sp_line_screen(); /* If screenwriter mode supported */void sp_curve_screen(); /* If screenwriter mode supported */void sp_scan_curve_screen();void sp_vert_line_screen();void sp_end_contour_screen();boolean sp_end_char_screen(); /* If screenwriter mode supported */boolean sp_init_outline(); /* If only vector output mode supported */boolean sp_begin_char_outline(); /* If only vector output mode supported */void sp_begin_sub_char_outline(); /* If only vector output mode supported */void sp_begin_contour_outline(); /* If only vector output mode supported */void sp_curve_outline(); /* If only vector output mode supported */void sp_line_outline(); /* If only vector output mode supported */void sp_end_contour_outline(); /* If only vector output mode supported */void sp_end_sub_char_outline(); /* If only vector output mode supported */boolean sp_end_char_outline(); /* If only vector output mode supported */boolean sp_init_2d(); /* If screen-writer and other modes supported */boolean sp_begin_char_2d(); /* If screen-writer and other modes supported */void sp_begin_contour_2d(); /* If screen-writer and other modes supported */void sp_line_2d(); /* If screen-writer and other modes supported */boolean sp_end_char_2d(); /* If screen-writer and other modes supported */#endif#endif /* _SPEEDO_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -