Add a procedure to our prologue to draw filled rectangles, and use it.
[sgt/halibut] / paper.h
diff --git a/paper.h b/paper.h
index b8d7698..2811f37 100644 (file)
--- a/paper.h
+++ b/paper.h
@@ -65,6 +65,10 @@ struct font_info_Tag {
      */
     const char *name;
     /*
+     * The file containing this font, if any.
+     */
+    FILE *fp;
+    /*
      * An array of pointers to the available glyph names, and their
      * corresponding character widths. These two arrays have
      * parallel indices.
@@ -87,6 +91,18 @@ struct font_info_Tag {
      * it), whose elements are indices into the above two arrays.
      */
     unsigned short bmp[65536];
+    /*
+     * Various bits of metadata needed for the /FontDescriptor dictionary
+     * in PDF.
+     */
+    float fontbbox[4];
+    float capheight;
+    float xheight;
+    float ascent;
+    float descent;
+    float stemv;
+    float stemh;
+    float italicangle;
 };
 
 /*