src/jg.h

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

FUNCTIONS

This source file includes following functions.

   1 /*
   2  * jg.h - a header file for JG font driver in drv_zeit.c 
   3  * by Hirotsugu Kakugawa
   4  */
   5 /*
   6  * Copyright (C) 1996-1998  Hirotsugu Kakugawa. 
   7  * All rights reserved.
   8  *
   9  * This file is part of the VFlib Library.  This library is free
  10  * software; you can redistribute it and/or modify it under the terms of
  11  * the GNU Library General Public License as published by the Free
  12  * Software Foundation; either version 2 of the License, or (at your
  13  * option) any later version.  This library is distributed in the hope
  14  * that it will be useful, but WITHOUT ANY WARRANTY; without even the
  15  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  16  * PURPOSE.  See the GNU Library General Public License for more details.
  17  * You should have received a copy of the GNU Library General Public
  18  * License along with this library; if not, write to the Free Software
  19  * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  20  */
  21 
  22 #ifndef __VFLIB_JG_H__
  23 #define __VFLIB_JG_H__
  24 
  25 #define FONTCLASS_NAME       "jg"
  26 
  27 #ifndef  DEFAULT_EXTENSIONS
  28 #  define   DEFAULT_EXTENSIONS  ".fn, .FN"
  29 #endif
  30 
  31 #define JG_ENV_FONT_DIR      "VFLIB_JG_FONTS"
  32 
  33 
  34 struct s_jg_header {
  35   char    *font_path;
  36   int     nchars;
  37   long    *ol_offset;
  38   long    *ol_size;
  39   int     base;
  40 };
  41 typedef struct s_jg_header *JG_HEADER;
  42 
  43 struct s_jg {
  44   int     nfiles;
  45   struct s_jg_header  **headers;
  46 };
  47 typedef struct s_jg  *JG;
  48 
  49 
  50 #define JG_MAX_VALUE         0x0fff
  51 #define JG_MAX_XY            0x07ff
  52 #define JG_XY_MASK           0x07ff
  53 #define JG_CMD_MASK          0x0800
  54 
  55 #define JG_CODE_SIZE0        0x0582
  56 #define JG_CODE_SIZE1        0x0bc0
  57 #define JG_CODE_SIZE2        0x0d96
  58 /*#define JG_CODE_SIZE2      0x0d3d*/
  59 #define THRESHOLD_SIZE       0x1000
  60 #define EMPTY_PTR            0xffffffffL
  61 
  62 #define   DEFAULT_TO_REF_PT_H  0.86
  63 #define   DEFAULT_TO_REF_PT_V  -0.5
  64 
  65 
  66 Private int         JG_Init(void);
  67 Private int         JG_Open(char*);
  68 Private void        JG_Close(int);
  69 Private VF_OUTLINE  JG_ReadOutline(int,int,double,double);
  70 
  71 #endif /*__VFLIB_JG_H__*/
  72 
  73 /*EOF*/

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