diff options
| author | Jason Rumney | 2008-06-18 08:33:16 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-06-18 08:33:16 +0000 |
| commit | 07d9ba9bd85ff016661a3b4571a949f8cf2655a1 (patch) | |
| tree | 056da296f07b8b56c7868ae82063f23a4b0fc7c5 /src | |
| parent | a56fc14570bc41e0addb2b90edc00a8cd6aef7aa (diff) | |
| download | emacs-07d9ba9bd85ff016661a3b4571a949f8cf2655a1.tar.gz emacs-07d9ba9bd85ff016661a3b4571a949f8cf2655a1.zip | |
Add font logging to list and match functions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/w32font.c | 8 | ||||
| -rw-r--r-- | src/w32uniscribe.c | 8 |
3 files changed, 18 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2e002b65d73..7b14e5eeffa 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-06-18 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * w32font.c (w32font_list, w32font_match): Add logging. | ||
| 4 | |||
| 5 | * w32uniscribe (uniscribe_list, uniscribe_match): Add logging. | ||
| 6 | |||
| 1 | 2008-06-17 Chong Yidong <cyd@stupidchicken.com> | 7 | 2008-06-17 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 8 | ||
| 3 | * font.c (font_parse_fcname): Store divider characters for | 9 | * font.c (font_parse_fcname): Store divider characters for |
diff --git a/src/w32font.c b/src/w32font.c index 9e4bb494e70..0dc18674aa0 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -162,7 +162,9 @@ static Lisp_Object | |||
| 162 | w32font_list (frame, font_spec) | 162 | w32font_list (frame, font_spec) |
| 163 | Lisp_Object frame, font_spec; | 163 | Lisp_Object frame, font_spec; |
| 164 | { | 164 | { |
| 165 | return w32font_list_internal (frame, font_spec, 0); | 165 | Lisp_Object fonts = w32font_list_internal (frame, font_spec, 0); |
| 166 | font_add_log ("w32font-list", font_spec, fonts); | ||
| 167 | return fonts; | ||
| 166 | } | 168 | } |
| 167 | 169 | ||
| 168 | /* w32 implementation of match for font backend. | 170 | /* w32 implementation of match for font backend. |
| @@ -173,7 +175,9 @@ static Lisp_Object | |||
| 173 | w32font_match (frame, font_spec) | 175 | w32font_match (frame, font_spec) |
| 174 | Lisp_Object frame, font_spec; | 176 | Lisp_Object frame, font_spec; |
| 175 | { | 177 | { |
| 176 | return w32font_match_internal (frame, font_spec, 0); | 178 | Lisp_Object entity = w32font_match_internal (frame, font_spec, 0); |
| 179 | font_add_log ("w32font-match", font_spec, entity); | ||
| 180 | return entity; | ||
| 177 | } | 181 | } |
| 178 | 182 | ||
| 179 | /* w32 implementation of list_family for font backend. | 183 | /* w32 implementation of list_family for font backend. |
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index 2abd742e8d5..bd201739f51 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c | |||
| @@ -76,14 +76,18 @@ static Lisp_Object | |||
| 76 | uniscribe_list (frame, font_spec) | 76 | uniscribe_list (frame, font_spec) |
| 77 | Lisp_Object frame, font_spec; | 77 | Lisp_Object frame, font_spec; |
| 78 | { | 78 | { |
| 79 | return w32font_list_internal (frame, font_spec, 1); | 79 | Lisp_Object fonts = w32font_list_internal (frame, font_spec, 1); |
| 80 | font_add_log ("uniscribe-list", font_spec, fonts); | ||
| 81 | return fonts; | ||
| 80 | } | 82 | } |
| 81 | 83 | ||
| 82 | static Lisp_Object | 84 | static Lisp_Object |
| 83 | uniscribe_match (frame, font_spec) | 85 | uniscribe_match (frame, font_spec) |
| 84 | Lisp_Object frame, font_spec; | 86 | Lisp_Object frame, font_spec; |
| 85 | { | 87 | { |
| 86 | return w32font_match_internal (frame, font_spec, 1); | 88 | Lisp_Object entity = w32font_match_internal (frame, font_spec, 1); |
| 89 | font_add_log ("uniscribe-match", font_spec, entity); | ||
| 90 | return entity; | ||
| 87 | } | 91 | } |
| 88 | 92 | ||
| 89 | static Lisp_Object | 93 | static Lisp_Object |