zchar2.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
  2. This file is part of AFPL Ghostscript.
  3. AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
  4. distributor accepts any responsibility for the consequences of using it, or
  5. for whether it serves any particular purpose or works at all, unless he or
  6. she says so in writing. Refer to the Aladdin Free Public License (the
  7. "License") for full details.
  8. Every copy of AFPL Ghostscript must include a copy of the License, normally
  9. in a plain ASCII text file named PUBLIC. The License grants you the right
  10. to copy, modify and redistribute AFPL Ghostscript, but only under certain
  11. conditions described in the License. Among other things, the License
  12. requires that the copyright notice and this notice be preserved on all
  13. copies.
  14. */
  15. /*$Id: zchar2.c,v 1.2 2000/09/19 19:00:52 lpd Exp $ */
  16. /* Type 2 character display operator */
  17. #include "ghost.h"
  18. #include "oper.h"
  19. #include "gxfixed.h"
  20. #include "gxmatrix.h"
  21. #include "gxfont.h"
  22. #include "gxfont1.h"
  23. #include "gxtype1.h"
  24. #include "ichar1.h"
  25. /* <font> <code|name> <name> <charstring> .type2execchar - */
  26. private int
  27. ztype2execchar(i_ctx_t *i_ctx_p)
  28. {
  29. return charstring_execchar(i_ctx_p, (1 << (int)ft_encrypted2));
  30. }
  31. /* ------ Initialization procedure ------ */
  32. const op_def zchar2_op_defs[] =
  33. {
  34. {"4.type2execchar", ztype2execchar},
  35. op_def_end(0)
  36. };