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

« back to all changes in this revision

Viewing changes to modules/arabic/arabic-fc.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:
96
96
  const char *p;
97
97
  int cluster = 0;
98
98
  gboolean rtl = analysis->level % 2 != 0;
 
99
  gboolean reverse;
99
100
  int i;
100
101
 
101
102
  g_return_if_fail (font != NULL);
115
116
  wcs = g_utf8_to_ucs4_fast (text, length, &n_chars);
116
117
  properties = g_new0 (gulong, n_chars);
117
118
 
118
 
  Arabic_Assign_Properties (wcs, properties, n_chars, !rtl);
 
119
  reverse = !rtl ^ (analysis->gravity == PANGO_GRAVITY_NORTH || analysis->gravity == PANGO_GRAVITY_WEST);
 
120
  Arabic_Assign_Properties (wcs, properties, n_chars, reverse);
119
121
 
120
122
  g_free (wcs);
121
123