* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
+ * Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
#include "FontLoader.h"
#include "lyxrc.h"
#include "encoding.h"
+#include "language.h"
-// namespace {
-static inline
+namespace {
+
+inline
XFontStruct * getXFontstruct(LyXFont const & f)
{
return fontloader.load(f.family(), f.series(),
}
-static inline
+inline
XID getFontID(LyXFont const & f)
{
return getXFontstruct(f)->fid;
}
-// } // end of anon namespace
+
+} // namespace anon
int lyxfont::maxAscent(LyXFont const & f)
{
} else {
// emulate smallcaps since X doesn't support this
unsigned int result = 0;
- static XChar2b c = {0, 0};
+ static XChar2b c;
LyXFont smallfont(f);
smallfont.decSize().decSize().setShape(LyXFont::UP_SHAPE);
for (int i = 0; i < n; ++i) {