[Koha-bugs] [Bug 7062] barcode titles not truncating

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 19 20:06:26 CEST 2011


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

--- Comment #3 from Chris Nighswonger <cnighswonger at foundations.edu> 2011-10-19 18:06:26 UTC ---
For reference: this bug is due to the text wrap code not taking into account
proportionally spaced fonts and various font sizes. The code should use
C4::Creators::PDF->StrWidth to determine the actual width of the title line and
split it accordingly.

It will also be necessary to accommodate for the varying line height caused by
increasing font sizes. It is possible that one could select a font size so
large that there is no way to get the title on the label *and* include other
information as well.

It would probably be good to include some discussion of font-size versus
label-size in the manual along with some suggestions for basic sanity checks
(ie. Don't use font sizes above X points on labels with dimensions Y by Z... or
some such.)

FWIW, this same problem will occur in any publishing software as your font size
becomes large in proportion to your text box size.

Hopefully these comments will help in case someone gets to this before I do.

For now, setting the font size down to around 6 points should help with the
examples included in this bug.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list