[comp.sources.bugs] snftobdf 1.2 to 1.3

mleisher@nmsu.edu (Mark Leisher) (11/20/90)

---- Cut Here and feed the following to sh ----
#!/bin/sh
# This is a shell archive (produced by shar 3.49)
# To extract the files from this archive, save it to a file, remove
# everything above the "!/bin/sh" line above, and type "sh file_name".
#
# made 11/20/1990 10:28 UTC by mleisher@zeste
# Source directory /tmp_mnt/home/nikita1/X11R4/contrib/fonts/snftobdf-1.3
#
# existing files will NOT be overwritten unless -c is specified
#
# This shar contains:
# length  mode       name
# ------ ---------- ------------------------------------------
#     21 -rw-rw-r-- patchlevel.h
#   6602 -rw-rw-r-- snftobdf1.2-1.3
#
# ============= patchlevel.h ==============
if test -f 'patchlevel.h' -a X"$1" != X"-c"; then
	echo 'x - skipping patchlevel.h (File already exists)'
else
echo 'x - extracting patchlevel.h (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'patchlevel.h' &&
#define patchlevel 3
SHAR_EOF
chmod 0664 patchlevel.h ||
echo 'restore of patchlevel.h failed'
Wc_c="`wc -c < 'patchlevel.h'`"
test 21 -eq "$Wc_c" ||
	echo 'patchlevel.h: original size 21, current size' "$Wc_c"
fi
# ============= snftobdf1.2-1.3 ==============
if test -f 'snftobdf1.2-1.3' -a X"$1" != X"-c"; then
	echo 'x - skipping snftobdf1.2-1.3 (File already exists)'
