new idraw format 13 supports executable fonts

[email protected] Thu, 7 Nov 2002 10:43:31 -0800
Newsgroups gmane.comp.lib.ivtools.patches
Message-ID <a04320409b9f064ab2c12@[12.236.206.76]>
Patch:    ivtools-021102-johnston-072
For:      ivtools-1.0.6
Author:   [email protected]
Subject:  new idraw format 13 supports executable fonts
Requires:

This is an intermediate patch to ivtools-1.0.6.  To apply, cd to the
top-level directory of the ivtools source tree (the directory with src
and config subdirs), and apply like this:

         patch -p0 <ThisFile

Summary of Changes:

- a new version number 13 for the idraw format adds support for
executable fonts (as opposed to static fonts).  Required by recent
versions of RedHat Linux.

Index: include_components/psformat.h
diff -c include_components/psformat.h:1.1 include_components/psformat.h:1.2
*** include_components/psformat.h:1.1   Fri Sep 13 09:53:03 2002
--- src/include/Unidraw/Components/psformat.h   Sat Nov  2 14:28:04 2002
***************
*** 31,38 ****

   #include <Unidraw/enter-scope.h>

! static const float PSV_CAPJOINSTYLE  = 13; // support for capstyle/joinstyle
                                              // (probably won't be 
backward compatible)
   static const float PSV_FLOATWIDTH    = 12; // floating point line width
                                              // (not backward 
compatible if utilized)
   static const float PSV_CLOSEPATH     = 11; // addition of 
"closepath" to ellipse
--- 31,39 ----

   #include <Unidraw/enter-scope.h>

! static const float PSV_CAPJOINSTYLE  = 14; // support for capstyle/joinstyle
                                              // (probably won't be 
backward compatible)
+ static const float PSV_LOADFONT      = 13; // support for executable fonts
   static const float PSV_FLOATWIDTH    = 12; // floating point line width
                                              // (not backward 
compatible if utilized)
   static const float PSV_CLOSEPATH     = 11; // addition of 
"closepath" to ellipse
***************
*** 58,63 ****
   static const float PSV_FGCOLOR       =  2; // added foreground color
   static const float PSV_ORIGINAL      =  1; // original format

! #define PSV_LATEST PSV_FLOATWIDTH

   #endif
--- 59,64 ----
   static const float PSV_FGCOLOR       =  2; // added foreground color
   static const float PSV_ORIGINAL      =  1; // original format

! #define PSV_LATEST PSV_LOADFONT

   #endif
Index: Unidraw/psview.c
diff -c Unidraw/psview.c:1.1 Unidraw/psview.c:1.2
*** Unidraw/psview.c:1.1        Fri Sep 13 09:50:55 2002
--- src/Unidraw/psview.c        Sat Nov  2 14:27:38 2002
***************
*** 571,577 ****
       out << "gsave\n";
       out << "fgred fggreen fgblue setrgbcolor\n";
       out << "/fontDict printFont printSize scalefont dup setfont def\n";
!     out << "/descender fontDict begin 0 [FontBBox] 1 get FontMatrix end\n";
       out << "transform exch pop def\n";
       out << "/vertoffset 1 printSize sub descender sub def {\n";
       out << "0 vertoffset moveto show\n";
--- 571,577 ----
       out << "gsave\n";
       out << "fgred fggreen fgblue setrgbcolor\n";
       out << "/fontDict printFont printSize scalefont dup setfont def\n";
!     out << "/descender fontDict begin 0 /FontBBox load 1 get 
FontMatrix end\n";
       out << "transform exch pop def\n";
       out << "/vertoffset 1 printSize sub descender sub def {\n";
       out << "0 vertoffset moveto show\n";
*** /dev/null    Sat Nov 2 14:28:22 PST 2002
--- patches/ivtools-021102-johnston-072
*************** patches/ivtools-021102-johnston-072
*** 0 ****
--- 1 ----
+ ivtools-021102-johnston-072


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en