~ubuntu-branches/ubuntu/saucy/m17n-lib/saucy

« back to all changes in this revision

Viewing changes to src/font.c

  • Committer: Bazaar Package Importer
  • Author(s): Harshula Jayasuriya
  • Date: 2010-11-23 01:39:29 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20101123013929-rs3kpqgu4kr3qx32
Tags: 1.6.2-1
* New upstream release 1.6.2.
* Update Standards-Version to Debian Policy 3.9.1. (No changes)
* debian/control: Depends: m17n-db and m17n-contrib. (Closes: #599643)
* PATCH: (make_locale): Don't call setlocale.  Just parse the arg NAME.
         (Closes: #601858)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1154
1154
  default_encoding.repertory_name = Mnil;
1155
1155
  default_encoding.repertory_charset = NULL;
1156
1156
  {
1157
 
    char *path, *buf;
 
1157
    char *path, *buf = NULL;
1158
1158
    int bufsize;
1159
1159
    USE_SAFE_ALLOCA;
1160
1160
 
1219
1219
MSymbol
1220
1220
mfont__id (MFont *font)
1221
1221
{
1222
 
  char *buf, *p;
 
1222
  char *buf = NULL, *p;
1223
1223
  int i;
1224
1224
  int file_len = (font->file == Mnil ? 0 : MSYMBOL_NAMELEN (font->file));
1225
1225
  int capability_len  = (font->capability == Mnil ? 0
1446
1446
 
1447
1447
  for (i = 0; i < font_list->nfonts; i++)
1448
1448
    {
1449
 
      fprintf (stderr, "%04X - ", font_list->fonts[i].score);
 
1449
      fprintf (mdebug__output, "%04X - ", font_list->fonts[i].score);
1450
1450
      mdebug_dump_font (font_list->fonts[i].font);
1451
 
      fprintf (stderr, "\n");
 
1451
      fprintf (mdebug__output, "\n");
1452
1452
    }
1453
1453
}
1454
1454
 
3184
3184
/***en
3185
3185
    @brief Dump a font.
3186
3186
 
3187
 
    The mdebug_dump_font () function prints font $FONT in a human readable
3188
 
    way to the stderr.
 
3187
    The mdebug_dump_font () function prints font $FONT in a human
 
3188
    readable way to the stderr or to what specified by the environment
 
3189
    variable MDEBUG_OUTPUT_FILE.
3189
3190
 
3190
3191
    @return
3191
3192
    This function returns $FONT.  */
3192
3193
/***ja
3193
3194
    @brief �ե���Ȥ����פ���.
3194
3195
 
3195
 
    �ؿ� mdebug_dump_font () �ϥե���� $FONT �� stderr 
3196
 
    �˿ʹ֤˲��ɤʷ��ǰ������롣
 
3196
    �ؿ� mdebug_dump_font () �ϥե���� $FONT ��ɸ�२�顼���Ϥ⤷����
 
3197
    �Ķ��ѿ� MDEBUG_DUMP_FONT �ǻ��ꤵ�줿�ե�����˿ʹ֤˲��ɤʷ��ǽ�
 
3198
    �Ϥ��롣
3197
3199
 
3198
3200
    @return
3199
3201
    ���δؿ��� $FONT ���֤���  */
3206
3208
  name = xlfd_unparse_name (font, 0);
3207
3209
  if (name)
3208
3210
    {
3209
 
      fprintf (stderr, "%s", name);
 
3211
      fprintf (mdebug__output, "%s", name);
3210
3212
      free (name);
3211
3213
    }
3212
3214
  if (font->file != Mnil)
3218
3220
        if (*p == '/')
3219
3221
          lastslash = p;
3220
3222
      if (name)
3221
 
        fprintf (stderr, ",");
3222
 
      fprintf (stderr, "%s", lastslash + 1);
 
3223
        fprintf (mdebug__output, ",");
 
3224
      fprintf (mdebug__output, "%s", lastslash + 1);
3223
3225
    }
3224
3226
  if (font->capability != Mnil)
3225
 
    fprintf (stderr, "%s", MSYMBOL_NAME (font->capability));
 
3227
    fprintf (mdebug__output, "%s", MSYMBOL_NAME (font->capability));
3226
3228
  return font;
3227
3229
}
3228
3230