phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/pdf/class.pdf.php, 1.1.1.4


From: nomail
Subject: [Phpgroupware-cvs] property/pdf/class.pdf.php, 1.1.1.4
Date: Sun, 23 May 2004 03:36:17 -0000

Update of /property/pdf
Modified Files:
        Branch: 
          class.pdf.php

date: 2004/05/04 11:34:26;  author: sigurdne;  state: Exp;  lines: +5 -5

Log Message:
no message
=====================================================================
Index: property/pdf/class.pdf.php
diff -u property/pdf/class.pdf.php:1.1.1.3 property/pdf/class.pdf.php:1.1.1.4
--- property/pdf/class.pdf.php:1.1.1.3  Fri Apr 23 21:26:42 2004
+++ property/pdf/class.pdf.php  Tue May  4 11:34:26 2004
@@ -1929,7 +1929,7 @@
 function getFontHeight($size){
   if (!$this->numFonts){
 //    $this->selectFont('./fonts/Helvetica');
-    $this->selectFont(PHPGW_APP_INC . '/pdf/fonts/Helvetica');
+    $this->selectFont(PHPGW_ROOT. SEP . 'property' . '/pdf/fonts/Helvetica');
   }
   // for the current font, and the given size, what is the height of the font 
in user units
   $h = 
$this->fonts[$this->currentFont]['FontBBox'][3]-$this->fonts[$this->currentFont]['FontBBox'][1];
@@ -1944,7 +1944,7 @@
 function getFontDecender($size){
   // note that this will most likely return a negative value
   if (!$this->numFonts){
-    $this->selectFont(PHPGW_APP_INC . '/pdf/fonts/Helvetica');
+    $this->selectFont(PHPGW_ROOT. SEP . 'property' . '/pdf/fonts/Helvetica');
   }
   $h = $this->fonts[$this->currentFont]['FontBBox'][1];
   return $size*$h/1000;
@@ -2155,7 +2155,7 @@
 * add text to the document, at a specified location, size and angle on the page
 */
 function addText($x,$y,$size,$text,$angle=0,$wordSpaceAdjust=0){
-  if (!$this->numFonts){$this->selectFont(PHPGW_APP_INC . 
'/pdf/fonts/Helvetica');}
+  if (!$this->numFonts){$this->selectFont(PHPGW_ROOT. SEP . 'property' . 
'/pdf/fonts/Helvetica');}
 
   // if there are any open callbacks, then they should be called, to show the 
start of the line
   if ($this->nCallback>0){
@@ -2253,7 +2253,7 @@
   $store_currentTextState = $this->currentTextState;
 
   if (!$this->numFonts){
-    $this->selectFont(PHPGW_APP_INC . '/pdf/fonts/Helvetica');
+    $this->selectFont(PHPGW_ROOT. SEP . 'property' . '/pdf/fonts/Helvetica');
   }
 
   // converts a number or a float to a string so it can get the width
@@ -2339,7 +2339,7 @@
   // but will need to be re-set before printing, so that the chars work out 
right
   $store_currentTextState = $this->currentTextState;
 
-  if (!$this->numFonts){$this->selectFont(PHPGW_APP_INC . 
'/pdf/fonts/Helvetica');}
+  if (!$this->numFonts){$this->selectFont(PHPGW_ROOT. SEP . 'property' . 
'/pdf/fonts/Helvetica');}
   if ($width<=0){
     // error, pretend it printed ok, otherwise risking a loop
     return '';




reply via email to

[Prev in Thread] Current Thread [Next in Thread]