| 1 |
/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved. |
| 2 |
This software is licensed as OpenSource, under the Apache License, Version 2.0. |
| 3 |
This license is available at: http://opensource.org/licenses/Apache-2.0. */ |
| 4 |
|
| 5 |
/* |
| 6 |
* Dictionary data. |
| 7 |
*/ |
| 8 |
|
| 9 |
#ifndef CFFWRITE_DICT_H |
| 10 |
#define CFFWRITE_DICT_H |
| 11 |
|
| 12 |
#include "cffwrite_share.h" |
| 13 |
|
| 14 |
/* DICT data buffer */ |
| 15 |
typedef dnaDCL(char, DICT); |
| 16 |
|
| 17 |
/* Compute DICT op size */ |
| 18 |
#define DICT_OP_SIZE(op) (((op)&0xff00) ? 2 : 1) |
| 19 |
|
| 20 |
void cfwDictNew(cfwCtx g); |
| 21 |
void cfwDictReuse(cfwCtx g); |
| 22 |
void cfwDictFree(cfwCtx g); |
| 23 |
|
| 24 |
void cfwDictCopyTop(cfwCtx g, abfTopDict *dst, abfTopDict *src); |
| 25 |
void cfwDictCopyFont(cfwCtx g, abfFontDict *dst, abfFontDict *src); |
| 26 |
void cfwDictCopyPrivate(cfwCtx g, abfPrivateDict *dst, abfPrivateDict *src); |
| 27 |
|
| 28 |
void cfwDictFillTop(cfwCtx g, DICT *dst, |
| 29 |
abfTopDict *top, abfFontDict *font, long iSyntheticBase); |
| 30 |
void cfwDictFillFont(cfwCtx g, DICT *dst, abfFontDict *src); |
| 31 |
void cfwDictFillPrivate(cfwCtx g, DICT *dst, abfPrivateDict *src); |
| 32 |
|
| 33 |
void cfwDictSaveInt(DICT *dict, long i); |
| 34 |
void cfwDictSaveReal(DICT *dict, float r); |
| 35 |
void cfwDictSaveOp(DICT *dict, int op); |
| 36 |
void cfwDictSaveIntOp(DICT *dict, long i, int op); |
| 37 |
void cfwDictSaveRealOp(DICT *dict, float r, int op); |
| 38 |
|
| 39 |
#endif /* CFFWRITE_DICT_H */ |