File: FftInterface.h

package info (click to toggle)
fvwm3 1.0.6a%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,408 kB
  • sloc: ansic: 141,349; perl: 4,891; sh: 4,568; makefile: 785; yacc: 688; lex: 187; sed: 11
file content (41 lines) | stat: -rw-r--r-- 877 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* -*-c-*- */

#ifndef FVWMLIB_FFT_INTERFACE_H
#define FVWMLIB_FFT_INTERFACE_H

#include "fvwm_x11.h"

#ifdef HAVE_XFT
#define FftSupport 1
#else
#define FftSupport 0
#endif

typedef struct _FlocaleFont FlocaleFont;
typedef struct _FlocaleWinString FlocaleWinString;

/*
 * Fvwm Xft font structure
 */

typedef struct
{
	XftFont *fftfont[4]; /* Four rotations */
	char *encoding;
} FftFontType;

void FftGetFontHeights(
	FftFontType *fftf, int *height, int *ascent, int *descent);

FftFontType *FftGetFont(Display *dpy, char *fontname, char *module);
void FftCloseFont(Display *dpy, FftFontType *fftf);

void FftDrawString(
	Display *dpy, FlocaleFont *flf, FlocaleWinString *fws,
	Pixel fg, Pixel fgsh, Bool has_fg_pixels, int len,
	unsigned long flags);

int FftTextWidth(Display *dpy, FlocaleFont *flf, char *str, int len);
void FftPrintPatternInfo(FftFontType *ft);

#endif