File: hbf.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 (76 lines) | stat: -rw-r--r-- 2,275 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
75
76
/*
 * hbf.c - a header file for hbf.c 
 * 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.
 */

#define FONTCLASS_NAME        "hbf"

#ifndef  HBF_DEFAULT_EXTENSIONS
#  define   HBF_DEFAULT_EXTENSIONS  ".hbf"
#endif

#define HBF_ENV_FONT_DIR          "VFLIB_HBF_FONTS"

struct s_hbf_char {
  int           bbx_width, bbx_height;
  int           off_x, off_y;
  int           mv_x, mv_y;
  unsigned char *bitmap;
  int           raster;
};
typedef struct s_hbf_char  *HBF_CHAR; 

struct s_hbf {
  int     charset;
  char    *path_name;
  char    *uncompress;
  int     nchars;
  int     byte2_ranges;
  int     *byte2_range_start;
  int     *byte2_range_end;
  int     n_byte2;
  int     byte2_index[256];
  int     code_ranges;
  long    *code_range_start;
  long    *code_range_end;
  char    **code_range_bitmap_file_paths;
  char    **code_range_bitmap_uncompresser;
  unsigned char ***code_range_bitmaps;
  long    *code_range_offset;
  double  point_size;
  int     pixel_size;
  int     size;
  double  dpi_x, dpi_y;
  double  slant;
  int     ascent, descent;
  int     font_bbx_width, font_bbx_height;
  int     font_bbx_xoff, font_bbx_yoff;
  SEXP_ALIST  props;
};
typedef struct s_hbf  *HBF;

Private int       HBF_Init(void);
Private int       HBF_Open(char*,SEXP);
Private void      HBF_Close(int);
Private HBF_CHAR  HBF_GetBitmap(int,long);
Private HBF_CHAR  HBF_GetHBFChar(HBF,long);
Private char     *HBF_GetProp(HBF,char*);

/*EOF*/