| 1 |
/* This is xdvipsk, an eXtended version of dvips(k) by Tomas Rokicki. |
| 2 |
|
| 3 |
Copyright (C) 2016 by VTeX Ltd (www.vtex.lt), |
| 4 |
the xdvipsk project team - Sigitas Tolusis and Arunas Povilaitis. |
| 5 |
|
| 6 |
Program original code copyright (C) 2007-2014 by Jin-Hwan Cho and |
| 7 |
Shunsaku Hirata, the dvipdfmx project team. |
| 8 |
|
| 9 |
This program is free software; you can redistribute it and/or modify |
| 10 |
it under the terms of the GNU General Public License as published by |
| 11 |
the Free Software Foundation; either version 2 of the License, or |
| 12 |
(at your option) any later version. |
| 13 |
|
| 14 |
This program is distributed in the hope that it will be useful, |
| 15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 |
GNU General Public License for more details. |
| 18 |
|
| 19 |
You should have received a copy of the GNU General Public License |
| 20 |
along with this program; if not, write to the Free Software |
| 21 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
| 22 |
*/ |
| 23 |
|
| 24 |
#ifndef _CFF_DICT_H_ |
| 25 |
#define _CFF_DICT_H_ |
| 26 |
|
| 27 |
#include "cff_types.h" |
| 28 |
#include "cff.h" |
| 29 |
|
| 30 |
#define CFF_NOMINALWIDTHX_DEFAULT 0.0 |
| 31 |
#define CFF_DEFAULTWIDTHX_DEFAULT 0.0 |
| 32 |
|
| 33 |
extern cff_dict *cff_new_dict (void); |
| 34 |
extern void cff_release_dict (cff_dict *dict); |
| 35 |
|
| 36 |
extern void cff_dict_set (cff_dict *dict, const char *key, int idx, double value); |
| 37 |
extern double cff_dict_get (cff_dict *dict, const char *key, int idx); |
| 38 |
extern void cff_dict_add (cff_dict *dict, const char *key, int count); |
| 39 |
extern void cff_dict_remove (cff_dict *dict, const char *key); |
| 40 |
extern int cff_dict_known (cff_dict *dict, const char *key); |
| 41 |
|
| 42 |
/* decode/encode DICT */ |
| 43 |
extern cff_dict *cff_dict_unpack (card8 *data, card8 *endptr); |
| 44 |
extern long cff_dict_pack (cff_dict *dict, card8 *dest, long destlen); |
| 45 |
|
| 46 |
extern void cff_dict_update (cff_dict *dict, cff_font *cff); |
| 47 |
|
| 48 |
#endif /* _CFF_DICT_H_ */ |