~ubuntu-branches/ubuntu/hardy/ghostscript/hardy

« back to all changes in this revision

Viewing changes to src/gsfcid2.c

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2007-11-22 12:17:43 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122121743-cd70s3ypq0r243mp
Tags: 8.61.dfsg.1-0ubtuntu1
* New upstream release
  o Final 8.61 release
* debian/patches/09_ijs_krgb_support.dpatch: Adapted to upstream changes.
* debian/rules: Updated CUPS-related variables for "make install" calls.
* debian/rules: Remove /usr/include/ghostscript from the ghostscript
  package, they go into lings-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: gsfcid2.c 8022 2007-06-05 22:23:38Z giles $ */
 
14
/* $Id: gsfcid2.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* Create a CIDFontType 2 font from a Type 42 font. */
16
16
#include "memory_.h"
17
17
#include "gx.h"
26
26
/*
27
27
 * Create a Type 2 CIDFont from a Type 42 font.
28
28
 */
29
 
private int
 
29
static int
30
30
identity_CIDMap_proc(gs_font_cid2 *pfont, gs_glyph glyph)
31
31
{
32
32
    ulong cid = glyph - gs_min_cid_glyph;
87
87
  cmap_tt_16bit_format4_enum_ptrs, cmap_tt_16bit_format4_reloc_ptrs,
88
88
  st_cmap, font);
89
89
 
90
 
private int
 
90
static int
91
91
tt_16bit_format4_decode_next(const gs_cmap_t * pcmap_in,
92
92
                       const gs_const_string * pstr,
93
93
                       uint * pindex, uint * pfidx,
139
139
    *pfidx = 0;
140
140
    return 0;
141
141
}
142
 
private int
 
142
static int
143
143
tt_16bit_format4_next_range(gs_cmap_ranges_enum_t *penum)
144
144
{
145
145
    /* There is just a single 2-byte range. */
152
152
    }
153
153
    return 1;
154
154
}
155
 
private const gs_cmap_ranges_enum_procs_t tt_16bit_format4_range_procs = {
 
155
static const gs_cmap_ranges_enum_procs_t tt_16bit_format4_range_procs = {
156
156
    tt_16bit_format4_next_range
157
157
};
158
 
private void
 
158
static void
159
159
tt_16bit_format4_enum_ranges(const gs_cmap_t *pcmap,
160
160
                             gs_cmap_ranges_enum_t *pre)
161
161
{
162
162
    gs_cmap_ranges_enum_setup(pre, pcmap, &tt_16bit_format4_range_procs);
163
163
}
164
 
private int
 
164
static int
165
165
tt_16bit_format4_next_lookup(gs_cmap_lookups_enum_t *penum)
166
166
{
167
167
    if (penum->index[0] == 0) {
175
175
    }
176
176
    return 1;
177
177
}
178
 
private int
 
178
static int
179
179
tt_16bit_format4_next_entry(gs_cmap_lookups_enum_t *penum)
180
180
{
181
181
    /* index[1] is segment # << 17 + first code. */
228
228
    penum->index[1] = (segment2 << 16) + next;
229
229
    return 0;
230
230
}
231
 
private const gs_cmap_lookups_enum_procs_t tt_16bit_format4_lookup_procs = {
 
231
static const gs_cmap_lookups_enum_procs_t tt_16bit_format4_lookup_procs = {
232
232
    tt_16bit_format4_next_lookup, tt_16bit_format4_next_entry
233
233
};
234
 
private void
 
234
static void
235
235
tt_16bit_format4_enum_lookups(const gs_cmap_t *pcmap, int which,
236
236
                        gs_cmap_lookups_enum_t *pre)
237
237
{
240
240
                                &tt_16bit_format4_lookup_procs));
241
241
}
242
242
 
243
 
private const gs_cmap_procs_t tt_16bit_format4_procs = {
 
243
static const gs_cmap_procs_t tt_16bit_format4_procs = {
244
244
    tt_16bit_format4_decode_next,
245
245
    tt_16bit_format4_enum_ranges,
246
246
    tt_16bit_format4_enum_lookups,