http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2499
--- Comment #5 from wajasu <[email protected]> --- Created attachment 15898 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15898&action=edit 0001-Bug-2499 add support for text wrapping using proportional font metrics Currently when labels are printed and the text would render past the bounding label definition, the number of chars that can be written per row is based off of a fixed size for a character in that font. This change performs text wrapping based on each character's character width metric contained in the specified font. Once truncation is detected, it scans back and breaks on a space, and continues with the next words on subsequent lines. It will allow more characters or words from a 'title' to be written per line when possible. 0001-Bug-2499-add-support-for-text-wrapping-using-proportional font metrics is an improvement, and deals with horizontal aspects, cramming more characters per line when wrapping. The original bug comment wants us to calculate the number of lines one can write vertically so we dont arbitrarily cut off after 2, but use what we can without overlaying a barcode or such. To test this patch: -With a working BIBBAR based label, use itemcallnumber,author,title as well. -With a test biblio, create a batch, and export it as a PDF. -Edit that biblio, and make the title longer (add 4 3 letter words) so that it would wrap to another line, but seems to have space to fit the words it wrapped. -APPLY PATCH -Export batch as a PDF. -Confirm that more words fit per line. To fulfill the original bug description: - perform calculations to determin the number of lines we can write without overlaying the barcode or running past the bottom of the label. - maintain this rows_to_write counter and stop writing lines accordingly, I got this patch in because it should not break anyones existing labels. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
