aboutsummaryrefslogtreecommitdiff
path: root/include/libfont.h
blob: a152545dd71c202a0d621609a1a51860a8f4aee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

typedef struct font·Data font·Data;
typedef struct font·Face font·Face;

struct font·Face
{
    int width,   height;
    int ascent, descent;
    struct{
        short l, r;
    } bearing;
    struct {
        int slant : 1, weight : 1;
    } bad;

    font·Data *data; // don't touch
};

int font·load(char *, int, font·Face *);