Use 'Sans' instead of 'Helvetica' for the font name. Likewise.

2003-07-22  Akira TAGOH  <tagoh@redhat.com>

       * printing/e-contact-print-envelope.c (ecpe_print): Use 'Sans'
       instead of 'Helvetica' for the font name.
       * printing/e-contact-print.c (e_contact_build_style): Likewise.

svn path=/trunk/; revision=21962
This commit is contained in:
Akira TAGOH
2003-07-25 00:04:56 +00:00
committed by Jeremy Katz
parent ef14a8c5a5
commit bb0aa94cd0
3 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2003-07-22 Akira TAGOH <tagoh@redhat.com>
* printing/e-contact-print-envelope.c (ecpe_print): Use 'Sans'
instead of 'Helvetica' for the font name.
* printing/e-contact-print.c (e_contact_build_style): Likewise.
2003-07-23 Dan Winship <danw@ximian.com>
* backend/ebook/Makefile.am: use EVO_MARSHAL_RULE

View File

@ -147,9 +147,9 @@ ecpe_print(GnomePrintContext *pc, ECard *ecard, gboolean as_return)
address = e_card_simple_get(card, E_CARD_SIMPLE_FIELD_ADDRESS_BUSINESS);
linelist = ecpe_break(address);
if (as_return)
font = gnome_font_find ("Helvetica", 9);
font = gnome_font_find ("Sans", 9);
else
font = gnome_font_find ("Helvetica", 12);
font = gnome_font_find ("Sans", 12);
ecpe_linelist_dimensions(font, address, linelist, NULL, &y);
if (as_return) {
x = 36;

View File

@ -889,8 +889,8 @@ e_contact_build_style(EContactPrintStyle *style)
style->letter_tabs = TRUE;
style->letter_headings = FALSE;
style->headings_font = gnome_font_find_closest_from_weight_slant ("Helvetica", GNOME_FONT_BOLD, FALSE, 8);
style->body_font = gnome_font_find_closest_from_weight_slant ("Helvetica", GNOME_FONT_BOOK, FALSE, 6);
style->headings_font = gnome_font_find_closest_from_weight_slant ("Sans", GNOME_FONT_BOLD, FALSE, 8);
style->body_font = gnome_font_find_closest_from_weight_slant ("Sans", GNOME_FONT_BOOK, FALSE, 6);
style->print_using_grey = TRUE;
style->paper_type = 0;
@ -914,13 +914,13 @@ e_contact_build_style(EContactPrintStyle *style)
#endif
style->orientation_portrait = FALSE;
style->header_font = gnome_font_find_closest_from_weight_slant ("Helvetica", GNOME_FONT_BOOK, FALSE, 6);
style->header_font = gnome_font_find_closest_from_weight_slant ("Sans", GNOME_FONT_BOOK, FALSE, 6);
style->left_header = g_strdup("");
style->center_header = g_strdup("");
style->right_header = g_strdup("");
style->footer_font = gnome_font_find_closest_from_weight_slant ("Helvetica", GNOME_FONT_BOOK, FALSE, 6);
style->footer_font = gnome_font_find_closest_from_weight_slant ("Sans", GNOME_FONT_BOOK, FALSE, 6);
style->left_footer = g_strdup("");
style->center_footer = g_strdup("");