xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lberna...@apache.org
Subject svn commit: r1513682 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSProcSets.java
Date Tue, 13 Aug 2013 22:51:33 GMT
Author: lbernardo
Date: Tue Aug 13 22:51:33 2013
New Revision: 1513682

URL: http://svn.apache.org/r1513682
Log:
XGC-84: Added new subroutine to support OTF CFF in PostScript; patch submitted by Robert Meyer

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSProcSets.java

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSProcSets.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSProcSets.java?rev=1513682&r1=1513681&r2=1513682&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSProcSets.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/PSProcSets.java Tue Aug 13
22:51:33 2013
@@ -247,6 +247,18 @@ public final class PSProcSets {
             gen.writeln("} if");
             gen.writeln("} bd");
 
+            gen.writeln("/RE { % /NewFontName [NewEncodingArray] /FontName RE -");
+            gen.writeln("  findfont dup length dict begin");
+            gen.writeln("  {");
+            gen.writeln("    1 index /FID ne");
+            gen.writeln("    {def} {pop pop} ifelse");
+            gen.writeln("  } forall");
+            gen.writeln("  /Encoding exch def");
+            gen.writeln("  /FontName 1 index def");
+            gen.writeln("  currentdict definefont pop");
+            gen.writeln("  end");
+            gen.writeln("} bind def");
+
             gen.writeDSCComment(DSCConstants.END_RESOURCE);
             gen.getResourceTracker().registerSuppliedResource(this);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message