src/bdf.h

/* [<][>]
[^][v][top][bottom][index][help] */

FUNCTIONS

This source file includes following functions.

   1 /*
   2  * bdf.h - a header fiel for bdf interface
   3  * by Hirotsugu Kakugawa
   4  *
   5  */
   6 /*
   7  * Copyright (C) 1996-1998 Hirotsugu Kakugawa. 
   8  * All rights reserved.
   9  *
  10  * This file is part of the VFlib Library.  This library is free
  11  * software; you can redistribute it and/or modify it under the terms of
  12  * the GNU Library General Public License as published by the Free
  13  * Software Foundation; either version 2 of the License, or (at your
  14  * option) any later version.  This library is distributed in the hope
  15  * that it will be useful, but WITHOUT ANY WARRANTY; without even the
  16  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  17  * PURPOSE.  See the GNU Library General Public License for more details.
  18  * You should have received a copy of the GNU Library General Public
  19  * License along with this library; if not, write to the Free Software
  20  * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  21  */
  22 
  23 
  24 #ifndef __VFLIB_BDF_H__
  25 #define __VFLIB_BDF_H__
  26 
  27 #define FONTCLASS_NAME            "bdf"
  28 
  29 #ifndef  BDF_DEFAULT_EXTENSIONS
  30 #  define   BDF_DEFAULT_EXTENSIONS  ".bdf"
  31 #endif
  32 
  33 #define HAVE_FONT_ASCENT
  34 #define HAVE_FONT_DESCENT
  35 
  36 #define BDF_ENV_FONT_DIR          "VFLIB_BDF_FONTS"
  37 
  38 
  39 
  40 struct s_bdf_char {
  41   long          code_point;
  42   long          f_offset;
  43   int           bbx_width, bbx_height;
  44   int           off_x, off_y;
  45   int           mv_x, mv_y;
  46   unsigned char *bitmap;
  47   int           raster;
  48 };
  49 typedef struct s_bdf_char  *BDF_CHAR; 
  50 
  51 struct s_bdf {
  52   int     charset;
  53   char    *path_name;
  54   char    *uncompress;
  55   double  point_size;
  56   int     pixel_size;
  57   int     size;
  58   double  dpi_x, dpi_y;
  59   double  slant;
  60   int     font_bbx_width, font_bbx_height;
  61   int     font_bbx_xoff, font_bbx_yoff;
  62   int     ascent, descent;
  63   int         nchars;
  64   BDF_CHAR    char_table;
  65   long       *char_table_x;
  66   SEXP_ALIST     props;
  67 };
  68 typedef struct s_bdf  *BDF;
  69 
  70 #include "sexp.h"
  71 
  72 #endif /*__VFLIB_BDF_H__*/
  73 
  74 /*EOF*/

/* [<][>][^][v][top][bottom][index][help] */