Changeset 2674

Show
Ignore:
Timestamp:
04/24/08 06:50:19
Author:
miyagawa
Message:

tweak

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • yapcasia2008/misc/nameplate-svg.pl

    r2673 r2674  
    4444        my $name = get_name($ref); 
    4545        my $size = length($name) > 20 ? 18  
    46                  : length($name) > 16 ? 20  
     46                 : length($name) > 16 ? 21  
    4747                 : 24; 
    48         $svg->text(x => $ox + 40, y => $oy + 55, style => { 'font-family' => $font, 'font-weight' => 'bold', 'color' => 'black', 'font-size' => $size })->cdata($name); 
    49         $svg->text(x => $ox + 40, y => $oy + 75, style => { 'font-family' => $font, 'color' => 'black', 'font-size' => 11 })->cdata(($ref->{pm_group} ? "$ref->{pm_group} / " : "") . code2country($ref->{country})); 
     48        $svg->text(x => $ox + 35, y => $oy + 55, style => { 'font-family' => $font, 'font-weight' => 'bold', 'color' => 'black', 'font-size' => $size })->cdata($name); 
     49        $svg->text(x => $ox + 35, y => $oy + 75, style => { 'font-family' => $font, 'color' => 'black', 'font-size' => 11 })->cdata(($ref->{pm_group} ? "$ref->{pm_group} / " : "") . code2country($ref->{country})); 
    5050        if ($ref->{company}) { 
    51             $svg->text(x => $ox + 40, y => $oy + 90, style => { 'font-family' => $font, color => 'black', 'font-size' => 11 })->cdata( decode_utf8($ref->{company}) ); 
     51            $svg->text(x => $ox + 35, y => $oy + 90, style => { 'font-family' => $font, color => 'black', 'font-size' => 11 })->cdata( decode_utf8($ref->{company}) ); 
    5252        } 
    5353 
     
    5656 
    5757        if ($role) { 
    58             $svg->text(x => $ox + 40, y => $oy + 126, style => { 'font-family' => $font, 'font-weight' => 'bold', color => 'black', 'font-size' => 16 })->cdata($role); 
     58            $svg->text(x => $ox + 35, y => $oy + 126, style => { 'font-family' => $font, 'font-weight' => 'bold', color => 'black', 'font-size' => 16 })->cdata($role); 
    5959        } 
    6060 
    61         $svg->text(x => $ox + 266, y => $oy + 16, style => { 'font-family' => $font, color => 'black', 'font-size' => 10 })->cdata($ref->{user_id}); 
     61        $svg->text(x => $ox + 266, y => $oy + 16, style => { 'font-family' => $font, color => 'black', 'font-size' => 8 })->cdata($ref->{user_id}); 
    6262 
    6363        $ox = $ox == 0 ? 296 : 0;