[go: up one dir, main page]

File: font.h

package info (click to toggle)
fcitx-ui-light 0.1.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 468 kB
  • sloc: ansic: 2,438; sh: 27; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (4)
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