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

« back to all changes in this revision

Viewing changes to pango/pango-layout.c

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2007-12-18 21:11:37 UTC
  • mfrom: (1.2.44 upstream)
  • Revision ID: james.westby@ubuntu.com-20071218211137-0ibmwreimvxf3cp1
Tags: 1.19.2-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:
961
961
    if (!*end)
962
962
      break;
963
963
 
 
964
    /* Replace invalid bytes with -1.  The -1 will be converted to
 
965
     * ((gunichar) -1) by glib, and that in turn yields a glyph value of
 
966
     * ((PangoGlyph) -1) by PANGO_GET_UNKNOWN_GLYPH(-1),
 
967
     * and that's PANGO_GLYPH_INVALID_INPUT.
 
968
     */
964
969
    if (!valid)
965
 
      *end++ = '?';
 
970
      *end++ = -1;
966
971
 
967
972
    start = end;
968
973
  }