Changeset 4198


Ignore:
Timestamp:
2003-04-30T13:48:38+12:00 (21 years ago)
Author:
mdewsnip
Message:

Added "-foundry" option necessary for generating Russian images. This option was available in the non-1.2 version of this script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/gimp/flash_button-1.2.pl

    r3211 r4198  
    5353my ($cfg_file, $width, $height, $text, $filenamestem, $fixed_width,
    5454    $width_space, $whitespace, $dont_center, $bgcolor, $fontcolor,
    55     $fontsize, $fontname, $fontweight, $fontslant, $fontwidth,
     55    $fontsize, $fontfoundry, $fontname, $fontweight, $fontslant, $fontwidth,
    5656    $fontspacing, $fontregistry, $fontencoding, $image_dir);
    5757
     
    8181    print STDERR "   -fontcolor hex_value  text color [$black]\n";
    8282    print STDERR "   -fontsize number      font point size [10]\n";
     83    print STDERR "   -foundry string       [*]\n";
    8384    print STDERR "   -fontname string      [lucida]\n";
    8485    print STDERR "   -fontweight string    [medium]\n";
     
    103104    $fontcolor = $black;
    104105    $fontsize = 10;
     106    $fontfoundry = "*";
    105107    $fontname = "lucida";
    106108    $fontweight = "medium";
     
    128130             "fontcolor/#[0-9A-Fa-f]{6}/$black", \$fontcolor,
    129131             'fontsize/^\d+$/10', \$fontsize,
     132             'foundry/.*/*', \$fontfoundry,
    130133             'fontname/.*/lucida', \$fontname,
    131134             'fontweight/.*/medium', \$fontweight,
     
    185188
    186189    my $textlayer = gimp_text ($image, $backlayer, 0, 0, $text, 0, 1,
    187                    $fontsize, PIXELS, "*", $fontname, $fontweight,
     190                   $fontsize, PIXELS, $fontfoundry, $fontname, $fontweight,
    188191                   $fontslant, $fontwidth, $fontspacing, $fontregistry, $fontencoding);
    189    
    190192
    191193    my $textwidth = gimp_drawable_width($textlayer);
     
    213215        ($image, $backlayer) = &create_image ($off_img);
    214216        $textlayer = gimp_text ($image, $backlayer, 0, 0, $text, 0, 1,
    215                     $fontsize, PIXELS, "*", $fontname, $fontweight,
     217                    $fontsize, PIXELS, $fontfoundry, $fontname, $fontweight,
    216218                    $fontslant, $fontwidth, $fontspacing, $fontregistry, $fontencoding);
    217219       
Note: See TracChangeset for help on using the changeset viewer.