1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#ifndef FONT_H
#define FONT_H
#include <X11/Xlib.h>
#include <X11/Xft/Xft.h>
#include <fcitx-config/fcitx-config.h>
struct _FcitxLightUI;
void GetValidFont(const char* strUserLocale, char **font);
void CreateFont(struct _FcitxLightUI* lightui);
void OutputString (Display* dpy, XftDraw* xftDraw, Drawable window, XftFont* font, char* str, int x, int y, FcitxConfigColor color);
int StringWidth (Display* dpy, XftFont* font, char* str);
int FontHeight (Display* dpy, XftFont* font);
#endif
|