|
From: <ai...@us...> - 2010-07-28 19:21:13
|
Revision: 11111
http://plplot.svn.sourceforge.net/plplot/?rev=11111&view=rev
Author: airwin
Date: 2010-07-28 19:21:04 +0000 (Wed, 28 Jul 2010)
Log Message:
-----------
Change use of DEBUG, pls->debug, pls->verbose, etc., to be consistent
with other device drivers.
Use one (commented out) call to pldebug to help figure out HPDF
requested font size.
Modified Paths:
--------------
trunk/drivers/pdf.c
Modified: trunk/drivers/pdf.c
===================================================================
--- trunk/drivers/pdf.c 2010-07-27 22:24:16 UTC (rev 11110)
+++ trunk/drivers/pdf.c 2010-07-28 19:21:04 UTC (rev 11111)
@@ -41,8 +41,8 @@
#include "hpdf.h"
/* PLplot header files */
+#define DEBUG
#define NEED_PLDEBUG
-/* #define DEBUG */
#include "plplotP.h"
#include "drivers.h"
#include "plunicode-type1.h"
@@ -206,14 +206,6 @@
pls->width = 1;
pls->bytecnt = 0;
-#ifdef DEBUG
- pls->verbose = 1;
- pls->debug = 1;
-#else
- pls->verbose = 0;
- pls->debug = 0;
-#endif
-
if ( text )
{
pls->dev_text = 1; /* handles text */
@@ -576,6 +568,7 @@
if ( !( dev->m_font = HPDF_GetFont( dev->pdf, font, NULL ) ) )
plexit( "ERROR: Couldn't open font\n" );
+ //pldebug( "PSSetFont", "HPDF requested font size = %f\n", dev->fontSize * dev->fontScale );
HPDF_Page_SetFontAndSize( dev->page, dev->m_font, dev->fontSize * dev->fontScale );
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|