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 / xbfe / kern.h < prev    next >
C/C++ Source or Header  |  1992-03-27  |  2KB  |  45 lines

  1. /* kern.h: declarations for manipulating the kerning table.
  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 "xt-common.h"
  23.  
  24.  
  25. /* Change the kern for the current character in FONT with the character
  26.    specified by W to be V pixels.  */
  27. extern void change_kern_callback (Widget w, XtPointer font, XtPointer v);
  28.  
  29. /* Add a kern (with initial value zero) between the current character in
  30.    FONT and the character C.  */
  31. extern void add_kern_callback (Widget w, XtPointer font, XtPointer c);
  32.  
  33. /* Make a new widget for the character CODE in the font F with value K
  34.    points and add it to the widget W.  */
  35. extern void add_kern_widget (Widget w, font_type *f, charcode_type code, real k);
  36.  
  37. /* Remove an existing kern between the current character in FONT and the
  38.    character C.  */
  39. extern void remove_kern_callback (Widget w, XtPointer font, XtPointer c);
  40.  
  41. /* Return the maximum width of a kern item.  */
  42. extern unsigned find_kern_item_width (Widget top);
  43.  
  44. #endif /* not KERN_H */
  45.