예제 #1
0
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;
}
예제 #2
0
void    gml_hp3( const gmltag * entry )
{
    gml_hp_sf_common( entry, 3, t_HP3 );
}
예제 #3
0
void    gml_hp2( const gmltag * entry )
{
    gml_hp_sf_common( entry, 2, t_HP2 );
}
예제 #4
0
void    gml_hp1( const gmltag * entry )
{
    gml_hp_sf_common( entry, 1, t_HP1 );
}
예제 #5
0
void    gml_hp0( const gmltag * entry )
{
    gml_hp_sf_common( entry, 0, t_HP0 );
}
예제 #6
0
void    gml_hp1( gml_tag gtag )
{
    gml_hp_sf_common( gtag, 1 );
}
예제 #7
0
void    gml_hp0( gml_tag gtag )
{
    gml_hp_sf_common( gtag, 0 );
}
예제 #8
0
void    gml_hp3( gml_tag gtag )
{
    gml_hp_sf_common( gtag, 3 );
}
예제 #9
0
void    gml_hp2( gml_tag gtag )
{
    gml_hp_sf_common( gtag, 2 );
}