Пример #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 );
}