~ubuntu-branches/ubuntu/hardy/pango1.0/hardy-security

« back to all changes in this revision

Viewing changes to pango/pangofc-font.c

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2007-11-01 17:34:39 UTC
  • mfrom: (1.2.42 upstream)
  • Revision ID: james.westby@ubuntu.com-20071101173439-q1o9mzlj8fiad7cd
Tags: 1.19.0-1ubuntu1
* Sync with Debian; Ubuntu changes are:
  - Add patch 30_anymetrics, turns on FC_ANY_METRICS whenever looking up
    fonts with fontconfig; lets fontconfig's configuration know that we
    don't care about getting a font with exactly the same shape as the
    family we asked for and fixes (eg) a firefox vs. evince font metrics
    ugliness issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
#define PANGO_FC_FONT_LOCK_FACE(font)   (PANGO_FC_FONT_GET_CLASS (font)->lock_face (font))
90
90
#define PANGO_FC_FONT_UNLOCK_FACE(font) (PANGO_FC_FONT_GET_CLASS (font)->unlock_face (font))
91
91
 
92
 
G_DEFINE_TYPE (PangoFcFont, pango_fc_font, PANGO_TYPE_FONT)
 
92
G_DEFINE_ABSTRACT_TYPE (PangoFcFont, pango_fc_font, PANGO_TYPE_FONT)
93
93
 
94
94
static void
95
95
pango_fc_font_class_init (PangoFcFontClass *class)
441
441
  PangoRectangle extents;
442
442
  PangoLanguage *language = pango_context_get_language (context);
443
443
  const char *sample_str = pango_language_get_sample_string (language);
444
 
  PangoFontDescription *desc = pango_font_describe_with_absolute_size (fcfont);
 
444
  PangoFontDescription *desc = pango_font_describe_with_absolute_size (PANGO_FONT (fcfont));
445
445
 
446
446
  metrics = pango_font_metrics_new ();
447
447