[Koha-bugs] [Bug 8375] Common diacritics not shown correctly when exporting batch label to PDF

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 6 13:32:52 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8375

--- Comment #87 from Bernardo Gonzalez Kriegel <bgkriegel at gmail.com> ---
(In reply to Jonathan Druart from comment #86)
> (In reply to Bernardo Gonzalez Kriegel from comment #84)
> > Problem is that current code appends an 'O' to selected font for title
> > C4/Labels/Label.pm:400:        
> > ($field->{'code'} eq 'title') ? (($font =~ /T/) ? ($font = 'TI') : ($font =
> > ($font . 'O'))) : ($font = $font);
> > 
> > If you select HBO as main font, then it would search for HBOO for title
> 
> Bernardo, what meant this comment? Is there a bug somewhere? I get the error
> on master now (with the patches).

Yes. It'a bug, but a pre-existent one, and it makes you try to use nonexistent
fonts.
I can add a patch, but for now do not select CO, CBO, HO or HBO for main font

Can be fixed changing line 400 of C4/Labels/Label.pm with

if ( $field->{'code'} eq 'title' ) {
    if ( $font =~ /^(T|TB)$/             ) { $font .= 'I'; }
    if ( $font !~ /^T/ and $font !~ /O$/ ) { $font .= 'O'; }
}

or something better

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list