else
echo 'x - extracting snftobdf1.2-1.3 (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'snftobdf1.2-1.3' &&
*** snftobdf.c.ORIG	Tue Nov 20 03:03:46 1990
--- snftobdf.c	Tue Nov 20 03:06:36 1990
***************
*** 1,16 ****
X  /*
!  * Copyright (c) 1990, New Mexico State University
!  * Computing Research Lab, Mark Leisher mleisher@nmsu.edu
X   *
!  * Permission is granted to copy and distribute this file in modified
!  * or unmodified form, for noncommercial use, provided (a) this copyright
!  * notice is preserved, (b) no attempt is made to restrict redistribution
!  * of this file, and (c) this file is not distributed as part of any
!  * collection whose redistribution is restricted by a compilation copyright.
X   *
X   *
!  * 'snftobdf' was written using 'showsnf' by RWS of the X Consortium as an
!  * example.
X   */
X  
X  #include <stdio.h>
--- 1,23 ----
X  /*
!  * Copyright (C) 1990 Mark Leisher.
X   *
!  * Author: Mark Leisher (mleisher@nmsu.edu)
X   *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 1, or (at your option)
+  * any later version.
X   *
!  * This program is distributed in the hope that it will be useful,
!  * but WITHOUT ANY WARRANTY; without even the implied warranty of
!  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
!  * GNU General Public License for more details.
!  *
!  * A copy of the GNU General Public License can be obtained from this
!  * program's author (send electronic mail to mleisher@nmsu.edu) or from
!  * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA
!  * 02139, USA.
!  *
X   */
X  
X  #include <stdio.h>
*** README.ORIG	Tue Nov 20 03:04:47 1990
--- README	Tue Nov 20 03:17:28 1990
***************
*** 1,3 ****
--- 1,25 ----
+ /*
+  * Copyright (C) 1990 Mark Leisher.
+  *
+  * Author: Mark Leisher (mleisher@nmsu.edu)
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 1, or (at your option)
+  * any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  * GNU General Public License for more details.
+  *
+  * A copy of the GNU General Public License can be obtained from this
+  * program's author (send electronic mail to mleisher@nmsu.edu) or from
+  * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA
+  * 02139, USA.
+  *
+  */
+ 
X  Created:  Mon Sep 17 11:10:12 MDT 1990 M. Leisher
X  Modified: Sat Oct 13 20:21:22 MDT 1990 M. Leisher
X  /* */
***************
*** 6,13 ****
X  Modified: Thu Oct 18 18:20:08 MDT 1990 M. Leisher
X  /* Fixed include problem with stat.h & time.h for Sun OS 4.0.3
X     Added missing include path in Imakefile */
X  Modified: Tue Nov 20 03:04:42 MDT 1990 M. Leisher
! /* Fixed pixelSize calculation and added GNU copyright */
X  
X  COMPILATION
X  
--- 28,41 ----
X  Modified: Thu Oct 18 18:20:08 MDT 1990 M. Leisher
X  /* Fixed include problem with stat.h & time.h for Sun OS 4.0.3
X     Added missing include path in Imakefile */
+ Modified: Sat Nov 17 10:15:00 MDT 1990 M. Leisher
+ /* Added pointSize for correct point size value in SIZE, fixed
+    FONTBOUNDINGBOX calculation
+    Pointed out by: jjl%miata.esd.sgi.com%SGI.COM (Jim Lee) */
X  Modified: Tue Nov 20 03:04:42 MDT 1990 M. Leisher
! /* Fixed pixelSize calculation
!    Pointed out by: jjl%miata.esd.sgi.com%SGI.COM (Jim Lee)
!    Added GNU GPL copyright notice */
X  
X  COMPILATION
X  
*** output.c.ORIG	Tue Nov 20 02:59:08 1990
--- output.c	Tue Nov 20 03:01:49 1990
***************
*** 22,28 ****
X          if (!strcmp(tf->pFP[i].name, "POINT_SIZE"))
X            pointSize = tf->pFP[i].value / 10;
X          else if (!strcmp(tf->pFP[i].name, "PIXEL_SIZE"))
!           pixelSize = tf->pFP[i].name;
X          else if (!strcmp(tf->pFP[i].name, "RESOLUTION"))
X            res = tf->pFP[i].value;
X          else if (!strcmp(tf->pFP[i].name, "RESOLUTION_X"))
--- 22,28 ----
X          if (!strcmp(tf->pFP[i].name, "POINT_SIZE"))
X            pointSize = tf->pFP[i].value / 10;
X          else if (!strcmp(tf->pFP[i].name, "PIXEL_SIZE"))
!           pixelSize = tf->pFP[i].value;
X          else if (!strcmp(tf->pFP[i].name, "RESOLUTION"))
X            res = tf->pFP[i].value;
X          else if (!strcmp(tf->pFP[i].name, "RESOLUTION_X"))
***************
*** 84,91 ****
X      SetSizeAndRes(tf);
X  
X      if (pixelSize == 0)
!       pixelSize = maxBounds->metrics.rightSideBearing +
!                   maxBounds->metrics.leftSideBearing;
X      if (pointSize == 0)
X        pointSize = pixelSize;
X  
--- 84,91 ----
X      SetSizeAndRes(tf);
X  
X      if (pixelSize == 0)
!       pixelSize = maxBounds->metrics.ascent +
!                   maxBounds->metrics.descent;
X      if (pointSize == 0)
X        pointSize = pixelSize;
X  
*** snftobdf.c.ORIG	Tue Nov 20 03:03:46 1990
--- snftobdf.c	Tue Nov 20 03:06:36 1990
***************
*** 1,16 ****
X  /*
!  * Copyright (c) 1990, New Mexico State University
!  * Computing Research Lab, Mark Leisher mleisher@nmsu.edu
X   *
!  * Permission is granted to copy and distribute this file in modified
!  * or unmodified form, for noncommercial use, provided (a) this copyright
!  * notice is preserved, (b) no attempt is made to restrict redistribution
!  * of this file, and (c) this file is not distributed as part of any
!  * collection whose redistribution is restricted by a compilation copyright.
X   *
X   *
!  * 'snftobdf' was written using 'showsnf' by RWS of the X Consortium as an
!  * example.
X   */
X  
X  #include <stdio.h>
--- 1,23 ----
X  /*
!  * Copyright (C) 1990 Mark Leisher.
X   *
!  * Author: Mark Leisher (mleisher@nmsu.edu)
X   *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 1, or (at your option)
+  * any later version.
X   *
!  * This program is distributed in the hope that it will be useful,
!  * but WITHOUT ANY WARRANTY; without even the implied warranty of
!  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
!  * GNU General Public License for more details.
!  *
!  * A copy of the GNU General Public License can be obtained from this
!  * program's author (send electronic mail to mleisher@nmsu.edu) or from
!  * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA
!  * 02139, USA.
!  *
X   */
X  
X  #include <stdio.h>
SHAR_EOF
chmod 0664 snftobdf1.2-1.3 ||
echo 'restore of snftobdf1.2-1.3 failed'
Wc_c="`wc -c < 'snftobdf1.2-1.3'`"
test 6602 -eq "$Wc_c" ||
	echo 'snftobdf1.2-1.3: original size 6602, current size' "$Wc_c"
fi
exit 0
-----------------------------------------------------------------------------
mleisher@nmsu.edu                      "I laughed.
Mark Leisher                                I cried.
Computing Research Lab                          I fell down.
New Mexico State University                        It changed my life."
Las Cruces, NM                     - Rich [Cowboy Feng's Space Bar and Grille]