~ubuntu-branches/debian/experimental/pango1.0/experimental

« back to all changes in this revision

Viewing changes to pango/pangox-fontmap.c

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2008-08-13 16:59:28 UTC
  • mfrom: (1.2.52 upstream)
  • Revision ID: james.westby@ubuntu.com-20080813165928-d5s5l83po052rrnr
Tags: 1.21.6-1
* Don't hardcode the pathes to defoma-app and update-pangox-aliases in
  maintainer scripts.
* Refresh patches 60_link-pangoxft-to-fontconfig and 70_automake and convert
  60_link-pangoxft-to-fontconfig to a -p1 level patch to support
  dpkg-source's quilt format.
* Let libpango1.0-dev recommend debhelper for dh_pangomodules.
* New upstream development releases; new API, API depreciations, and slights
  changes in semantics of the finalization of fontmaps.
  - Bump up bdeps to libcairo2-dev >= 1.7.4 and libglib2.0-dev >= 2.17.3.
  - Drop patch 60_link-pangoxft-to-fontconfig, fixed upstream.
  - Drop patch 70_automake, was only useful for
    60_link-pangoxft-to-fontconfig.
  - Bump shlibs version to 1.21.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 * Boston, MA 02111-1307, USA.
20
20
 */
21
21
 
22
 
#include <config.h>
 
22
#include "config.h"
23
23
#include <stdio.h>
24
24
#include <stdlib.h>
25
25
#include <string.h>
34
34
#include "pango-engine-private.h"
35
35
#include "pango-fontmap.h"
36
36
#include "pango-impl-utils.h"
 
37
#include "modules.h"
37
38
 
38
39
#undef PANGO_DISABLE_DEPRECATED
39
40
 
278
279
  char **xfontnames;
279
280
  int num_fonts, i;
280
281
  int screen;
 
282
  static gboolean registered_modules = FALSE;
281
283
 
282
284
  g_return_val_if_fail (display != NULL, NULL);
283
285
 
 
286
  if (!registered_modules)
 
287
    {
 
288
      registered_modules = TRUE;
 
289
 
 
290
      for (i = 0; _pango_included_x_modules[i].list; i++)
 
291
        pango_module_register (&_pango_included_x_modules[i]);
 
292
    }
 
293
 
284
294
  /* Make sure that the type system is initialized */
285
295
  g_type_init ();
286
296
 
509
519
            {
510
520
              PangoXFont *xfont = pango_x_font_new (fontmap, best_match->xlfd, size);
511
521
 
512
 
              xfont->fontmap = fontmap;
513
522
              xfont->xface = best_match;
514
523
              best_match->cached_fonts = g_slist_prepend (best_match->cached_fonts, xfont);
515
524