summaryrefslogtreecommitdiff
path: root/gs/base/gstype42.c
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>2009-12-18 05:23:14 +0000
committerHenry Stiles <henry.stiles@artifex.com>2009-12-18 05:23:14 +0000
commite2e16448a54568d8ec462fd4d888d778776fad94 (patch)
tree4558fa77850d07ea5d6fbd6ef64a341034b3fc4f /gs/base/gstype42.c
parentba096c4baa7c1d273a4535171f08af9def830a97 (diff)
Export the the type 42 component parser procedure for pcl, no expected
differences. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10518 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/base/gstype42.c')
-rw-r--r--gs/base/gstype42.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gs/base/gstype42.c b/gs/base/gstype42.c
index 061cf8317..c47ac4849 100644
--- a/gs/base/gstype42.c
+++ b/gs/base/gstype42.c
@@ -445,10 +445,10 @@ gs_len_glyphs_release(void *data, void *event)
* bother to parse the component index, since the caller can do this so
* easily.
*/
-static void
-parse_component(const byte **pdata, uint *pflags, gs_matrix_fixed *psmat,
- int *pmp /*[2], may be null*/, const gs_font_type42 *pfont,
- const gs_matrix_fixed *pmat)
+void
+gs_type42_parse_component(const byte **pdata, uint *pflags, gs_matrix_fixed *psmat,
+ int *pmp /*[2], may be null*/, const gs_font_type42 *pfont,
+ const gs_matrix_fixed *pmat)
{
const byte *gdata = *pdata;
uint flags;
@@ -556,7 +556,7 @@ total_points(gs_font_type42 *pfont, uint glyph_index)
if (code < 0)
return code;
total += code;
- parse_component(&gdata, &flags, &mat, NULL, pfont, &mat);
+ gs_type42_parse_component(&gdata, &flags, &mat, NULL, pfont, &mat);
}
while (flags & TT_CG_MORE_COMPONENTS);
}
@@ -911,7 +911,7 @@ parse_pieces(gs_font_type42 *pfont, gs_glyph glyph, gs_glyph *pieces,
for (i = 0; flags & TT_CG_MORE_COMPONENTS; ++i) {
if (pieces)
pieces[i] = U16(gdata + 2) + GS_MIN_GLYPH_INDEX;
- parse_component(&gdata, &flags, &mat, NULL, pfont, &mat);
+ gs_type42_parse_component(&gdata, &flags, &mat, NULL, pfont, &mat);
}
*pnum_pieces = i;
} else
@@ -1172,10 +1172,10 @@ gs_type42_default_get_metrics(gs_font_type42 * pfont, uint glyph_index,
do {
uint comp_index = U16(gdata + 2);
- parse_component(&gdata, &flags, &mat, NULL, pfont, &mat);
- if (flags & TT_CG_USE_MY_METRICS) {
- result = pfont->data.get_metrics(pfont, comp_index, wmode, sbw);
- goto done;
+ gs_type42_parse_component(&gdata, &flags, &mat, NULL, pfont, &mat);
+ if (flags & TT_CG_USE_MY_METRICS) {
+ result = pfont->data.get_metrics(pfont, comp_index, wmode, sbw);
+ goto done;
}
}
while (flags & TT_CG_MORE_COMPONENTS);
@@ -1503,7 +1503,7 @@ append_component(uint glyph_index, const gs_matrix_fixed * pmat,
gs_matrix_fixed mat;
int mp[2];
- parse_component(&gdata, &flags, &mat, mp, pfont, pmat);
+ gs_type42_parse_component(&gdata, &flags, &mat, mp, pfont, pmat);
if (mp[0] >= 0) {
/* Match up points. What a nuisance! */
const gs_fixed_point *const pfrom = ppts + mp[0];