summaryrefslogtreecommitdiff
path: root/tfm
diff options
context:
space:
mode:
Diffstat (limited to 'tfm')
-rw-r--r--tfm/ChangeLog372
-rw-r--r--tfm/GNUmakefile12
-rw-r--r--tfm/fontdimen.c39
-rw-r--r--tfm/tfm_char.c33
-rw-r--r--tfm/tfm_fontdim.c39
-rw-r--r--tfm/tfm_header.c35
-rw-r--r--tfm/tfm_input.c43
-rw-r--r--tfm/tfm_kern.c35
-rw-r--r--tfm/tfm_ligature.c33
-rw-r--r--tfm/tfm_output.c50
10 files changed, 166 insertions, 525 deletions
diff --git a/tfm/ChangeLog b/tfm/ChangeLog
index 044da8f..7a5c861 100644
--- a/tfm/ChangeLog
+++ b/tfm/ChangeLog
@@ -1,371 +1,3 @@
-Fri May 13 16:57:15 1994 Karl Berry (karl@cs.umb.edu)
+DEPRECATED - USE ROOT CHANGELOG
- * tfm_output.c (tfm_convert_pl): Add NULL to the concatn.
-
-Sun May 1 15:32:11 1994 Karl Berry (karl@cs.umb.edu)
-
- * tfm_output.c: Use concatn instead of the no-longer-existing concat5.
-
-Tue Oct 27 12:56:39 1992 Karl Berry (karl@cs.umb.edu)
-
- * Version 0.6.
-
-Mon Oct 19 08:11:44 1992 Karl Berry (karl@cs.umb.edu)
-
- * tfm_input.c (tfm_get_chars): Return the newly malloced array,
- not the static variable.
-
-Thu Sep 3 09:31:23 1992 Karl Berry (karl@hayley)
-
- * Version 0.5.
-
-Tue Jul 7 16:42:47 1992 Karl Berry (karl@hayley)
-
- * tfm_input.c (tfm_input_filename): new routine.
- (tfm_input_filename): change var name to just `tfm_input_name'.
-
-Sat Jun 13 07:55:29 1992 Karl Berry (karl@hayley)
-
- * all files: change `font_param{,eter}' to `fontdimen', globally.
-
- * tfm_fontdim.c: rename from `fontdimen.c'.
- * GNUmakefile (c_only): change here.
-
-Fri Jun 12 09:45:31 1992 Karl Berry (karl@hayley)
-
- * fontdimen.c (tfm_set_fontdimen): rename from
- `tfm_set_font_parameter', and rearrange args.
-
- * tfm_ligature.c (tfm_set_ligature): take a lig list as the
- parameter instead of a TFM char.
-
-Tue Jun 9 13:57:18 1992 Karl Berry (karl@hayley)
-
- * fontdimen.c (tfm_set_fontdimens): call `float_ok' on the
- potential fontdimen value.
-
- * fontdimen.c: new file with all the fontdimen stuff.
- * tfm_kern.c: new file with the kern stuff.
- * tfm_ligature.c: and the ligature stuff.
- * tfm_char.c: rename from tfm_util, since that's all that's left.
-
-Mon Jun 8 15:27:59 1992 Karl Berry (karl@hayley)
-
- * tfm_util.c (tfm_set_kern): take a kern list as the parameter instead
- of the whole TFM character.
-
-Sun May 31 10:56:10 1992 Karl Berry (karl@hayley)
-
- * tfm_output.c (tfm_put_char): use `epsilon_equal'.
-
-Sat May 30 14:58:33 1992 Karl Berry (karl@hayley)
-
- * tfm_output.c (tfm_convert_pl): allow for passing in the TFM name.
-
- * tfm_output.c (tfm_convert_pl): free `cmd'.
-
-Thu May 14 22:20:14 1992 Karl Berry (karl@claude.cs.umb.edu)
-
- * tfm_util.c (tfm_set_fontsize): make non-static.
-
-Wed May 13 09:16:19 1992 Karl Berry (karl@hayley)
-
- * tfm_input.c (get_tfm_header): initialize the parameter count in
- global_info here.
- (get_tfm_params): not here.
-
-Tue Apr 21 07:45:29 1992 Karl Berry (karl@hayley)
-
- * tfm_input.c (tfm_get_global_info): use XTALLOC1.
-
-Sun Mar 29 19:02:25 1992 Karl Berry (karl at hayley)
-
- * tfm_input.c (get_tfm_params): forgot arg to printf.
-
-Sat Mar 28 07:49:38 1992 Karl Berry (karl at hayley)
-
- * Version 0.4.
-
- * Change copyright years to 1992 only.
-
-Sat Mar 21 10:59:51 1992 Kathy Hargreaves (kathy at hayley)
-
- * tfm_util.c (tfm_set_design_size): set design size unconditionally.
-
- * tfm_util.c (tfm_set_design_size): added.
-
- * tfm_util.c (tfm_set_header): deleted DEFAULT_DESIGN_SIZE.
-
- * tfm_util.c (tfm_set_fontsize): made extern.
-
- * tfm_util.c [TFM_CHECK_DESIGNSIZE]: changed name from
- CHECK_DESIGNSIZE.
-
- * tfm_util.c (tfm_set_font_parameter, tfm_set_fontsize): added.
- (tfm_set_fontdimens): use tfm_set_font_parameter.
-
-Thu Mar 19 13:24:14 1992 Kathy Hargreaves (kathy at hayley)
-
- * tfm_util.c (tfm_set_header): use CHECK_DESIGN_SIZE.
- Don't range of check default design size; expect it to be valid.
-
- * tfm_util.h [CHECK_DESIGN_SIZE]: added.
-
- * tfm_util.c (tfm_set_header): took `design_size' out of
- `designsize' else clause. Added DEFAULT_DESIGN_SIZE. If either
- variable is set, then arrange to set fontsize.
- Set tfm_info's design size to DEFAULT_DESIGN_SIZE if it's not
- set by the tfm-header design-size option.
-
- * tfm_util.c (set_fontsize): changed name from set_fontsize_if_unset.
- (tfm_set_header): if -design-size tfm-header option is used, set
- the font parameter count so will change the fontsize.
-
-Wed Mar 18 12:27:44 1992 Kathy Hargreaves (kathy at hayley)
-
- * tfm_util.c (tfm_set_ligature): added.
-
- * tfm_util.c (tfm_set_header): dox fix.
-
-Mon Mar 16 12:22:42 1992 Kathy Hargreaves (kathy at hayley)
-
- * tfm_util.c (tfm_set_header): set design size correctly.
-
- * tfm_util.c (set_fontsize_if_unset): added.
- (tfm_set_header, tfm_set_fontdimens): call set_fontsize_if_unset.
-
- * tfm_util.c (tfm_set_header): added.
-
-Thu Jan 9 11:22:04 1992 Karl Berry (karl at hayley)
-
- * *.c: do not include global.h.
-
-Wed Jan 8 15:25:17 1992 Karl Berry (karl at hayley)
-
- * update copyright messages.
-
- * change `allocate to `xmalloc', `reallocate' to `xrealloc', and
- `string_copy' to `strdup'.
-
-Tue Sep 17 16:54:26 1991 Karl Berry (karl at hayley)
-
- * tfm_input.c (tfm_get_bcpl_string): append a null to the data.
-
-Tue Jul 30 13:20:02 1991 Karl Berry (karl at ra.cs.umb.edu)
-
- * Version 0.3.
-
-Tue Jul 16 17:21:19 1991 Karl Berry (karl at hayley)
-
- * tfm_util.c (tfm_get_kern): move from tfm_input.c, and take a tfm
- char as an arg, instead of using the tfm_char_table from the font.
-
-Sun Jun 16 07:47:49 1991 Karl Berry (karl at hayley)
-
- * tfm_output.c (put_lig_kern_info): output a `stop' after each
- character, since it isn't implied by a `label'.
-
- * tfm_output.c (tfm_put_global_info): don't output a checksum
- property if the checksum is zero.
-
-Sat Jun 15 09:54:19 1991 Karl Berry (karl at hayley)
-
- * tfm_input.c (tfm_get_chars, tfm_get_char): set the `code' member
- of the TFM character structure.
-
- * tfm_output.c (put_pl_lig_kern_table): rename to
- `put_lig_kern_info' and rewrite to take a single character.
- (tfm_put_char): new routine to output only one character.
- (tfm_put_chars): call `tfm_put_char'.
-
- * all files: change `checked_' to `x'.
-
-Tue Jun 11 15:17:51 1991 Karl Berry (karl at hayley)
-
- * tfm_util.c (tfm_new_chars): use XTALLOC.
-
- * tfm_input.c (tfm_get_char): new routine.
-
- * tfm_input.c (tfm_get_kern): check if the character exists before
- looking at its kern list. Also, use LIST_... macros instead of
- doing direct selection. Also, use `charcode_type' instead of
- `one_byte'.
- * tfm_util.c (tfm_set_kern): likewise.
-
- * tfm_input.c (tfm_get_global_info, tfm_get_chars): don't save and
- restore the file position.
-
- * tfm_input.c (get_tfm_char): rename to `get_char'.
-
-Thu Jun 6 07:31:49 1991 Karl Berry (karl at hayley)
-
- * All files: change to version 2 of the GPL.
-
-Thu Apr 4 05:48:15 1991 Karl Berry (karl at hayley)
-
- * tfm_util.c (tfm_new_chars): call `tfm_new_char'.
-
- * tfm_output.c (put_pl_lig_kern_table): test different characters
- as we go through the loop! How did this one get past? Ohh, now
- I see -- I was incrementing the pointer.
-
- * tfm_output.c (put_pl_lig_kern_table): test >0 instead of !=0 on
- the (unsigned) count variables.
-
-Wed Apr 3 11:43:28 1991 Karl Berry (karl at hayley)
-
- * tfm_output.c (tfm_init_global_info): initialize the number of
- parameters to zero.
-
- * tfm_output.c (put_pl_lig_kern_table): don't output a lig/kern
- program for a character that doesn't exist -- either the left or
- the right.
-
-Tue Apr 2 06:48:27 1991 Karl Berry (karl at hayley)
-
- * tfm_util.c (tfm_set_fontdimens): assign zero to all the
- intervening fontdimens when we set the fontsize; reset the
- parameter count.
-
- * tfm_output.c (tfm_put_global_info): output the number of
- parameters we have, instead of trying to find the last nonzero
- one.
-
- * tfm_output.c (put_string_prop): don't output a space if there is
- no value to the string property.
-
-Sun Mar 10 13:12:51 1991 Karl Berry (karl at hayley)
-
- * tfm_input.c (get_tfm_params): save the number of parameters we
- read.
-
- * tfm_output.c (tfm_put_global_info): output as many parameters as
- we have, instead of just the first six.
- * tfm_input.c (get_tfm_params): likewise, for reading.
-
- * tfm_output.c (tfm_init_global_info): new routine.
-
-Sat Mar 9 17:23:42 1991 Karl Berry (karl at hayley)
-
- * tfm_util.c (tfm_set_fontdimens): new routine.
-
-Thu Mar 7 07:33:33 1991 Karl Berry (karl at hayley)
-
- * Version 0.2.
-
-Tue Mar 5 15:34:26 1991 Karl Berry (karl at hayley)
-
- * tfm_output.c (tfm_convert_pl): use output redirection instead of
- -v to make tftopl be quiet.
-
-Mon Feb 25 15:42:09 1991 Karl Berry (karl at hayley)
-
- * tfm_output.c (tfm_convert_pl): take a new parameter which says
- whether to operate silently.
-
- * tfm_output.c (INDENT_INCR): define as 2.
-
- * tfm_input.c (tfm_open_filename): give an error if the caller
- tries to open more than one file.
-
- * tfm_{input,output,util}.c: rename external routines to start with
- `tfm'; change error messages, etc.
-
-Sun Feb 17 09:51:50 1991 Karl Berry (karl at hayley)
-
- * *.c: include config.h.
-
-Sun Dec 9 15:08:57 1990 Karl Berry (karl at hayley)
-
- * tfm_input.c, tfm_output.c: doc fix.
-
-Sat Nov 17 12:54:02 1990 Karl Berry (karl at hayley)
-
- * tfm_input.c, tfm_output.c: include appropriate file-...h files.
-
-Thu Aug 30 16:29:51 1990 Karl Berry (karl at hayley)
-
- * tfm_input.c (tfm_get_byte, ...): pass the input filename, and
- rewrite as macros.
-
-Tue Jul 24 11:09:46 1990 Karl Berry (karl at hayley)
-
- * tfm_output.c: include filename.h.
-
-Fri Jul 13 16:48:56 1990 Karl Berry (karl at hayley)
-
- * tfm_input.c (get_tfm_chars): declare `this_char' as unsigned,
- not one_byte, since it might have to become 256.
-
-Wed Jul 4 08:39:28 1990 Karl Berry (karl at hayley)
-
- * tfm_output.c (put_tfm_chars): look at the `exists' member of the
- character structure, instead of checking for the width being zero.
-
-Wed Jun 20 07:32:49 1990 Karl Berry (karl at hayley)
-
- * tfm_input.c (tfm_cur_pos): rename to tfm_ftell, and use
- checked_ftell.
- (tfm_set_pos): rename to tfm_fseek.
-
-Fri Jun 1 15:36:38 1990 Karl Berry (karl at hayley)
-
- * tfm_input.c (close_tfm_input_file): use checked_fclose.
- * tfm_output.c (close_pl_output_file): likewise.
-
-Wed May 30 16:21:43 1990 Karl Berry (karl at hayley)
-
- * tfm_input.c (get_tfm_char): set the `exists' member of the
- character structure.
- * tfm_util.c (new_tfm_char): initialize the `exists' member.
-
-Thu Apr 12 14:58:24 1990 Karl Berry (karl at hayley)
-
- * tfm_input.c (get_interword_space): rename to
- `tfm_get_interword_space'.
-
-Mon Apr 9 12:10:26 1990 Karl Berry (karl at hayley)
-
- * (all files): upcase macro names.
-
-Sun Apr 8 11:42:53 1990 Karl Berry (karl at hayley)
-
- * tfm_input.c (get_tfm_global_info): if we've already read the
- global info, just return the structure, instead of reading it
- again.
-
-Fri Feb 23 08:43:02 1990 Karl Berry (karl at hayley)
-
- * tfm_input.c (get_tfm_char): remember the dimensions in their
- original fix_word units, as well as in points.
-
-Wed Feb 7 17:22:27 1990 Karl Berry (karl at hayley)
-
- * tfm_input.c (tfm_get_design_size): new routine.
- (tfm_get_coding_scheme): rename `get_coding_scheme'.
-
-Sun Jan 28 14:48:35 1990 Karl Berry (karl at hayley)
-
- * tfm_util.c (set_kern): move this routine from tfm_input.c.
-
- * tfm_output.c (change_pl_to_tfm): check that pl_output_filename
- is non-NULL.
-
-Fri Dec 22 17:33:30 1989 Karl Berry (karl at hayley)
-
- * tfm_input.c (tfm_get_x_height): new routine.
-
-Mon Oct 30 12:37:02 1989 Karl Berry (karl at hayley)
-
- * all files: add the copyleft.
-
- * tfm_util.c: define new_tfm_chars.
-
- * tfm_output.c (put_tfm_global_info): take a structure as input,
- not a pointer.
- (new_tfm_char): move to tfm_util.c.
-
-Sun Oct 29 08:13:05 1989 Karl Berry (karl at hayley)
-
- * tfm_output.c (put_pl_file): remove this, and add put_tfm_chars
- and put_tfm_global_info in its place.
+For historical purposes you can view ChangeLog.old.
diff --git a/tfm/GNUmakefile b/tfm/GNUmakefile
index 950a5fc..e5b392c 100644
--- a/tfm/GNUmakefile
+++ b/tfm/GNUmakefile
@@ -2,10 +2,10 @@
#
# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
#
-# This program is free software; you can redistribute it and/or modify
+# 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 3, or (at your option)
-# any later version.
+# the Free Software Foundation, either version 3 of the License, 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
@@ -13,9 +13,9 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-#
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
library = tfm
c_only = tfm_char tfm_fontdim tfm_header tfm_input tfm_kern tfm_ligature \
diff --git a/tfm/fontdimen.c b/tfm/fontdimen.c
index 2e8f636..61067d3 100644
--- a/tfm/fontdimen.c
+++ b/tfm/fontdimen.c
@@ -1,20 +1,21 @@
-/* fontdimen.c: handle TFM fontdimens a.k.a. font parameters.
+# fontdimen.c: handle TFM fontdimens a.k.a. font parameters.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# 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 3 of the License, 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-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 3, 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.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
@@ -66,7 +67,7 @@ static font_param_type font_param[] = {
{ "fontsize", TFM_FONTSIZE_PARAMETER },
{ "version", TFM_VERSION_PARAMETER },
};
-
+
/* Set the font parameter entries in TFM_INFO according to the string S.
If S is non-null and non-empty, it should look like
<fontdimen>:<real>,<fontdimen>:<real>,..., where each <fontdimen> is
@@ -129,7 +130,7 @@ tfm_set_fontdimens (string s, tfm_global_info_type *tfm_info)
assert (param_number <= TFM_FONT_PARAMETER_COUNT (*tfm_info));
}
}
-
+
/* Return zero if we do not recognize S as the name of a fontdimen, else
its corresponding number. We just do a linear search through the
structure, since it's so small. */
@@ -148,7 +149,7 @@ tfm_fontdimen_number (string s)
return param_number;
}
-
+
/* Set the PARAMETER-th font parameter of TFM_INFO to VALUE. If
PARAMETER is beyond the current last parameter of TFM_INFO, set
all the intervening parameters to zero. */
diff --git a/tfm/tfm_char.c b/tfm/tfm_char.c
index 5c0442d..413b096 100644
--- a/tfm/tfm_char.c
+++ b/tfm/tfm_char.c
@@ -1,20 +1,21 @@
-/* tfm_util.c: routines independent of reading or writing a particular font.
+# tfm_util.c: routines independent of reading or writing a particular font.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# 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 3 of the License, 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-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 3, 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.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
diff --git a/tfm/tfm_fontdim.c b/tfm/tfm_fontdim.c
index 36c385d..3837357 100644
--- a/tfm/tfm_fontdim.c
+++ b/tfm/tfm_fontdim.c
@@ -1,20 +1,21 @@
-/* fontdimen.c: handle TFM fontdimens a.k.a. font parameters.
+# fontdimen.c: handle TFM fontdimens a.k.a. font parameters.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# 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 3 of the License, 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-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 3, 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.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
@@ -70,7 +71,7 @@ static fontdimen_type fontdimen[] = {
/* How many entries we have in the `fontdimen' array. */
static unsigned fontdimen_array_size
= sizeof (fontdimen) / sizeof (fontdimen_type);
-
+
/* Set the font parameter entries in TFM_INFO according to the string S.
If S is non-null and non-empty, it should look like
<fontdimen>:<real>,<fontdimen>:<real>,..., where each <fontdimen> is
@@ -124,7 +125,7 @@ tfm_set_fontdimens (string s, tfm_global_info_type *tfm_info)
tfm_set_fontdimen (tfm_info, param_number, value);
}
}
-
+
/* Return zero if we do not recognize S as the name of a fontdimen, else
its corresponding number. We just do a linear search through the
structure, since it's so small. */
@@ -159,7 +160,7 @@ tfm_fontdimen_name (unsigned n)
return name;
}
-
+
/* Set the PARAMETER-th font parameter of TFM_INFO to VALUE. If
PARAMETER is beyond the current last parameter of TFM_INFO, set
all the intervening parameters to zero. */
diff --git a/tfm/tfm_header.c b/tfm/tfm_header.c
index ed6dc47..df8c2d6 100644
--- a/tfm/tfm_header.c
+++ b/tfm/tfm_header.c
@@ -1,20 +1,21 @@
-/* tfm_header.c: deal with the TFM header bytes.
+# tfm_header.c: deal with the TFM header bytes.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# 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 3 of the License, 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-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 3, 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.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
@@ -80,7 +81,7 @@ truncated to %d", value_string, length, TFM_MAX_CODINGSCHEME_LENGTH);
}
}
}
-
+
/* Set the design and font size of TFM_INFO to DESIGN_SIZE. */
void
diff --git a/tfm/tfm_input.c b/tfm/tfm_input.c
index 8108853..ce4e9ac 100644
--- a/tfm/tfm_input.c
+++ b/tfm/tfm_input.c
@@ -1,20 +1,21 @@
-/* tfm_input.c: read a TFM file.
+# tfm_input.c: read a TFM file.
+#
+# Copyright (C) 1992, 2004, 2011 Free Software Foundation, Inc.
+#
+# 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 3 of the License, 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2004, 2011 Free Software Foundation, Inc.
-
-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 3, 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.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
@@ -74,7 +75,7 @@ static void get_lig_kern_program (list_type *, list_type *);
static real tfm_get_scaled_fix (void);
static void get_tfm_header (void);
static void get_tfm_params (void);
-
+
/* Routines to start and finish reading a file. (For the user to call.) */
boolean
@@ -115,7 +116,7 @@ tfm_input_filename ()
return tfm_input_name;
}
-
+
/* Some of the global information comes from the beginning of the file,
and some from the end. If we've already read the information from
the file, we don't do it again. */
@@ -287,7 +288,7 @@ get_tfm_params ()
TFM_FONTDIMEN (*global_info, this_param));
}
}
-
+
/* Read every character in the TFM file, storing the result in the
static `tfm_char_table'. We return a copy of that variable. */
@@ -417,7 +418,7 @@ get_char ()
/* We don't handle the other tags. */
return tfm_char;
}
-
+
/* Read a ligature/kern program at the current position, storing the
result into *LIGATURE and *KERN. We don't distinguish all the kinds
of ligatures that Metafont can output. */
@@ -475,7 +476,7 @@ get_lig_kern_program (list_type *ligature, list_type *kern)
}
} while (!end_of_program);
}
-
+
/* Most quantities are fixed-point fractions. */
static real
diff --git a/tfm/tfm_kern.c b/tfm/tfm_kern.c
index c693b4b..3de2ac0 100644
--- a/tfm/tfm_kern.c
+++ b/tfm/tfm_kern.c
@@ -1,20 +1,21 @@
-/* tfm_kern.c: deal with TFM kern lists.
+# tfm_kern.c: deal with TFM kern lists.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# 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 3 of the License, 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-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 3, 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.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
@@ -48,7 +49,7 @@ tfm_set_kern (list_type *kern_table, charcode_type right, real k)
new_kern->character = right;
new_kern->kern = k;
}
-
+
/* Find the kern between the characters LEFT and RIGHT. (Return zero if
none such.) */
diff --git a/tfm/tfm_ligature.c b/tfm/tfm_ligature.c
index ff3533e..d6a0014 100644
--- a/tfm/tfm_ligature.c
+++ b/tfm/tfm_ligature.c
@@ -1,20 +1,21 @@
-/* tfm_ligature.c: deal with TFM ligature lists.
+# tfm_ligature.c: deal with TFM ligature lists.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# 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 3 of the License, 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-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 3, 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.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
diff --git a/tfm/tfm_output.c b/tfm/tfm_output.c
index 0fa3eb1..b8e5b17 100644
--- a/tfm/tfm_output.c
+++ b/tfm/tfm_output.c
@@ -1,23 +1,25 @@
-/* tfm_output.c: write property list files (a human-readable equivalent
- of TFM files), and convert them to TFM format. PL format is
- described in the source code to the TeX utility PLtoTF, by Donald
- Knuth.
-
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-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 3, 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.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+# tfm_output.c: write property list files
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# 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 3 of the License, 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+# (a human-readable equivalent
+# of TFM files), and convert them to TFM format. PL format is
+# described in the source code to the TeX utility PLtoTF, by Donald
+# Knuth.
#include "config.h"
#include "concatn.h"
@@ -53,7 +55,7 @@ static void put_indentation (void);
static void put_lig_prop (tfm_ligature_type *);
static void put_kern_prop (tfm_kern_type *);
-
+
/* Routines to start and finish reading a file. (For the user to call.) */
boolean
@@ -118,7 +120,7 @@ tfm_convert_pl (string tfm_name, boolean verbose)
if (verbose && status != 0)
printf ("Exit status = %d.\n", status);
}
-
+
/* Return an initialized structure. */
tfm_global_info_type
@@ -220,7 +222,7 @@ tfm_put_char (tfm_char_type c)
put_lig_kern_info (c);
}
-
+
/* Output any ligature/kern information in the tfm character C. */
static void
@@ -268,7 +270,7 @@ put_lig_kern_info (tfm_char_type c)
finish_prop_list ();
}
}
-
+
/* It makes the output more readable to make the property lists
indented. */