adjust imgui font system
[vg.git] / vg_font.h
diff --git a/vg_font.h b/vg_font.h
new file mode 100644 (file)
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[];
+};
+