X-Git-Url: https://harrygodden.com/git/?p=vg.git;a=blobdiff_plain;f=vg_font.h;fp=vg_font.h;h=5fcb29b50c1361f896d6ccd21d6622d2472aabaf;hp=0000000000000000000000000000000000000000;hb=70530f5055e116c22ab1b433884573944e9c4f64;hpb=0b8f57a12f41b67b6f088fb56855a0a70ecc7ca8 diff --git a/vg_font.h b/vg_font.h new file mode 100644 index 0000000..5fcb29b --- /dev/null +++ b/vg_font.h @@ -0,0 +1,22 @@ +typedef struct vg_font_char vg_font_char; +typedef struct vg_font_face vg_font_face; +typedef struct vg_font_sheet vg_font_sheet; + +struct vg_font_char +{ + i16 x, y; +}; + +struct vg_font_face +{ + const char *name; + i16 cw, ch, sx, sy, baseline; + vg_font_char map[256]; +}; + +struct vg_font_sheet +{ + i16 w, h; + u32 bitmap[]; +}; +