X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fxo-print.h;h=bdfeee7e8d51e46aefcc78ddf7fd1d2f2940a713;hb=2e5ff0bff41fa53d4941b6f0fe49c8914bf29cbc;hp=1ad42d4b3ccd2b7e62aa1ace010c667eb8e5a371;hpb=59df9eb838b273295a6b86ce9f522dc4ad71dc4d;p=xournal.git diff --git a/src/xo-print.h b/src/xo-print.h index 1ad42d4..bdfeee7 100644 --- a/src/xo-print.h +++ b/src/xo-print.h @@ -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