diff options
Diffstat (limited to 'tfm/tfm_fontdim.c')
-rw-r--r-- | tfm/tfm_fontdim.c | 39 |
1 files changed, 20 insertions, 19 deletions
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. */ |