void gml_sf( const gmltag * entry ) { char * p; char * pe; long font; p = scan_start; p++; while( *p == ' ' ) { p++; } if( !strnicmp( "font=", p, 5 ) ) { p += 5; font = strtol( p, &pe, 10 ); scan_start = pe; if( (font < 0) || (font >= wgml_font_cnt) ) {// invalid font use default font = 0; } gml_hp_sf_common( entry, font, t_SF ); } else { err_count++; // AT-001 Required attribute not found g_err( err_att_missing ); file_mac_info(); } scan_start = scan_stop + 1; return; }
void gml_hp3( const gmltag * entry ) { gml_hp_sf_common( entry, 3, t_HP3 ); }
void gml_hp2( const gmltag * entry ) { gml_hp_sf_common( entry, 2, t_HP2 ); }
void gml_hp1( const gmltag * entry ) { gml_hp_sf_common( entry, 1, t_HP1 ); }
void gml_hp0( const gmltag * entry ) { gml_hp_sf_common( entry, 0, t_HP0 ); }
void gml_hp1( gml_tag gtag ) { gml_hp_sf_common( gtag, 1 ); }
void gml_hp0( gml_tag gtag ) { gml_hp_sf_common( gtag, 0 ); }
void gml_hp3( gml_tag gtag ) { gml_hp_sf_common( gtag, 3 ); }
void gml_hp2( gml_tag gtag ) { gml_hp_sf_common( gtag, 2 ); }