Mercurial > emacs
comparison src/w32font.h @ 91593:3081b8f848bc
* w32font.c (w32font_text_extents): Fill in lbearing metric.
Use cached metrics for ASCII characters.
(w32font_open_internal): Don't set font's owning_frame. Cache
metrics for ASCII characters.
* w32font.h (struct w32font_info): Add ascii_metrics.
Remove owning_frame.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Wed, 06 Feb 2008 22:35:30 +0000 |
parents | a9ab858a06c6 |
children | a371504924ef |
comparison
equal
deleted
inserted
replaced
91592:e04de4790d87 | 91593:3081b8f848bc |
---|---|
30 The Uniscribe backend extends this. */ | 30 The Uniscribe backend extends this. */ |
31 struct w32font_info | 31 struct w32font_info |
32 { | 32 { |
33 struct font font; | 33 struct font font; |
34 TEXTMETRIC metrics; | 34 TEXTMETRIC metrics; |
35 struct frame *owning_frame; | 35 struct font_metrics ascii_metrics[96]; |
36 }; | 36 }; |
37 | 37 |
38 Lisp_Object w32font_get_cache P_ ((FRAME_PTR fe)); | 38 Lisp_Object w32font_get_cache P_ ((FRAME_PTR fe)); |
39 Lisp_Object w32font_list_internal P_ ((Lisp_Object frame, | 39 Lisp_Object w32font_list_internal P_ ((Lisp_Object frame, |
40 Lisp_Object font_spec, | 40 Lisp_Object font_spec, |