2000-04-04 00:19:15 +00:00
|
|
|
// -*- C++ -*-
|
2002-06-11 21:44:00 +00:00
|
|
|
/**
|
|
|
|
* \file xfont_metrics.h
|
|
|
|
* Copyright 1995-2002 the LyX Team
|
|
|
|
* Read the file COPYING
|
2002-03-21 17:27:08 +00:00
|
|
|
*
|
2002-06-11 21:44:00 +00:00
|
|
|
* \author unknown
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
*/
|
2000-07-24 13:53:19 +00:00
|
|
|
|
2002-06-11 21:44:00 +00:00
|
|
|
#ifndef XFONT_METRICS_H
|
|
|
|
#define XFONT_METRICS_H
|
2000-04-04 00:19:15 +00:00
|
|
|
|
2000-07-24 13:53:19 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2000-04-04 00:19:15 +00:00
|
|
|
#include "LString.h"
|
|
|
|
|
2002-06-11 21:44:00 +00:00
|
|
|
#include "font_metrics.h"
|
|
|
|
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
2000-04-04 00:19:15 +00:00
|
|
|
class LyXFont;
|
|
|
|
|
2002-06-11 21:44:00 +00:00
|
|
|
namespace xfont_metrics {
|
2000-09-14 17:53:12 +00:00
|
|
|
int XTextWidth(LyXFont const & f, char const * str, int count);
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
2000-07-04 20:32:37 +00:00
|
|
|
int width(XChar2b const * s, int n, LyXFont const & f);
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
2000-09-14 17:53:12 +00:00
|
|
|
int XTextWidth16(LyXFont const & f, XChar2b const * str, int count);
|
2000-08-07 20:58:24 +00:00
|
|
|
///
|
2000-04-04 00:19:15 +00:00
|
|
|
void XSetFont(Display * display, GC gc, LyXFont const & f);
|
2002-06-11 21:44:00 +00:00
|
|
|
} // namespace xfont_metrics
|
|
|
|
|
|
|
|
#endif // FONT_METRICS_H
|