src/mojikmap.h
/* [<][>][^][v][top][bottom][index][help] */
FUNCTIONS
This source file includes following functions.
1 /*
2 * mojikmap.h - a header file for drv_mojikmap.c
3 * by Hirotsugu Kakugawa
4 *
5 */
6 /*
7 * Copyright (C) 1999 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 #define FONTCLASS_NAME_MOJIKMAP "mojikyo-mapper"
24
25 #define VF_CAPE_SUBFONT_NAME "subfont-name-format"
26 #define VF_CAPE_DIV_SCHEME "division-scheme"
27 #define VF_CAPE_TTF_SUBFONT_ENC "truetype-subfont-encoding"
28
29 #define TYPE1_NSUBS 24
30
31 #define DIVISION_SCHEME_TTF 0
32 #define DIVISION_SCHEME_TYPE1 1
33 #define DEFAULT_DIVISION_SCHEME DIVISION_SCHEME_TTF
34
35 #define DEFAULT_SUBFONT_NAME_TTF "Mojik%d.ttf"
36 #define DEFAULT_SUBFONT_NAME_TYPE1 "mo%dm%02d.pfb"
37
38 #if (DEFAULT_DIVISION_SCHEME == DIVISION_SCHEME_TTF)
39 # define DEFAULT_SUBFONT_NAME DEFAULT_SUBFONT_NAME_TTF
40 #elif (DEFAULT_DIVISION_SCHEME == DIVISION_SCHEME_TYPE1)
41 # define DEFAULT_SUBFONT_NAME DEFAULT_SUBFONT_NAME_TYPE1
42 #endif
43
44 #define TTF_SUBFONT_ENC_UNICODE 0
45 #define TTF_SUBFONT_ENC_JIS 1
46 #define DEFAULT_TTF_SUBFONT_ENC TTF_SUBFONT_ENC_UNICODE
47
48 /*EOF*/