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