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

« back to all changes in this revision

Viewing changes to src/face.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:
2051
2051
/***en
2052
2052
    @brief Dump a face.
2053
2053
 
2054
 
    The mdebug_dump_face () function prints face $FACE in a human readable
2055
 
    way to the stderr.  $INDENT specifies how many columns to indent
2056
 
    the lines but the first one.
 
2054
    The mdebug_dump_face () function prints face $FACE in a human
 
2055
    readable way to the stderr or to what specified by the environment
 
2056
    variable MDEBUG_OUTPUT_FILE.  $INDENT specifies how many columns
 
2057
    to indent the lines but the first one.
2057
2058
 
2058
2059
    @return
2059
2060
    This function returns $FACE.  */
2061
2062
/***ja
2062
2063
    @brief �ե����������פ���.
2063
2064
 
2064
 
    �ؿ� mdebug_dump_face () �ϥե����� $FACE �� stderr 
2065
 
    �˿ʹ֤˲��ɤʷ��ǰ������롣 $INDENT �ϣ����ܰʹߤΥ���ǥ�Ȥ���ꤹ�롣
 
2065
    �ؿ� mdebug_dump_face () �ϥե����� $FACE ��ɸ�२�顼���Ϥ⤷����
 
2066
    �Ķ��ѿ� MDEBUG_DUMP_FONT �ǻ��ꤵ�줿�ե�����˿ʹ֤˲��ɤʷ��ǰ�
 
2067
    �����롣 $INDENT �ϣ����ܰʹߤΥ���ǥ�Ȥ���ꤹ�롣
2066
2068
 
2067
2069
    @return
2068
2070
    ���δؿ��� $FACE ���֤���  */
2076
2078
  memset (prefix, 32, indent);
2077
2079
  prefix[indent] = 0;
2078
2080
  mfont__set_spec_from_face (&spec, face);
2079
 
  fprintf (stderr, "(face font:\"");
 
2081
  fprintf (mdebug__output, "(face font:\"");
2080
2082
  mdebug_dump_font (&spec);
2081
 
  fprintf (stderr, "\"\n %s  fore:%s back:%s", prefix,
 
2083
  fprintf (mdebug__output, "\"\n %s  fore:%s back:%s", prefix,
2082
2084
           msymbol_name ((MSymbol) face->property[MFACE_FOREGROUND]),
2083
2085
           msymbol_name ((MSymbol) face->property[MFACE_BACKGROUND]));
2084
2086
  if (face->property[MFACE_FONTSET])
2085
 
    fprintf (stderr, " non-default-fontset");
2086
 
  fprintf (stderr, " hline:%s", face->property[MFACE_HLINE] ? "yes" : "no");
2087
 
  fprintf (stderr, " box:%s)", face->property[MFACE_BOX] ? "yes" : "no");
 
2087
    fprintf (mdebug__output, " non-default-fontset");
 
2088
  fprintf (mdebug__output, " hline:%s",
 
2089
           face->property[MFACE_HLINE] ? "yes" : "no");
 
2090
  fprintf (mdebug__output, " box:%s)",
 
2091
           face->property[MFACE_BOX] ? "yes" : "no");
2088
2092
  return face;
2089
2093
}
2090
2094