~ubuntu-branches/debian/experimental/cups-filters/experimental

« back to all changes in this revision

Viewing changes to fontembed/embed_pdf.h

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2012-07-22 18:57:32 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20120722185732-26kkte5p1lth3rt5
Tags: 1.0.20-0bzr1
* New upstream release
   - pdftops: Added another workaround for Kyocera printers: Some
     models get very slow on images which request interpolation,
     so now we remove the image interpolation requests by additional
     PostScript code only inserted for Kyocera printers (LP: #1026974).
   - Made the Poppler-based filters pdftopdf and pdftoopvp build with
     both Poppler 0.18.x and 0.20.x (Upstream bug #1055).
   - Fixes according to Coverity scan results (Upstream bug #1054).
   - Switched build system to autotools. This especially fixes several
     build problems in Gentoo. Also build-tested with CUPS 1.6.0b1.
   - Fixes for compatibility with clang/gcc-4.7.
   - textonly: Filter did not work as a pipe with copies=1 (Upstream bug
     #1032).
   - texttopdf: Avoid trimming the results of FcFontSort(), as this may
     miss some reasonable candidates under certain circumstances. BTW,
     fix passing a non-pointer as a pointer to "result" (Closes: #670055).
   - Corrected documentation. The option for the maximum image rendering
     resolution in pdftops is "pdftops-max-image-resolution", not
     "pdftops-max-image-resolution-default".
* debian/patches/fcfontsort-no-trim.patch: Removed, fixed upstream.
* debian/rules: Updated options for ./configure and make for the new autotools
  build system.
* debian/watch: Switched to bz2 upstream packages.
* debian/rules, debian/copyright, debian/cups-filters.docs: Updated for
  renamed documentation files.
* debian/control, debian/libfontembed1.install,
  debian/libfontembed-dev.install: Added new binary packages for libfontembed.
* debian/copyright: Updated for recent file additions, and rearrangement of
  directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef EMBED_PDF_H
 
2
#define EMBED_PDF_H
 
3
 
 
4
// all the necessary information for pdf font embedding
 
5
typedef struct {
 
6
  char *fontname;
 
7
  unsigned int flags;
 
8
 
 
9
  // for the following: 0=not set/invalid
 
10
  int bbxmin,bbymin,bbxmax,bbymax;
 
11
  int italicAngle;    // >=90: not set/invalid
 
12
  int ascent;
 
13
  int descent;
 
14
  int capHeight;
 
15
  int stemV;
 
16
  // optional, default=0:
 
17
  int xHeight;
 
18
  int avgWidth;
 
19
 
 
20
  // CID-additions:
 
21
  char *panose; // 12 bytes
 
22
  char *registry,*ordering;
 
23
  int supplement;
 
24
 
 
25
  char data[]; // used for storing e.g. >fontname
 
26
} EMB_PDF_FONTDESCR;
 
27
 
 
28
typedef struct {
 
29
  // normal font
 
30
  int first,last;
 
31
  int *widths;
 
32
 
 
33
  // multibyte font
 
34
  int default_width;
 
35
  int *warray; // format: (len c w ... w)*   if (len<0) { c1 (c2=c1+(-len)) w } else { c w[len] }, terminated by len==0
 
36
 
 
37
  int data[];
 
38
} EMB_PDF_FONTWIDTHS;
 
39
 
 
40
const char *emb_pdf_get_font_subtype(EMB_PARAMS *emb);
 
41
const char *emb_pdf_get_fontfile_key(EMB_PARAMS *emb);
 
42
const char *emb_pdf_get_fontfile_subtype(EMB_PARAMS *emb);
 
43
 
 
44
EMB_PDF_FONTDESCR *emb_pdf_fontdescr(EMB_PARAMS *emb);
 
45
EMB_PDF_FONTWIDTHS *emb_pdf_fontwidths(EMB_PARAMS *emb);
 
46
 
 
47
/** TODO elsewhere **/
 
48
char *emb_pdf_simple_fontdescr(EMB_PARAMS *emb,EMB_PDF_FONTDESCR *fdes,int fontfile_obj_ref);
 
49
char *emb_pdf_simple_font(EMB_PARAMS *emb,EMB_PDF_FONTDESCR *fdes,EMB_PDF_FONTWIDTHS *fwid,int fontdescr_obj_ref);
 
50
char *emb_pdf_simple_cidfont(EMB_PARAMS *emb,const char *fontname,int descendant_obj_ref);
 
51
char *emb_pdf_simple_stdfont(EMB_PARAMS *emb);
 
52
 
 
53
#endif