/third_party/cups-filters/fontembed/ |
H A D | embed.c | 177 int emb_embed(EMB_PARAMS *emb,OUTPUT_FN output,void *context) // {{{ in emb_embed() argument 179 assert(emb); in emb_embed() 181 if (emb->dest==EMB_DEST_NATIVE) { in emb_embed() 182 } else if (emb->dest<=EMB_DEST_PS) { in emb_embed() 184 const char *fontname=emb_otf_get_fontname(emb->font->sfnt); // TODO!! in emb_embed() 188 if (emb->outtype==EMB_FMT_T1) { in emb_embed() 189 } else if (emb->outtype==EMB_FMT_TTF) { // emb->outtype==EMB_OUTPUT_OTF is stupid (?) in emb_embed() 191 ret=emb_otf_ps(emb->font->sfnt,NULL,256,NULL,output,context); // TODO? in emb_embed() 192 } else if (emb in emb_embed() 249 emb_close(EMB_PARAMS *emb) emb_close() argument [all...] |
H A D | embed_pdf.c | 33 static inline int emb_multibyte(EMB_PARAMS *emb) // {{{ in emb_multibyte() argument 35 return (emb->plan&EMB_A_MULTIBYTE)?1:0; in emb_multibyte() 67 const char *emb_pdf_get_font_subtype(EMB_PARAMS *emb) // {{{ in emb_pdf_get_font_subtype() argument 69 assert(emb); in emb_pdf_get_font_subtype() 70 return emb_pdf_font_subtype[emb->outtype][emb_multibyte(emb)]; in emb_pdf_get_font_subtype() 75 const char *emb_pdf_get_fontfile_key(EMB_PARAMS *emb) // {{{ in emb_pdf_get_fontfile_key() argument 77 assert(emb); in emb_pdf_get_fontfile_key() 78 return emb_pdf_fontfile_key[emb->outtype]; in emb_pdf_get_fontfile_key() 83 const char *emb_pdf_get_fontfile_subtype(EMB_PARAMS *emb) // {{{ in emb_pdf_get_fontfile_subtype() argument 151 emb_pdf_fontdescr(EMB_PARAMS *emb) emb_pdf_fontdescr() argument 335 emb_pdf_fontwidths(EMB_PARAMS *emb) emb_pdf_fontwidths() argument 367 emb_pdf_simple_fontdescr(EMB_PARAMS *emb,EMB_PDF_FONTDESCR *fdes,int fontfile_obj_ref) emb_pdf_simple_fontdescr() argument 443 emb_pdf_simple_font(EMB_PARAMS *emb,EMB_PDF_FONTDESCR *fdes,EMB_PDF_FONTWIDTHS *fwid,int fontdescr_obj_ref) emb_pdf_simple_font() argument 528 emb_pdf_simple_cidfont(EMB_PARAMS *emb,const char *fontname,int descendant_obj_ref) emb_pdf_simple_cidfont() argument 569 emb_pdf_simple_stdfont(EMB_PARAMS *emb) emb_pdf_simple_stdfont() argument [all...] |
H A D | test_pdf.c | 48 static inline void write_string(FILE *f,EMB_PARAMS *emb,const char *str) // {{{ in write_string() argument 51 assert(emb); in write_string() 54 if (emb->plan&EMB_A_MULTIBYTE) { in write_string() 57 const unsigned short gid=emb_get(emb,(unsigned char)str[iA]); in write_string() 64 emb_get(emb,(unsigned char)str[iA]); in write_string() 87 EMB_PARAMS *emb=emb_new(ff, in main() local 103 write_string(f,emb,"Hallo"); in main() 108 emb_get(emb,'a'); in main() 111 EMB_PDF_FONTDESCR *fdes=emb_pdf_fontdescr(emb); in main() 113 EMB_PDF_FONTWIDTHS *fwid=emb_pdf_fontwidths(emb); in main() [all...] |
H A D | test_ps.c | 21 static inline void write_string(FILE *f,EMB_PARAMS *emb,const char *str) // {{{ in write_string() argument 24 assert(emb); in write_string() 27 if (emb->plan&EMB_A_MULTIBYTE) { in write_string() 30 const unsigned short gid=emb_get(emb,(unsigned char)str[iA]); in write_string() 37 emb_get(emb,(unsigned char)str[iA]); in write_string() 60 EMB_PARAMS *emb=emb_new(ff, in main() local 72 emb_get(emb,'a'); in main() 76 emb_get(emb,(unsigned char)str[iA]); in main() 79 emb_embed(emb,example_outfn,f); in main() 83 " /%s findfont 10 scalefont setfont\n",emb_otf_get_fontname(emb in main() [all...] |
H A D | embed_pdf.h | 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); 44 EMB_PDF_FONTDESCR *emb_pdf_fontdescr(EMB_PARAMS *emb); 45 EMB_PDF_FONTWIDTHS *emb_pdf_fontwidths(EMB_PARAMS *emb); 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);
|
H A D | embed.h | 64 int emb_embed(EMB_PARAMS *emb,OUTPUT_FN output,void *context); // returns number of bytes written 65 void emb_close(EMB_PARAMS *emb); 68 static inline void emb_set(EMB_PARAMS *emb,int unicode,unsigned short gid) // {{{ in emb_set() argument 70 if (emb->subset) { in emb_set() 71 if (emb->plan&EMB_A_MULTIBYTE) { in emb_set() 72 bit_set(emb->subset,gid); in emb_set() 82 static inline unsigned short emb_get(EMB_PARAMS *emb,int unicode) // {{{ gid in emb_get() argument 84 const unsigned short gid=otf_from_unicode(emb->font->sfnt,unicode); in emb_get() 85 emb_set(emb,unicode,gid); in emb_get()
|
/third_party/cups-filters/filter/ |
H A D | test_pdf2.c | 9 static inline void write_string(pdfOut *pdf,EMB_PARAMS *emb,const char *str) // {{{ in write_string() argument 12 assert(emb); in write_string() 15 if (emb->plan&EMB_A_MULTIBYTE) { in write_string() 18 const unsigned short gid=emb_get(emb,(unsigned char)str[iA]); in write_string() 25 emb_get(emb,(unsigned char)str[iA]); in write_string() 58 EMB_PARAMS *emb=emb_new(ff, in main() local 73 write_string(pdf,emb,"Test"); in main() 87 int font_obj=pdfOut_write_font(pdf,emb); in main() 105 emb_close(emb); in main()
|
H A D | pdfutils.c | 298 int pdfOut_write_font(pdfOut *pdf,EMB_PARAMS *emb) // {{{ in pdfOut_write_font() argument 301 assert(emb); in pdfOut_write_font() 303 EMB_PDF_FONTDESCR *fdes=emb_pdf_fontdescr(emb); in pdfOut_write_font() 305 if (emb->outtype==EMB_FMT_STDFONT) { // std-14 font in pdfOut_write_font() 307 char *res=emb_pdf_simple_stdfont(emb); in pdfOut_write_font() 326 if (emb_pdf_get_fontfile_subtype(emb)) { in pdfOut_write_font() 328 emb_pdf_get_fontfile_subtype(emb)); in pdfOut_write_font() 330 if (emb->outtype==EMB_FMT_TTF) { in pdfOut_write_font() 333 } else if (emb->outtype==EMB_FMT_T1) { // TODO in pdfOut_write_font() 342 const int outlen=emb_embed(emb,pdfOut_outf in pdfOut_write_font() [all...] |
H A D | texttopdf.c | 105 EMB_PARAMS *emb=emb_new(ff, in font_load() local 109 assert(emb); in font_load() 110 assert(emb->plan&EMB_A_MULTIBYTE); in font_load() 111 return emb; in font_load() 118 EMB_PARAMS *emb=emb_new(ff, in font_std() local 121 assert(emb); in font_std() 122 return emb; in font_std() 178 EMB_PARAMS *emb=Fonts[j][i]; in WriteEpilogue() local 179 if (emb->font->fobj) { // already embedded in WriteEpilogue() 182 if ( (!emb in WriteEpilogue() 201 EMB_PARAMS *emb=Fonts[j][i]; WriteEpilogue() local 1111 EMB_PARAMS *emb=Fonts[lastfont][fontid]; write_font_str() local [all...] |
H A D | pdfutils.h | 75 /* Writes the font >emb including descriptor to the pdf 80 int pdfOut_write_font(pdfOut *pdf,struct _EMB_PARAMS *emb);
|