Commit c455dbe8 authored by Bruno Unna's avatar Bruno Unna

added the default italic font as helvetica-oblique.

* src/style.c: added the default italic font as helvetica-oblique.

* src/style.h: added declaration for new global variable
  gnumeric_default_bold_font

* src/gnumeric-util.c: enhanced the robusteness of the function
  font_get_italic_name. But it's not at a 100%, though.

* plugins/excel/ms-excel.c: slight modification to the error
  tracking mechanism (font stuff in ms_excel_set_cell_font).
parent 0a2b5594
1998-11-18 Bruno Unna <bruno@iac.com.mx>
* src/style.c: added the default italic font as helvetica-oblique.
* src/style.h: added declaration for new global variable
gnumeric_default_bold_font
* src/gnumeric-util.c: enhanced the robusteness of the function
font_get_italic_name. But it's not at a 100%, though.
* plugins/excel/ms-excel.c: slight modification to the error
tracking mechanism (font stuff in ms_excel_set_cell_font).
1998-11-15 Michael Meeks <mejm2@cam.ac.uk>
* plugins/excel/ms-ole.c(ms_ole_directory*): Created new directory
......
1998-11-18 Bruno Unna <bruno@iac.com.mx>
* src/style.c: added the default italic font as helvetica-oblique.
* src/style.h: added declaration for new global variable
gnumeric_default_bold_font
* src/gnumeric-util.c: enhanced the robusteness of the function
font_get_italic_name. But it's not at a 100%, though.
* plugins/excel/ms-excel.c: slight modification to the error
tracking mechanism (font stuff in ms_excel_set_cell_font).
1998-11-15 Michael Meeks <mejm2@cam.ac.uk>
* plugins/excel/ms-ole.c(ms_ole_directory*): Created new directory
......
1998-11-18 Bruno Unna <bruno@iac.com.mx>
* src/style.c: added the default italic font as helvetica-oblique.
* src/style.h: added declaration for new global variable
gnumeric_default_bold_font
* src/gnumeric-util.c: enhanced the robusteness of the function
font_get_italic_name. But it's not at a 100%, though.
* plugins/excel/ms-excel.c: slight modification to the error
tracking mechanism (font stuff in ms_excel_set_cell_font).
1998-11-15 Michael Meeks <mejm2@cam.ac.uk>
* plugins/excel/ms-ole.c(ms_ole_directory*): Created new directory
......
1998-11-18 Bruno Unna <bruno@iac.com.mx>
* src/style.c: added the default italic font as helvetica-oblique.
* src/style.h: added declaration for new global variable
gnumeric_default_bold_font
* src/gnumeric-util.c: enhanced the robusteness of the function
font_get_italic_name. But it's not at a 100%, though.
* plugins/excel/ms-excel.c: slight modification to the error
tracking mechanism (font stuff in ms_excel_set_cell_font).
1998-11-15 Michael Meeks <mejm2@cam.ac.uk>
* plugins/excel/ms-ole.c(ms_ole_directory*): Created new directory
......
This diff is collapsed.
This diff is collapsed.
plugins/perl/xsinit.c
plugins/stat/stat.c
src/about.c
src/dates.c
......
......@@ -10,6 +10,7 @@
#include <string.h>
#include "gnumeric.h"
#include "gnumeric-util.h"
#include "style.h"
void
gnumeric_notice (char *str)
......@@ -164,6 +165,8 @@ font_get_bold_name (char *fontname)
{
char *f;
/* FIXME: this scheme is poor: in some cases, the fount strength is called 'bold',
whereas in some others it is 'black', in others... Look font_get_italic_name */
f = font_change_component (fontname, 2, "bold");
return f;
......@@ -175,6 +178,9 @@ font_get_italic_name (char *fontname)
char *f;
f = font_change_component (fontname, 3, "o");
if (style_font_new (f, 1) == NULL) {
f = font_change_component (fontname, 3, "i");
}
return f;
}
......@@ -10,6 +10,7 @@
#include <string.h>
#include "gnumeric.h"
#include "gnumeric-util.h"
#include "style.h"
void
gnumeric_notice (char *str)
......@@ -164,6 +165,8 @@ font_get_bold_name (char *fontname)
{
char *f;
/* FIXME: this scheme is poor: in some cases, the fount strength is called 'bold',
whereas in some others it is 'black', in others... Look font_get_italic_name */
f = font_change_component (fontname, 2, "bold");
return f;
......@@ -175,6 +178,9 @@ font_get_italic_name (char *fontname)
char *f;
f = font_change_component (fontname, 3, "o");
if (style_font_new (f, 1) == NULL) {
f = font_change_component (fontname, 3, "i");
}
return f;
}
......@@ -14,6 +14,7 @@
#define DEFAULT_FONT "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*"
#define DEFAULT_BOLD_FONT "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
#define DEFAULT_ITALIC_FONT "-adobe-helvetica-medium-o-normal--*-120-*-*-*-*-*-*"
#define DEFAULT_SIZE 14
static GHashTable *style_format_hash;
......@@ -23,6 +24,7 @@ static GHashTable *style_color_hash;
StyleFont *gnumeric_default_font;
StyleFont *gnumeric_default_bold_font;
StyleFont *gnumeric_default_italic_font;
StyleFormat *
style_format_new (char *name)
......@@ -530,7 +532,7 @@ font_init (void)
g_error ("Could not load the default font");
gnumeric_default_bold_font = style_font_new (DEFAULT_BOLD_FONT, DEFAULT_SIZE);
gnumeric_default_italic_font = style_font_new (DEFAULT_ITALIC_FONT, DEFAULT_SIZE);
}
void
......@@ -543,4 +545,3 @@ style_init (void)
font_init ();
}
......@@ -146,5 +146,6 @@ StyleBorder *style_border_new (StyleBorderType left,
extern StyleFont *gnumeric_default_font;
extern StyleFont *gnumeric_default_bold_font;
extern StyleFont *gnumeric_default_italic_font;
#endif /* GNUMERIC_STYLE_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment