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 / bzrto / char.h < prev    next >
C/C++ Source or Header  |  1992-10-19  |  2KB  |  59 lines

  1. /* char.h: declarations for handling TFM and BZR characters simultaneously.
  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 CHAR_H
  20. #define CHAR_H
  21.  
  22. #include "bzr.h"
  23. #include "input-ccc.h"
  24.  
  25. typedef enum { bzr_char_class, ccc_char_class } char_class_type;
  26.  
  27. typedef struct
  28. {
  29.   char_class_type tag;
  30.   union
  31.   {
  32.     bzr_char_type *bzr_char;
  33.     ccc_type *ccc_char;
  34.   } u;
  35. } char_type;
  36.  
  37. #define CHAR_CLASS(c) ((c).tag)
  38. #define CHAR_BZR(c) ((c).u.bzr_char)
  39. #define CHAR_CCC(c) ((c).u.ccc_char)
  40.  
  41.  
  42. /* See char.c.  */
  43. extern real oblique_angle;
  44.  
  45. /* Slant all splines in the list by `oblique_angle'.  */
  46. extern spline_list_array_type oblique_splines (spline_list_array_type);
  47.  
  48.  
  49. /* Return an array of which characters are needed by CCC_CHARS (between
  50.    START and END) as subroutines, and how many we found in SUBR_COUNT.  */
  51. extern char_type **subr_chars (bzr_char_type *[], ccc_type *ccc_chars[],
  52.                                charcode_type start, charcode_type end,
  53.                                unsigned *subr_count);
  54.  
  55. /* Scale a character by SCALE_FACTOR.  */
  56. extern void scale_char (bzr_char_type *, real scale_factor);
  57.  
  58. #endif /* not CHAR_H */
  59.