~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/text/gimp-fonts.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995-2001 Spencer Kimball, Peter Mattis and others
3
3
 *
4
4
 * text.c
28
28
#include <fontconfig/fontconfig.h>
29
29
 
30
30
#include "libgimpbase/gimpbase.h"
 
31
#include "libgimpconfig/gimpconfig.h"
31
32
 
32
33
#include "text-types.h"
33
34
 
34
 
#include "config/gimpconfig-path.h"
35
35
#include "config/gimpcoreconfig.h"
36
36
 
37
37
#include "core/gimp.h"
70
70
 
71
71
  g_return_if_fail (GIMP_IS_FONT_LIST (gimp->fonts));
72
72
 
73
 
  if (gimp->no_fonts)
74
 
    return;
75
 
 
76
73
  gimp_set_busy (gimp);
77
74
 
 
75
  if (gimp->be_verbose)
 
76
    g_print ("Loading fonts\n");
 
77
 
78
78
  gimp_container_freeze (GIMP_CONTAINER (gimp->fonts));
79
79
 
80
80
  gimp_container_clear (GIMP_CONTAINER (gimp->fonts));
131
131
{
132
132
  gboolean ret = TRUE;
133
133
 
134
 
  if (! FcConfigParseAndLoad (config, fonts_conf, FcFalse))
 
134
  if (! FcConfigParseAndLoad (config, (const guchar *) fonts_conf, FcFalse))
135
135
    {
136
136
      FcConfigDestroy (config);
137
137
      ret = FALSE;
155
155
  path = gimp_path_parse (path_str, 256, TRUE, NULL);
156
156
 
157
157
  for (list = path; list; list = list->next)
158
 
    FcConfigAppFontAddDir (config, (gchar *) list->data);
 
158
    FcConfigAppFontAddDir (config, (const guchar *) list->data);
159
159
 
160
160
  gimp_path_free (path);
161
161
}
162