GNOME Bugzilla – Bug 586186
Calendar print uses too small font
Last modified: 2012-08-30 08:31:29 UTC
Appointments appear very (very!) small when printing calendars in month-view. It would be great if there was a possibility to adjust the font-size for caption, appointments,... before printing. If there is one, I just didn't find it either in Evolution or in the Manual.
Please provide a screenshot (and make sure that no confidential data is displayed)
Created attachment 136913 [details] Calender-Print with readable font-size
Created attachment 136914 [details] Calendar-Print with too small font
I tried to reproduce this on another Ubuntu-PC and it seems like the problem isn't with Evolution, but it's still strange and the feature of resizing fonts for printing would still be useful. In attachement "1.pdf" you see the print at the other computer, where fonts are bigger, in attachment "2.pdf" you see how it looks at the computer I mentioned in my original post, where the font of the attachment is far too small.
*** Bug 561237 has been marked as a duplicate of this bug. ***
*** Bug 273122 has been marked as a duplicate of this bug. ***
*** Bug 606911 has been marked as a duplicate of this bug. ***
*** Bug 602202 has been marked as a duplicate of this bug. ***
I have a (rather funky) workaround for this problem (at least for email). (1) Set the font size to use same fonts as other applications, i.e. check Edit->Preferences->Mail Preferences->Message Fonts. This is probably what most peopls will want to do normally. (2) Set the Standard Font and Fixed Width Font to values that print nicely. I have them set: Bitstream Vera Sans Roman | 10 Monospace | 10 (3) Whenever you want to print, uncheck ...->Message Fonts.
Hmmm, this workaround sadly doesn't work for me - evo 2.28.2 in Fedora 12.
*** Bug 618907 has been marked as a duplicate of this bug. ***
Created attachment 163784 [details] test print Same for me, very small font Font setting works only with mails, not calendar. Debian squeeze, evolution 2.30.1, xfce 4.6.2
Created attachment 164323 [details] [review] Minimalist font size patch This is a minimal patch to show the origin of this bug.
Attached is a small patch that fixes the issue for me. The problem is in calendar/gui/print.c where the text for events is hard-coded to be 6pt. Or actually the calendar print font is hard-coded to 12pt, and the event details are hard-coded to be half that. This is just a proof-of-concept patch, it blindly removes the x 0.5 in some font sizes for the week view.
As I don't have access to the computer I found out about this bug now I cannot test the patch, but: If the font is hard-coded to be 6pt, why does this bug only affect some but not all users?
Created attachment 164373 [details] [review] Print tweak patch More elaborate calendar print tweak patch to make events visible to the naked eye. - The main point of the patch is to parameterize the different font sizes - even though they are still set using #defines: #define DAY_NORMAL_FONT_SIZE 12 #define WEEK_NORMAL_FONT_SIZE 12 #define WEEK_EVENT_FONT_SIZE 9 #define WEEK_SMALL_FONT_SIZE 8 #define MONTH_NORMAL_FONT_SIZE 8 Before, WEEK_EVENT_FONT_SIZE and WEEK_SMALL_FONT_SIZE were set to half the height of the colored rectangles - which worked out to be ~6.5 pts. - The horizontal spacing between columns in the small months at the top of the page is slightly larger. - Eliminates some white space left and right of event text lines. - Since multiple lines of text for events is not supported, truncate event descriptions to one line. Previously multiple lines would be produced, but clipped somewhat badly for long event descriptions. - This is against 2.28.3 from Ubuntu 10.04, I'll check out the print changes from the git master branch and compare with the above.
This is a very important issue to end users (like my wife). Being able to print a usable view of appointments is critical to a good email management system. I had to revert my wife back to Thunderbird just so she can do so (even though it lacks CalDAV remote calendar management and local desktop integration). I hope this issue is schedule for a release in the foreseeable future.
Conrad, thanks for your patch, I managed to apply it to the latest Evolution source in Ubuntu (2.30.3), I had to do it manually as patch wasn't having it but it worked, thank you! Gets my Dad off my back for a while.
*** Bug 643948 has been marked as a duplicate of this bug. ***
Still here, more than 2 years later... Confirmed in Evolution 2.32.2
Thanks for the patch, it looks good. I picked the larger version, updated it for current sources and committed. Pity it wasn't noticed earlier. Created commit d34fc73 in evo master (3.5.91+)