]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xfont_metrics.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / xfont_metrics.h
1 // -*- C++ -*-
2 /**
3  * \file xfont_metrics.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author unknown
8  * \author John Levon 
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #ifndef XFONT_METRICS_H
14 #define XFONT_METRICS_H
15
16 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "LString.h"
21
22 #include "font_metrics.h"
23  
24 #include <X11/Xlib.h>
25  
26 class LyXFont;
27
28 namespace xfont_metrics {
29         int XTextWidth(LyXFont const & f, char const * str, int count);
30         ///
31         int width(XChar2b const * s, int n, LyXFont const & f);
32         ///
33         int XTextWidth16(LyXFont const & f, XChar2b const * str, int count);
34         ///
35         void XSetFont(Display * display, GC gc, LyXFont const & f);
36 } // namespace xfont_metrics
37  
38 #endif // FONT_METRICS_H