From: handa Date: Tue, 27 Apr 2004 07:33:48 +0000 (+0000) Subject: Include FT_FREETYPE_H. X-Git-Tag: withdl~260 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=c466263ac1ec2c1fcbd1d9b89b91ff746c472c4b;p=m17n%2Fm17n-lib.git Include FT_FREETYPE_H. (mwin__xft_open, mwin__xft_close) [HAVE_FREETYPE]: New externs. (mwin__xft_get_metric, mwin__xft_render) [HAVE_FREETYPE]: New externs. --- diff --git a/src/internal-gui.h b/src/internal-gui.h index 656bfb6..7e18c51 100644 --- a/src/internal-gui.h +++ b/src/internal-gui.h @@ -284,4 +284,18 @@ extern void mwin__adjust_window (MFrame *frame, MDrawWindow win, extern MSymbol mwin__parse_event (MFrame *frame, void *arg, int *modifiers); +#ifdef HAVE_XFT2 + +#include +#include FT_FREETYPE_H + +extern void *mwin__xft_open (MFrame *frame, char *filename, int size); +extern void mwin__xft_close (void *xft_info); +extern void mwin__xft_get_metric (void *xft_info, FT_Face ft_face, MGlyph *g); +extern void mwin__xft_render (MDrawWindow win, int x, int y, + MGlyphString *gstring, MGlyph *from, MGlyph *to, + int reverse, MDrawRegion region, + void *xft_info, FT_Face ft_face); +#endif /* HAVE_XFT2 */ + #endif /* _M_INTERNAL_GUI_H */