After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 586186 - Calendar print uses too small font
Calendar print uses too small font
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
2.32.x (obsolete)
Other All
: High enhancement
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
: 273122 561237 602202 606911 618907 643948 (view as bug list)
Depends on: 320895
Blocks:
 
 
Reported: 2009-06-18 01:04 UTC by Vincent Vegan
Modified: 2012-08-30 08:31 UTC
See Also:
GNOME target: ---
GNOME version: 2.31/2.32


Attachments
Calender-Print with readable font-size (21.15 KB, application/x-pdf)
2009-06-18 12:12 UTC, Vincent Vegan
  Details
Calendar-Print with too small font (21.31 KB, application/x-pdf)
2009-06-18 12:13 UTC, Vincent Vegan
  Details
test print (56.72 KB, application/x-pdf)
2010-06-16 07:14 UTC, mikko
  Details
Minimalist font size patch (2.12 KB, patch)
2010-06-22 16:35 UTC, Conrad Steenberg
none Details | Review
Print tweak patch (12.60 KB, patch)
2010-06-23 05:09 UTC, Conrad Steenberg
committed Details | Review

Description Vincent Vegan 2009-06-18 01:04:52 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.
Comment 1 André Klapper 2009-06-18 09:03:00 UTC
Please provide a screenshot (and make sure that no confidential data is displayed)
Comment 2 Vincent Vegan 2009-06-18 12:12:59 UTC
Created attachment 136913 [details]
Calender-Print with readable font-size
Comment 3 Vincent Vegan 2009-06-18 12:13:21 UTC
Created attachment 136914 [details]
Calendar-Print with too small font
Comment 4 Vincent Vegan 2009-06-18 12:14:12 UTC
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.
Comment 5 Akhil Laddha 2009-08-20 10:42:12 UTC
*** Bug 561237 has been marked as a duplicate of this bug. ***
Comment 6 Akhil Laddha 2009-08-20 10:43:44 UTC
*** Bug 273122 has been marked as a duplicate of this bug. ***
Comment 7 Akhil Laddha 2010-01-15 04:19:30 UTC
*** Bug 606911 has been marked as a duplicate of this bug. ***
Comment 8 Akhil Laddha 2010-01-15 04:19:37 UTC
*** Bug 602202 has been marked as a duplicate of this bug. ***
Comment 9 Jonathan Ryshpan 2010-01-15 19:11:34 UTC
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.
Comment 10 Conrad Steenberg 2010-02-18 17:30:35 UTC
Hmmm, this workaround sadly doesn't work for me - evo 2.28.2 in Fedora 12.
Comment 11 Akhil Laddha 2010-05-26 05:13:58 UTC
*** Bug 618907 has been marked as a duplicate of this bug. ***
Comment 12 mikko 2010-06-16 07:14:41 UTC
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
Comment 13 Conrad Steenberg 2010-06-22 16:35:04 UTC
Created attachment 164323 [details] [review]
Minimalist font size patch

This is a minimal patch to show the origin of this bug.
Comment 14 Conrad Steenberg 2010-06-22 16:35:22 UTC
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.
Comment 15 Vincent Vegan 2010-06-22 19:25:16 UTC
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?
Comment 16 Conrad Steenberg 2010-06-23 05:09:52 UTC
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.
Comment 17 Yair Krauze 2010-09-10 13:27:10 UTC
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.
Comment 18 Michael Pacey 2010-09-19 16:12:47 UTC
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.
Comment 19 André Klapper 2011-03-05 16:55:00 UTC
*** Bug 643948 has been marked as a duplicate of this bug. ***
Comment 20 Simone Tolotti 2011-09-06 21:20:49 UTC
Still here, more than 2 years later... Confirmed in Evolution 2.32.2
Comment 21 Milan Crha 2012-08-30 08:30:24 UTC
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+)