]> git.lyx.org Git - features.git/blob - src/frontends/xforms/xfont_metrics.h
Replace LString.h with support/std_string.h,
[features.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
17 #include "support/std_string.h"
18
19 #include "font_metrics.h"
20
21 #include <X11/Xlib.h>
22
23 class LyXFont;
24
25 namespace xfont_metrics {
26         int XTextWidth(LyXFont const & f, char const * str, int count);
27         ///
28         int width(XChar2b const * s, int n, LyXFont const & f);
29         ///
30         int XTextWidth16(LyXFont const & f, XChar2b const * str, int count);
31         ///
32         void XSetFont(Display * display, GC gc, LyXFont const & f);
33 } // namespace xfont_metrics
34
35 #endif // FONT_METRICS_H