head 1.2; access; symbols pkgsrc-2014Q4:1.1.0.42 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.40 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.38 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.36 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.34 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.32 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.30 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.28 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.26 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.24 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.22 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.20 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.18 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.16 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.14 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.12 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.10 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.8 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.6 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.4 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.2 pkgsrc-2009Q4-base:1.1; locks; strict; comment @# @; 1.2 date 2015.01.26.13.09.09; author mef; state dead; branches; next 1.1; commitid kGazrscoSl7pex7y; 1.1 date 2009.10.31.14.26.31; author tnn; state Exp; branches; next ; desc @@ 1.2 log @(pkgsrc) - Add LICENSE (gnu-gpl-v2) - Add gmake on USE_TOOLL+= - Add post-build: and post-install: target to get de/LC_MESSAGES/pslib.mo installed as previous package. (USE_CMAKE= yes doesn't work for install: yet) (upstream) - Update 0.2.6 to 0.4.5 ------------------------- Version 0.4.5 - added support for reusable images - updated man pages Version 0.4.4 - fixed impropper use of font in ps_stringwidth() (thanks to Roger Wimbert) Version 0.4.3 - renamed getline() to afm_getline() in ps_afm.c because never versions of libc have an equal symbol Version 0.4.2 - fixed bug in ps_setcolor() - made src/hash_table.c compile on hp ux - fixed typo in input encoding table - fixed man pages - fixed several memory leaks Version 0.4.1 - fixed DSC in postscript file (makes ghostview for ms windows happy) - configuring using cmake now checks for libpng, libjpeg, libtiff, libz Version 0.4.0 - Also disolve a ligature if it isn't present in the font encoding vector - handle duplicate glyphs in an afm file nicely, without leaking memory - many small changes to make it compile for win32 in a mingw and visual C environment (includes support for cmake) - added function PS_glyph_list() which returns a list of all glyphs in a font. Free that list with PS_free_glyph_list() - added function PS_glyph_width() which returns the width of a glyph - changed mode of fopen to "rb" to make it work in win32 - added functions PS_[begin|end]_font(), PS_[begin|end]_glyph() for creating Type3 fonts - added functions PS_add_kerning(), PS_add_ligature() for setting kerning pairs and ligatures of a font. - added PS_glyph_show() for outputting a glyph by its name. - fixed sourceforge bug 1556247, 'ordmaskuline' must be 'ordmasculine' Version 0.3.0 - PS_string_geometry() uses the passed font and not the current font (Closes #1711438 at sourceforge) - added section about color separation in man page of pslib - check for byteswap.h because mingw doesn't have it - default error handler now prints to stderr instead of stdout (reported by Johannes Frank, fixes debian bug #429544) - parbreak has no effect if linebreak is set (previous segm reported by Johannes Frank, fixes debian bug #429543) - BMP support can be disabled - PS_place_image() doesn't check for mimetypes of unsupported image formats - support for separating colors. Just set the value 'separationcolor' before creating a new page to 1-4 (1=cyan, 2=magenta, ...) - added missing include file for freebsd - Support for other input encodings (currently only latin1 and latin2, more can be easily added) - Replaced TeXBase1 by Cork fontencoding because it supports more glyphs - ps_check_for_lig() gets extra first parameter *psdoc in order to be able to access the inputencoding stored in psdoc Version 0.2.7 - fixed setting of locale - PS_set_border_style() works as expected - added blind feature to PS_show_boxed() - added support for gif, tiff and bmp images - PS_show_boxed() sets the value 'boxheight' to the actual height of the box. This is useful if you specify a height of 0.0 for the box and need to find out how high is has become. It is also useful if a box isn't completely filled. - passing a height of 0.0 to PS_show_boxed() will create a box long enough to contain all text. - strip alpha channel from rgb pngs, because they cause a segm fault. Once I understand where the actual problem lies, it will be reenabled. - make euro symbol work (replaces the currency symbol) - PS_arc() and PS_arcn() behave like the arc and arcn postscript commands - fixed rpm spec file - PS_continue_text() finally works as expected - PS_get_buffer() checks for psdoc->sb before accessing it - PS_begin_page() does not overwrite the BoundingBox and Orientation anymore, if it has been explicitly set by PS_set_info() @ text @$NetBSD: patch-aa,v 1.1 2009/10/31 14:26:31 tnn Exp $ --- src/ps_afm.c.orig 2004-07-22 08:01:26.000000000 +0200 +++ src/ps_afm.c @@@@ -136,7 +136,7 @@@@ static int transform(int x, int y) { return (int)(acc>=0? floor(acc+0.5) : ceil(acc-0.5) ) ; } -static int getline(FILE *afmin) { +static int get_line(FILE *afmin) { char *p ; int c ; @@@@ -566,7 +566,7 @@@@ int readprotusion(PSDoc *psdoc, PSFont * return(-1); } - while (getline(fp)) { + while (get_line(fp)) { switch(interest(paramstring())) { case N: handleprotusion(psdoc, metrics) ; @@@@ -614,7 +614,7 @@@@ ADOBEFONTMETRIC *readadobe(PSDoc *psdoc, /* * Read file line by line. */ - while (getline(metric->afmin)) { + while (get_line(metric->afmin)) { switch(interest(paramstring())) { case FontName: metric->fontname = paramnewstring(psdoc) ; @@@@ -972,7 +972,7 @@@@ static char *gettoken(PSDoc *psdoc, ADOB while (1) { while (param == NULL || *param == '\0') { - if (getline(metrics->afmin) == 0) + if (get_line(metrics->afmin) == 0) ps_error(psdoc, PS_RuntimeError, _("Premature end of encoding file.")); for (p=buffer; *p != '\0'; p++) if (*p == '%') { @@@@ -1093,7 +1093,7 @@@@ int readencoding(PSDoc *psdoc, ADOBEFONT psdoc->free(psdoc, e); return -1; } - while (getline(metrics->afmin)) { + while (get_line(metrics->afmin)) { for (p=buffer; *p != '\0'; p++) if (*p == '%') { if (ignoreligkern == 0) @ 1.1 log @getline -> get_line @ text @d1 1 a1 1 $NetBSD$ @