4 |
/* */ |
/* */ |
5 |
/* CFF character mapping table (cmap) support (body). */ |
/* CFF character mapping table (cmap) support (body). */ |
6 |
/* */ |
/* */ |
7 |
/* Copyright 2002, 2003, 2004 by */ |
/* Copyright 2002, 2003, 2004, 2005 by */ |
8 |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 |
/* */ |
/* */ |
10 |
/* This file is part of the FreeType project, and may only be used, */ |
/* This file is part of the FreeType project, and may only be used, */ |
149 |
FT_Service_PsCMaps psnames = (FT_Service_PsCMaps)cff->psnames; |
FT_Service_PsCMaps psnames = (FT_Service_PsCMaps)cff->psnames; |
150 |
|
|
151 |
|
|
152 |
|
/* can't build Unicode map for CID-keyed font */ |
153 |
|
if ( !charset->sids ) |
154 |
|
{ |
155 |
|
error = CFF_Err_Invalid_Argument; |
156 |
|
goto Exit; |
157 |
|
} |
158 |
|
|
159 |
cmap->num_pairs = 0; |
cmap->num_pairs = 0; |
160 |
cmap->pairs = NULL; |
cmap->pairs = NULL; |
161 |
|
|
220 |
} |
} |
221 |
} |
} |
222 |
|
|
223 |
|
Exit: |
224 |
return error; |
return error; |
225 |
} |
} |
226 |
|
|