Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2a7b7982
Commit
2a7b7982
authored
May 14, 2008
by
Kenichi Handa
Browse files
Include font.h.
(print_object): Handle font-related objects.
parent
f85064bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
src/print.c
src/print.c
+29
-0
No files found.
src/print.c
View file @
2a7b7982
...
...
@@ -36,6 +36,7 @@ Boston, MA 02110-1301, USA. */
#include "intervals.h"
#include "blockinput.h"
#include "termhooks.h"
/* For struct terminal. */
#include "font.h"
Lisp_Object
Vstandard_output
,
Qstandard_output
;
...
...
@@ -2129,6 +2130,34 @@ print_object (obj, printcharfun, escapeflag)
strout
(
buf
,
-
1
,
-
1
,
printcharfun
,
0
);
PRINTCHAR
(
'>'
);
}
else
if
(
FONTP
(
obj
))
{
EMACS_INT
i
;
if
(
!
FONT_OBJECT_P
(
obj
))
{
if
(
FONT_SPEC_P
(
obj
))
strout
(
"#<font-spec"
,
-
1
,
-
1
,
printcharfun
,
0
);
else
strout
(
"#<font-entity"
,
-
1
,
-
1
,
printcharfun
,
0
);
for
(
i
=
0
;
i
<
FONT_SPEC_MAX
;
i
++
)
{
PRINTCHAR
(
' '
);
if
(
i
<
FONT_WEIGHT_INDEX
||
i
>
FONT_WIDTH_INDEX
)
print_object
(
AREF
(
obj
,
i
),
printcharfun
,
escapeflag
);
else
print_object
(
font_style_symbolic
(
obj
,
i
,
0
),
printcharfun
,
escapeflag
);
}
}
else
{
strout
(
"#<font-object "
,
-
1
,
-
1
,
printcharfun
,
0
);
print_object
(
AREF
(
obj
,
FONT_NAME_INDEX
),
printcharfun
,
escapeflag
);
}
PRINTCHAR
(
'>'
);
}
else
{
EMACS_INT
size
=
XVECTOR
(
obj
)
->
size
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment