2052
2052
@brief Dump a face.
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.
2059
2060
This function returns $FACE. */
2062
2063
@brief �ե����������פ���.
2064
�ؿ� mdebug_dump_face () �ϥե����� $FACE �� stderr
2065
�˿ʹ֤˲��ɤʷ��ǰ������롣 $INDENT �ϣ����ܰʹߤΥ���ǥ�Ȥ���ꤹ�롣
2065
�ؿ� mdebug_dump_face () �ϥե����� $FACE ��ɸ�२�顼���Ϥ⤷����
2066
�Ķ��ѿ� MDEBUG_DUMP_FONT �ǻ��ꤵ�줿�ե�����˿ʹ֤˲��ɤʷ��ǰ�
2067
�����롣 $INDENT �ϣ����ܰʹߤΥ���ǥ�Ȥ���ꤹ�롣
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");