]>
Dogcows Code - chaz/openbox/blob - otk/font.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
6 #include "truerendercontrol.hh"
10 #define _XFT_NO_COMPAT_ // no Xft 1 API
11 #include <X11/Xft/Xft.h>
26 static std::string _fallback_font
;
27 static bool _xft_init
;
30 // the fallback is only used for X fonts, not for Xft fonts, since it is
31 // assumed that X fonts will be the fallback from Xft.
32 inline static std::string
fallbackFont(void) { return _fallback_font
; }
33 inline static void setFallbackFont(const std::string
&f
)
34 { _fallback_font
= f
; }
42 std::string _fontstring
;
45 unsigned char _offset
;
50 bool createXftFont(void);
54 Font(int screen_num
, const std::string
&fontstring
, bool shadow
,
55 unsigned char offset
, unsigned char tint
);
58 inline const std::string
&fontstring() const { return _fontstring
; }
61 int maxCharWidth() const;
63 int measureString(const ustring
&string
) const;
65 // The RenderControl classes use the internal data to render the fonts, but
66 // noone else needs it, so its private.
67 friend class RenderControl
;
This page took 0.040374 seconds and 4 git commands to generate.