File: bdf.h

package info (click to toggle)
vflib3 3.6.14.dfsg-3+nmu3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 11,536 kB
  • ctags: 3,710
  • sloc: ansic: 35,811; sh: 10,357; asm: 3,290; makefile: 962; lisp: 123; perl: 109; awk: 43
file content (74 lines) | stat: -rw-r--r-- 1,950 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
 * bdf.h - a header fiel for bdf interface
 * by Hirotsugu Kakugawa
 *
 */
/*
 * Copyright (C) 1996-1998 Hirotsugu Kakugawa. 
 * All rights reserved.
 *
 * This file is part of the VFlib Library.  This library is free
 * software; you can redistribute it and/or modify it under the terms of
 * the GNU Library General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your
 * option) any later version.  This library is distributed in the hope
 * that it will be useful, but WITHOUT ANY WARRANTY; without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU Library General Public License for more details.
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */


#ifndef __VFLIB_BDF_H__
#define __VFLIB_BDF_H__

#define FONTCLASS_NAME            "bdf"

#ifndef  BDF_DEFAULT_EXTENSIONS
#  define   BDF_DEFAULT_EXTENSIONS  ".bdf"
#endif

#define HAVE_FONT_ASCENT
#define HAVE_FONT_DESCENT

#define BDF_ENV_FONT_DIR          "VFLIB_BDF_FONTS"



struct s_bdf_char {
  long          code_point;
  long          f_offset;
  int           bbx_width, bbx_height;
  int           off_x, off_y;
  int           mv_x, mv_y;
  unsigned char *bitmap;
  int           raster;
};
typedef struct s_bdf_char  *BDF_CHAR; 

struct s_bdf {
  int     charset;
  char    *path_name;
  char    *uncompress;
  double  point_size;
  int     pixel_size;
  int     size;
  double  dpi_x, dpi_y;
  double  slant;
  int     font_bbx_width, font_bbx_height;
  int     font_bbx_xoff, font_bbx_yoff;
  int     ascent, descent;
  int         nchars;
  BDF_CHAR    char_table;
  long       *char_table_x;
  SEXP_ALIST     props;
};
typedef struct s_bdf  *BDF;

#include "sexp.h"

#endif /*__VFLIB_BDF_H__*/

/*EOF*/