/*
- * "$Id: textcommon.c,v 1.16.2.3 2002/01/02 18:04:48 mike Exp $"
+ * "$Id: textcommon.c,v 1.16.2.4 2002/01/17 21:40:21 mike Exp $"
*
* Common text filter routines for the Common UNIX Printing System (CUPS).
*
Copies = 1; /* Number of copies */
lchar_t **Page = NULL; /* Page characters */
int NumPages = 0; /* Number of pages in document */
-int CharsPerInch = 10; /* Number of character columns per inch */
-int LinesPerInch = 6; /* Number of lines per inch */
+float CharsPerInch = 10; /* Number of character columns per inch */
+float LinesPerInch = 6; /* Number of lines per inch */
int UTF8 = 0; /* Use UTF-8 encoding? */
int NumKeywords = 0; /* Number of known keywords */
char **Keywords = NULL; /* List of known keywords */
PageColumns = atoi(val);
if ((val = cupsGetOption("cpi", num_options, options)) != NULL)
- CharsPerInch = atoi(val);
+ CharsPerInch = atof(val);
if ((val = cupsGetOption("lpi", num_options, options)) != NULL)
- LinesPerInch = atoi(val);
+ LinesPerInch = atof(val);
if ((val = cupsGetOption("prettyprint", num_options, options)) != NULL)
PageTop -= 216.0f / LinesPerInch;
/*
- * End of "$Id: textcommon.c,v 1.16.2.3 2002/01/02 18:04:48 mike Exp $".
+ * End of "$Id: textcommon.c,v 1.16.2.4 2002/01/17 21:40:21 mike Exp $".
*/
/*
- * "$Id: textcommon.h,v 1.6.2.2 2002/01/02 18:04:49 mike Exp $"
+ * "$Id: textcommon.h,v 1.6.2.3 2002/01/17 21:40:21 mike Exp $"
*
* Common text filter definitions for the Common UNIX Printing System (CUPS).
*
Copies; /* Number of copies to produce */
extern lchar_t **Page; /* Page characters */
extern int NumPages; /* Number of pages in document */
-extern int CharsPerInch, /* Number of character columns per inch */
- LinesPerInch, /* Number of lines per inch */
- UTF8; /* Use UTF-8 encoding? */
-extern int NumKeywords; /* Number of known keywords */
+extern float CharsPerInch, /* Number of character columns per inch */
+ LinesPerInch; /* Number of lines per inch */
+extern int UTF8, /* Use UTF-8 encoding? */
+ NumKeywords; /* Number of known keywords */
extern char **Keywords; /* List of known keywords... */
/*
- * End of "$Id: textcommon.h,v 1.6.2.2 2002/01/02 18:04:49 mike Exp $".
+ * End of "$Id: textcommon.h,v 1.6.2.3 2002/01/17 21:40:21 mike Exp $".
*/