~ubuntu-branches/ubuntu/feisty/gnumeric/feisty

« back to all changes in this revision

Viewing changes to src/style-font.h

  • Committer: Bazaar Package Importer
  • Author(s): Gauvain Pocentek
  • Date: 2006-11-14 14:02:03 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061114140203-iv3j2aii3vch6isl
Tags: 1.7.2-1ubuntu1
* Merge with debian experimental:
  - debian/control, debian/*-gtk-*, debian/rules,
    debian/shlibs.local: Xubuntu changes for
    gtk/gnome multibuild.
  - run intltool-update in po*
  - Build Depend on intltool

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#include <pango/pango.h>
6
6
#include <libgnomeprint/gnome-font.h>
7
7
 
8
 
/* Needs to move to Goffice.  */
9
 
struct _GnmFontMetrics {
10
 
        int digit_widths[10];
11
 
        int min_digit_width;
12
 
        int max_digit_width;
13
 
        int avg_digit_width;
14
 
        int hyphen_width, minus_width, plus_width;
15
 
        int E_width;
16
 
};
17
 
 
18
 
extern const GnmFontMetrics *gnm_font_metrics_unit;
19
 
GnmFontMetrics *gnm_font_metrics_new (PangoContext *context,
20
 
                                      PangoFontDescription *font_descr);
21
 
void gnm_font_metrics_free (GnmFontMetrics *metrics);
22
 
 
23
 
 
24
8
struct _GnmFont {
25
9
        int      ref_count;
26
10
        char    *font_name;
27
11
        double   size_pts;
28
12
        double   scale;
29
 
        GnmFontMetrics *metrics;
 
13
        struct {
 
14
                GOFont const *font;
 
15
                GOFontMetrics *metrics;
 
16
        } go;
30
17
        struct {
31
18
                PangoFont               *font;
32
 
                PangoFontDescription    *font_descr;
33
19
        } pango;
34
20
 
35
21
        unsigned int is_bold : 1;