]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/xfont_metrics.h
font_metrics split, ok from asger (And it's obvious anyway ...)
[lyx.git] / src / frontends / xforms / xfont_metrics.h
1 // -*- C++ -*-
2 /**
3  * \file xfont_metrics.h
4  * Copyright 1995-2002 the LyX Team
5  * Read the file COPYING
6  *
7  * \author unknown
8  * \author John Levon <moz@compsoc.man.ac.uk>
9  */
10
11 #ifndef XFONT_METRICS_H
12 #define XFONT_METRICS_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "LString.h"
19
20 #include "font_metrics.h"
21  
22 #include <X11/Xlib.h>
23  
24 class LyXFont;
25
26 namespace xfont_metrics {
27         int XTextWidth(LyXFont const & f, char const * str, int count);
28         ///
29         int width(XChar2b const * s, int n, LyXFont const & f);
30         ///
31         int XTextWidth16(LyXFont const & f, XChar2b const * str, int count);
32         ///
33         void XSetFont(Display * display, GC gc, LyXFont const & f);
34 } // namespace xfont_metrics
35  
36 #endif // FONT_METRICS_H