View | Details | Raw Unified | Return to bug 8375
Collapse All | Expand All

(-)a/C4/Creators/Lib.pm (+1 lines)
Lines 119-124 my $font_types = [ Link Here
119
    {type => 'CO',      name => 'Courier-Oblique',              selected => 0},
119
    {type => 'CO',      name => 'Courier-Oblique',              selected => 0},
120
    {type => 'CBO',     name => 'Courier-Bold-Oblique',         selected => 0},
120
    {type => 'CBO',     name => 'Courier-Bold-Oblique',         selected => 0},
121
    {type => 'H',       name => 'Helvetica',                    selected => 0},
121
    {type => 'H',       name => 'Helvetica',                    selected => 0},
122
    {type => 'HO',      name => 'Helvetica-Oblique',            selected => 0},
122
    {type => 'HB',      name => 'Helvetica-Bold',               selected => 0},
123
    {type => 'HB',      name => 'Helvetica-Bold',               selected => 0},
123
    {type => 'HBO',     name => 'Helvetica-Bold-Oblique',       selected => 0},
124
    {type => 'HBO',     name => 'Helvetica-Bold-Oblique',       selected => 0},
124
];
125
];
(-)a/C4/Labels/Label.pm (-1 / +3 lines)
Lines 396-401 sub draw_label_text { Link Here
396
        else {
396
        else {
397
            $field->{'data'} = _get_barcode_data($field->{'code'},$item,$record);
397
            $field->{'data'} = _get_barcode_data($field->{'code'},$item,$record);
398
        }
398
        }
399
        #FIXME: We should not force the title to oblique; this should be selectible in the layout configuration
399
        ($field->{'code'} eq 'title') ? (($font =~ /T/) ? ($font = 'TI') : ($font = ($font . 'O'))) : ($font = $font);
400
        ($field->{'code'} eq 'title') ? (($font =~ /T/) ? ($font = 'TI') : ($font = ($font . 'O'))) : ($font = $font);
400
        my $field_data = $field->{'data'};
401
        my $field_data = $field->{'data'};
401
        if ($field_data) {
402
        if ($field_data) {
Lines 442-448 sub draw_label_text { Link Here
442
        LABEL_LINES:    # generate lines of label text for current field
443
        LABEL_LINES:    # generate lines of label text for current field
443
        foreach my $line (@label_lines) {
444
        foreach my $line (@label_lines) {
444
            next LABEL_LINES if $line eq '';
445
            next LABEL_LINES if $line eq '';
445
            my $string_width = C4::Creators::PDF->StrWidth($line, $font, $self->{'font_size'});
446
            my $fontName = C4::Creators::PDF->Font($font);
447
            my $string_width = C4::Creators::PDF->StrWidth($line, $fontName, $self->{'font_size'});
446
            if ($self->{'justify'} eq 'R') {
448
            if ($self->{'justify'} eq 'R') {
447
                $text_llx = $params{'llx'} + $self->{'width'} - ($self->{'left_text_margin'} + $string_width);
449
                $text_llx = $params{'llx'} + $self->{'width'} - ($self->{'left_text_margin'} + $string_width);
448
            }
450
            }
(-)a/etc/koha-conf.xml (-1 / +1 lines)
Lines 311-316 __PAZPAR2_TOGGLE_XML_POST__ Link Here
311
    <font type="CO" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Oblique.ttf</font>
311
    <font type="CO" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Oblique.ttf</font>
312
    <font type="CBO">/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf</font>
312
    <font type="CBO">/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf</font>
313
    <font type="H"  >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf</font>
313
    <font type="H"  >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf</font>
314
    <font type="HO" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf</font>
314
    <font type="HB" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf</font>
315
    <font type="HB" >/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf</font>
315
    <font type="HBO">/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf</font>
316
    <font type="HBO">/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf</font>
316
 </ttf>
317
 </ttf>
317
- 

Return to bug 8375