home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume19 / xfig / part01 / u_fonts.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-27  |  1.8 KB  |  58 lines

  1. /*
  2.  * FIG : Facility for Interactive Generation of figures
  3.  * Copyright (c) 1991 by Brian V. Smith
  4.  *
  5.  * "Permission to use, copy, modify, distribute, and sell this software and its
  6.  * documentation for any purpose is hereby granted without fee, provided that
  7.  * the above copyright notice appear in all copies and that both the copyright
  8.  * notice and this permission notice appear in supporting documentation. 
  9.  * No representations are made about the suitability of this software for 
  10.  * any purpose.  It is provided "as is" without express or implied warranty."
  11.  */
  12.  
  13. #define MIN_P_SIZE 6
  14. #define MAX_P_SIZE 30
  15.  
  16. #define DEF_FONTSIZE 12        /* default font size in pts */
  17. #define DEF_PS_FONT 0
  18. #define DEF_LATEX_FONT 0
  19. #define PS_FONTPANE_WD 290
  20. #define LATEX_FONTPANE_WD 112
  21. #define PS_FONTPANE_HT 20
  22. #define LATEX_FONTPANE_HT 20
  23. #define NUM_X_FONTS 27
  24. #define NUM_PS_FONTS 35
  25. #define NUM_LATEX_FONTS 6
  26.  
  27. /* element of linked list for each font
  28.    The head of list is for the different font NAMES,
  29.    and the elements of this list are for each different
  30.    point size of that font */
  31.  
  32. struct xfont {
  33.     int            size;    /* size in points */
  34.     Font        fid;    /* X font id */
  35.     char       *fname;    /* actual name of X font found */
  36.     struct flist   *list;    /* list of fonts by angle */
  37.     struct xfont   *next;    /* next in the list */
  38. };
  39.  
  40. struct flist {
  41.     int            dir;    /* direction (0=0 degrees, 1=90, 2=180, 3=270) */
  42.     XRotFontStruct *fstruct;    /* X font structure */
  43.     struct flist   *next;
  44.     };
  45.  
  46. struct _fstruct {
  47.     char       *name;    /* Postscript font name */
  48.     int            xfontnum;    /* template for locating X fonts */
  49. };
  50.  
  51. struct _xfstruct {
  52.     char       *template;    /* template for locating X fonts */
  53.     struct xfont   *xfontlist;    /* linked list of X fonts for different point
  54.                  * sizes */
  55. };
  56.  
  57. int        x_fontnum();
  58.