diff options
author | Jason Rumney <jasonr@gnu.org> | 2008-06-26 10:48:28 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2008-06-26 10:48:28 +0000 |
commit | 1b5defe6580487f499c0af4a598ee968c5cae062 (patch) | |
tree | fda3244a1c6bcaac61eda98d5429d2d6599ddb57 /src/w32gui.h | |
parent | dc018447584eecaf2de92eef2ec3c9f60c5f818f (diff) |
* w32bdf.c, w32bdf.h: Remove obsolete files.
* makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
* w32gui.h: Don't include w32bdf.h.
(XCharStruct, enum w32_char_font_type, W32FontStruct):
Remove obsolete font support.
* w32font.h (struct w32font_info): Remove compat_w32_font.
Add hfont member.
(FONT_COMPAT): Remove obsolete macro.
* w32font.c (w32font_close): Remove compat code. Delete hfont member.
(w32font_encode_char, w32font_text_extents): Use new hfont member.
(w32font_open_internal): Remove compat code. Set new hfont member.
(Fx_select_font): Use new hfont member.
* w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape):
(uniscribe_encode_char): Use new hfont member.
* w32term.c (x_draw_glyph_string_foreground):
(x_draw_composite_glyph_string_foreground): Use new hfont member.
(x_draw_glyph_string): Use metrics in w32font_info.
Diffstat (limited to 'src/w32gui.h')
-rw-r--r-- | src/w32gui.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/w32gui.h b/src/w32gui.h index 86e6eb4e2e..aea3582b3e 100644 --- a/src/w32gui.h +++ b/src/w32gui.h @@ -21,17 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #define EMACS_W32GUI_H #include <windows.h> -#include "w32bdf.h" - -/* Emulate XCharStruct. */ -typedef struct _XCharStruct -{ - short rbearing; - short lbearing; - short width; - short ascent; - short descent; -} XCharStruct; /* Emulate widget_value from ../lwlib/lwlib.h, modified for Windows. */ typedef void * XtPointer; @@ -100,30 +89,6 @@ typedef struct _widget_value #define malloc_widget_value() ((widget_value *) local_alloc (sizeof (widget_value))) #define free_widget_value(wv) (local_free ((wv))) - -enum w32_char_font_type -{ - UNKNOWN_FONT = 0 /* FONT_TYPE_UNKNOWN */, - ANSI_FONT, - UNICODE_FONT, - BDF_1D_FONT, - BDF_2D_FONT -}; - -typedef struct W32FontStruct { - enum w32_char_font_type font_type; - TEXTMETRIC tm; - HFONT hfont; - bdffont *bdf; - int double_byte_p; - XCharStruct max_bounds; - XCharStruct scratch; - /* Only store info for ascii chars, if not fixed pitch. */ - XCharStruct * per_char; -} W32FontStruct; - -typedef struct W32FontStruct XFontStruct; - /* Emulate X GC's by keeping color and font info in a structure. */ typedef struct _XGCValues { |