Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
678dca3d
Commit
678dca3d
authored
Jun 23, 2009
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change font_add_log to FONT_ADD_LOG.
parent
f5a0b281
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
12 deletions
+26
-12
src/ChangeLog
src/ChangeLog
+14
-0
src/ftfont.c
src/ftfont.c
+2
-2
src/w32font.c
src/w32font.c
+2
-2
src/w32uniscribe.c
src/w32uniscribe.c
+2
-2
src/xfont.c
src/xfont.c
+6
-6
No files found.
src/ChangeLog
View file @
678dca3d
2009-06-23 Kenichi Handa <handa@m17n.org>
* ftfont.c: Change font_add_log to FONT_ADD_LOG.
* w32font.c: Change font_add_log to FONT_ADD_LOG.
* w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
* xfont.c: Change font_add_log to FONT_ADD_LOG.
* fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
(face_for_char): Don't call font_deferred_log here.
(font_for_char): Likewise.
2009-06-22 Chong Yidong <cyd@stupidchicken.com>
2009-06-22 Chong Yidong <cyd@stupidchicken.com>
* w32term.c (x_draw_glyph_string): Use the glyph string's width
* w32term.c (x_draw_glyph_string): Use the glyph string's width
...
...
src/ftfont.c
View file @
678dca3d
...
@@ -1046,7 +1046,7 @@ ftfont_list (frame, spec)
...
@@ -1046,7 +1046,7 @@ ftfont_list (frame, spec)
val = Qnil;
val = Qnil;
finish:
finish:
font_add_log
(
"ftfont-list"
,
spec
,
val
);
FONT_ADD_LOG
("ftfont-list", spec, val);
if (objset) FcObjectSetDestroy (objset);
if (objset) FcObjectSetDestroy (objset);
if (fontset) FcFontSetDestroy (fontset);
if (fontset) FcFontSetDestroy (fontset);
if (pattern) FcPatternDestroy (pattern);
if (pattern) FcPatternDestroy (pattern);
...
@@ -1099,7 +1099,7 @@ ftfont_match (frame, spec)
...
@@ -1099,7 +1099,7 @@ ftfont_match (frame, spec)
}
}
FcPatternDestroy (pattern);
FcPatternDestroy (pattern);
font_add_log
(
"ftfont-match"
,
spec
,
entity
);
FONT_ADD_LOG
("ftfont-match", spec, entity);
return entity;
return entity;
}
}
...
...
src/w32font.c
View file @
678dca3d
...
@@ -201,7 +201,7 @@ w32font_list (frame, font_spec)
...
@@ -201,7 +201,7 @@ w32font_list (frame, font_spec)
Lisp_Object
frame
,
font_spec
;
Lisp_Object
frame
,
font_spec
;
{
{
Lisp_Object
fonts
=
w32font_list_internal
(
frame
,
font_spec
,
0
);
Lisp_Object
fonts
=
w32font_list_internal
(
frame
,
font_spec
,
0
);
font_add_log
("w32font-list", font_spec, fonts);
FONT_ADD_LOG
(
"w32font-list"
,
font_spec
,
fonts
);
return
fonts
;
return
fonts
;
}
}
...
@@ -214,7 +214,7 @@ w32font_match (frame, font_spec)
...
@@ -214,7 +214,7 @@ w32font_match (frame, font_spec)
Lisp_Object
frame
,
font_spec
;
Lisp_Object
frame
,
font_spec
;
{
{
Lisp_Object
entity
=
w32font_match_internal
(
frame
,
font_spec
,
0
);
Lisp_Object
entity
=
w32font_match_internal
(
frame
,
font_spec
,
0
);
font_add_log
("w32font-match", font_spec, entity);
FONT_ADD_LOG
(
"w32font-match"
,
font_spec
,
entity
);
return
entity
;
return
entity
;
}
}
...
...
src/w32uniscribe.c
View file @
678dca3d
...
@@ -78,7 +78,7 @@ uniscribe_list (frame, font_spec)
...
@@ -78,7 +78,7 @@ uniscribe_list (frame, font_spec)
Lisp_Object
frame
,
font_spec
;
Lisp_Object
frame
,
font_spec
;
{
{
Lisp_Object
fonts
=
w32font_list_internal
(
frame
,
font_spec
,
1
);
Lisp_Object
fonts
=
w32font_list_internal
(
frame
,
font_spec
,
1
);
font_add_log
(
"uniscribe-list"
,
font_spec
,
fonts
);
FONT_ADD_LOG
(
"uniscribe-list"
,
font_spec
,
fonts
);
return
fonts
;
return
fonts
;
}
}
...
@@ -87,7 +87,7 @@ uniscribe_match (frame, font_spec)
...
@@ -87,7 +87,7 @@ uniscribe_match (frame, font_spec)
Lisp_Object
frame
,
font_spec
;
Lisp_Object
frame
,
font_spec
;
{
{
Lisp_Object
entity
=
w32font_match_internal
(
frame
,
font_spec
,
1
);
Lisp_Object
entity
=
w32font_match_internal
(
frame
,
font_spec
,
1
);
font_add_log
(
"uniscribe-match"
,
font_spec
,
entity
);
FONT_ADD_LOG
(
"uniscribe-match"
,
font_spec
,
entity
);
return
entity
;
return
entity
;
}
}
...
...
src/xfont.c
View file @
678dca3d
...
@@ -476,7 +476,7 @@ xfont_list_pattern (Display *display, char *pattern,
...
@@ -476,7 +476,7 @@ xfont_list_pattern (Display *display, char *pattern,
x_uncatch_errors
();
x_uncatch_errors
();
UNBLOCK_INPUT
;
UNBLOCK_INPUT
;
font_add_log
(
"xfont-list"
,
build_string
(
pattern
),
list
);
FONT_ADD_LOG
(
"xfont-list"
,
build_string
(
pattern
),
list
);
return
list
;
return
list
;
}
}
...
@@ -615,7 +615,7 @@ xfont_match (frame, spec)
...
@@ -615,7 +615,7 @@ xfont_match (frame, spec)
}
}
UNBLOCK_INPUT
;
UNBLOCK_INPUT
;
font_add_log
(
"xfont-match"
,
spec
,
entity
);
FONT_ADD_LOG
(
"xfont-match"
,
spec
,
entity
);
return
entity
;
return
entity
;
}
}
...
@@ -701,7 +701,7 @@ xfont_open (f, entity, pixel_size)
...
@@ -701,7 +701,7 @@ xfont_open (f, entity, pixel_size)
registry
=
AREF
(
entity
,
FONT_REGISTRY_INDEX
);
registry
=
AREF
(
entity
,
FONT_REGISTRY_INDEX
);
if
(
font_registry_charsets
(
registry
,
&
encoding
,
&
repertory
)
<
0
)
if
(
font_registry_charsets
(
registry
,
&
encoding
,
&
repertory
)
<
0
)
{
{
font_add_log
(
" x:unknown registry"
,
registry
,
Qnil
);
FONT_ADD_LOG
(
" x:unknown registry"
,
registry
,
Qnil
);
return
Qnil
;
return
Qnil
;
}
}
...
@@ -717,7 +717,7 @@ xfont_open (f, entity, pixel_size)
...
@@ -717,7 +717,7 @@ xfont_open (f, entity, pixel_size)
len
=
font_unparse_xlfd
(
entity
,
pixel_size
,
name
,
512
);
len
=
font_unparse_xlfd
(
entity
,
pixel_size
,
name
,
512
);
if
(
len
<=
0
||
(
len
=
xfont_encode_coding_xlfd
(
name
))
<
0
)
if
(
len
<=
0
||
(
len
=
xfont_encode_coding_xlfd
(
name
))
<
0
)
{
{
font_add_log
(
" x:unparse failed"
,
entity
,
Qnil
);
FONT_ADD_LOG
(
" x:unparse failed"
,
entity
,
Qnil
);
return
Qnil
;
return
Qnil
;
}
}
...
@@ -748,7 +748,7 @@ xfont_open (f, entity, pixel_size)
...
@@ -748,7 +748,7 @@ xfont_open (f, entity, pixel_size)
len
=
font_unparse_xlfd
(
temp
,
pixel_size
,
name
,
512
);
len
=
font_unparse_xlfd
(
temp
,
pixel_size
,
name
,
512
);
if
(
len
<=
0
||
(
len
=
xfont_encode_coding_xlfd
(
name
))
<
0
)
if
(
len
<=
0
||
(
len
=
xfont_encode_coding_xlfd
(
name
))
<
0
)
{
{
font_add_log
(
" x:unparse failed"
,
temp
,
Qnil
);
FONT_ADD_LOG
(
" x:unparse failed"
,
temp
,
Qnil
);
return
Qnil
;
return
Qnil
;
}
}
xfont
=
XLoadQueryFont
(
display
,
name
);
xfont
=
XLoadQueryFont
(
display
,
name
);
...
@@ -792,7 +792,7 @@ xfont_open (f, entity, pixel_size)
...
@@ -792,7 +792,7 @@ xfont_open (f, entity, pixel_size)
if
(
!
xfont
)
if
(
!
xfont
)
{
{
font_add_log
(
" x:open failed"
,
build_string
(
name
),
Qnil
);
FONT_ADD_LOG
(
" x:open failed"
,
build_string
(
name
),
Qnil
);
return
Qnil
;
return
Qnil
;
}
}
...
...
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