mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-04 20:03:20 +03:00
untabify
This commit is contained in:
parent
681a68a994
commit
8605b7a430
28
_imagingft.c
28
_imagingft.c
|
@ -79,30 +79,30 @@ typedef struct {
|
||||||
static PyTypeObject Font_Type;
|
static PyTypeObject Font_Type;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
void* raqm;
|
void* raqm;
|
||||||
raqm_t* (*create)(void);
|
raqm_t* (*create)(void);
|
||||||
int (*set_text)(raqm_t *rq,
|
int (*set_text)(raqm_t *rq,
|
||||||
const uint32_t *text,
|
const uint32_t *text,
|
||||||
size_t len);
|
size_t len);
|
||||||
bool (*set_text_utf8) (raqm_t *rq,
|
bool (*set_text_utf8) (raqm_t *rq,
|
||||||
const char *text,
|
const char *text,
|
||||||
size_t len);
|
size_t len);
|
||||||
bool (*set_par_direction) (raqm_t *rq,
|
bool (*set_par_direction) (raqm_t *rq,
|
||||||
raqm_direction_t dir);
|
raqm_direction_t dir);
|
||||||
bool (*add_font_feature) (raqm_t *rq,
|
bool (*add_font_feature) (raqm_t *rq,
|
||||||
const char *feature,
|
const char *feature,
|
||||||
int len);
|
int len);
|
||||||
bool (*set_freetype_face) (raqm_t *rq,
|
bool (*set_freetype_face) (raqm_t *rq,
|
||||||
FT_Face face);
|
FT_Face face);
|
||||||
bool (*layout) (raqm_t *rq);
|
bool (*layout) (raqm_t *rq);
|
||||||
raqm_glyph_t* (*get_glyphs) (raqm_t *rq,
|
raqm_glyph_t* (*get_glyphs) (raqm_t *rq,
|
||||||
size_t *length);
|
size_t *length);
|
||||||
void (*destroy) (raqm_t *rq);
|
void (*destroy) (raqm_t *rq);
|
||||||
|
|
||||||
} p_raqm_func;
|
} p_raqm_func;
|
||||||
|
|
||||||
static p_raqm_func p_raqm;
|
static p_raqm_func p_raqm;
|
||||||
|
|
||||||
|
|
||||||
/* round a 26.6 pixel coordinate to the nearest larger integer */
|
/* round a 26.6 pixel coordinate to the nearest larger integer */
|
||||||
#define PIXEL(x) ((((x)+63) & -64)>>6)
|
#define PIXEL(x) ((((x)+63) & -64)>>6)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user