summaryrefslogtreecommitdiff
path: root/charspace/char.c
diff options
context:
space:
mode:
Diffstat (limited to 'charspace/char.c')
-rw-r--r--charspace/char.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/charspace/char.c b/charspace/char.c
index 0d53a54..0130f6a 100644
--- a/charspace/char.c
+++ b/charspace/char.c
@@ -1,20 +1,20 @@
-/* char.c: functions to muck with `char_type's.
-
-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. */
+# char.c: functions to muck with `char_type's.
+#
+# 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/>.
+#
#include "config.h"
@@ -34,7 +34,7 @@ static void update_sidebearings (char_type *, char_info_type *,
tfm_char_type *);
static char_type *update_via_name (string, char_info_type *, tfm_char_type *);
static void update_width (char_type *, char_info_type *, tfm_char_type *);
-
+
/* Initialize the parts of the character structure. */
char_type
@@ -50,7 +50,7 @@ init_char ()
return c;
}
-
+
/* Our goal here is to extract the information about the character CODE
from the symbol table, and fill in the information from the bitmap
and TFM fonts. We also read ligature information from the encoding
@@ -131,7 +131,7 @@ do_char (charcode_type code, char_type **c_ptr_addr)
return;
}
-
+
/* Assume that CHAR_NAME exists in the encoding vector. If looking up
CHAR_NAME in the symbol table yields a character, return a pointer to
the `char_type' in the symbol table with updated side bearing
@@ -185,7 +185,7 @@ update_via_name (string char_name, char_info_type *bitmap_char,
return c_ptr;
}
-
+
/* Update the set width and sidebearings for a character defined with
`char-width'. We take the RSB info in C_PTR to be the desired set
width and the LSB to be the percentage of whitespace to make the left
@@ -277,7 +277,7 @@ update_sidebearings (char_type *c_ptr, char_info_type *bitmap_char,
update_metrics (real_width, lsb, bitmap_char, tfm_char);
}
}
-
+
/* Following routines are called by both `update_sidebearings' and
`update_width'. */
@@ -332,7 +332,7 @@ update_metrics (real real_width, real lsb, char_info_type *bitmap_char,
CHAR_MIN_COL (*bitmap_char) = lsb;
CHAR_MAX_COL (*bitmap_char) = lsb + CHAR_BITMAP_WIDTH (*bitmap_char);
}
-
+
/* Update the kern list in TFM_CHAR from any kerns in *C_PTR. */
static void
@@ -368,7 +368,7 @@ update_kerns (char_type *c_ptr, tfm_char_type *tfm_char)
}
}
}
-
+
/* We need to do this several times, so... Have to use the global
`dpi-real'. */