home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / fontutils-0.6-base.tgz / fontutils-0.6-base.tar / fsf / fontutils / charspace / kern.h < prev    next >
C/C++ Source or Header  |  1992-06-12  |  1KB  |  42 lines

  1. /* kern.h: handle kerns in the CMI file.
  2.  
  3. Copyright (C) 1992 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. #ifndef KERN_H
  20. #define KERN_H
  21.  
  22. #include "symtab.h"
  23. #include "types.h"
  24.  
  25. /* The kern list.  This differs from `tfm_kern_type' in that it
  26.    uses character names instead of (integer) codes, and uses
  27.    `symval_type' for the value.  Thus, the user can symbolically define
  28.    kerns in the same way as sidebearings.  */
  29.  
  30. typedef struct
  31. {
  32.   string character;
  33.   symval_type kern;
  34. } char_kern_type;
  35.  
  36.  
  37. /* Make the kern for the character named RIGHT in the list of
  38.    `char_kern_type's KERN_LIST be K, replacing any kern already present.  */
  39. extern void char_set_kern (list_type *kern_list, string right, symval_type k);
  40.  
  41. #endif /* not KERN_H */
  42.