Lines 456-464
sub draw_label_text {
Link Here
|
456 |
LABEL_LINES: # generate lines of label text for current field |
456 |
LABEL_LINES: # generate lines of label text for current field |
457 |
foreach my $line (@label_lines) { |
457 |
foreach my $line (@label_lines) { |
458 |
next LABEL_LINES if $line eq ''; |
458 |
next LABEL_LINES if $line eq ''; |
459 |
my $fontName = C4::Creators::PDF->Font($font); |
|
|
460 |
$line = log2vis( $line ); |
459 |
$line = log2vis( $line ); |
461 |
my $string_width = C4::Creators::PDF->StrWidth($line, $fontName, $self->{'font_size'}); |
460 |
my $string_width = C4::Creators::PDF->StrWidth($line, $font, $self->{'font_size'}); |
462 |
if ($self->{'justify'} eq 'R') { |
461 |
if ($self->{'justify'} eq 'R') { |
463 |
$text_llx = $params{'llx'} + $self->{'width'} - ($self->{'left_text_margin'} + $string_width); |
462 |
$text_llx = $params{'llx'} + $self->{'width'} - ($self->{'left_text_margin'} + $string_width); |
464 |
} |
463 |
} |
465 |
- |
|
|