~hjd/ubuntu/wily/xmlgraphics-commons/debian-merged

« back to all changes in this revision

Viewing changes to src/java/org/apache/xmlgraphics/ps/PSProcSets.java

  • Committer: Hans Joachim Desserud
  • Date: 2015-11-11 18:22:53 UTC
  • mfrom: (9.1.5 sid)
  • Revision ID: hans_joachim_desserud-20151111182253-zwi0frfm97j0wddn
  * Merge from Debian unstable.  Remaining changes:
    - d/control: Drop dependencies required for unit testing as they
      include libmockito-java which would pull maven into main, disable unit
      test execution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * limitations under the License.
16
16
 */
17
17
 
18
 
/* $Id: PSProcSets.java 1353180 2012-06-23 19:17:07Z gadams $ */
 
18
/* $Id: PSProcSets.java 1513682 2013-08-13 22:51:33Z lbernardo $ */
19
19
 
20
20
package org.apache.xmlgraphics.ps;
21
21
 
27
27
/**
28
28
 * This class defines the basic resources (procsets) used by the Apache XML Graphics project.
29
29
 *
30
 
 * @version $Id: PSProcSets.java 1353180 2012-06-23 19:17:07Z gadams $
 
30
 * @version $Id: PSProcSets.java 1513682 2013-08-13 22:51:33Z lbernardo $
31
31
 */
32
32
public final class PSProcSets {
33
33
 
247
247
            gen.writeln("} if");
248
248
            gen.writeln("} bd");
249
249
 
 
250
            gen.writeln("/RE { % /NewFontName [NewEncodingArray] /FontName RE -");
 
251
            gen.writeln("  findfont dup length dict begin");
 
252
            gen.writeln("  {");
 
253
            gen.writeln("    1 index /FID ne");
 
254
            gen.writeln("    {def} {pop pop} ifelse");
 
255
            gen.writeln("  } forall");
 
256
            gen.writeln("  /Encoding exch def");
 
257
            gen.writeln("  /FontName 1 index def");
 
258
            gen.writeln("  currentdict definefont pop");
 
259
            gen.writeln("  end");
 
260
            gen.writeln("} bind def");
 
261
 
250
262
            gen.writeDSCComment(DSCConstants.END_RESOURCE);
251
263
            gen.getResourceTracker().registerSuppliedResource(this);
252
264
        }