]> git.donarmstrong.com Git - xournal.git/blobdiff - src/xo-print.h
Release 0.4
[xournal.git] / src / xo-print.h
index 1ad42d4b3ccd2b7e62aa1ace010c667eb8e5a371..bdfeee7e8d51e46aefcc78ddf7fd1d2f2940a713 100644 (file)
@@ -26,6 +26,25 @@ typedef struct PdfObj {
   char **names;
 } PdfObj;
 
+typedef struct PdfFont {
+  int n_obj;
+  gboolean used_in_this_page;
+  unsigned char *filename;
+  int font_id;
+  gboolean is_truetype;
+  int glyph_page;
+  int glyphmap[256];
+  int advance[256];
+  char *glyphpsnames[256];
+  int num_glyphs_used;
+  // fields from the FT_Face
+  gdouble ft2ps;
+  int nglyphs;
+  int ascender, descender, xmin, xmax, ymin, ymax; // in PDF font units
+  gchar *fontname;
+  int flags;
+} PdfFont;
+
 #define PDFTYPE_CST 0    // intval: true=1, false=0, null=-1
 #define PDFTYPE_INT 1    // intval
 #define PDFTYPE_REAL 2   // realval