Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
What Is fop.jar in fop-2.7-bin.zip
What Is fop.jar? I got it from the fop-2.7-bin.zip.
✍: FYIcenter.com
fop.jar in fop-2.7-bin.zip is the JAR file for FOP 2.7, which is a print formatter driven by XSL formatting objects (XSL-FO). You can obtain fop.jar from the build folder of the fop-2.7-bin.zip file.
Below is the information about the fop.jar (2.2) file:
JAR File Size and Download Location:
JAR name: fop.jar, fop-2.7.jar Target JDK version: 1.7 File name: fop.jar File size: 4442817 bytes Release date: 20-Jan-2022 Download: Apache FOP Website
Java source code files for fop.jar:
⏎ org/apache/fop/complexscripts/scripts/DefaultScriptProcessor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* $Id$ */ package org.apache.fop.complexscripts.scripts; import org.apache.fop.complexscripts.fonts.GlyphDefinitionTable; import org.apache.fop.complexscripts.util.CharAssociation; import org.apache.fop.complexscripts.util.GlyphSequence; import org.apache.fop.complexscripts.util.ScriptContextTester; // CSOFF: LineLengthCheck /** * <p>Default script processor, which enables default glyph composition/decomposition, common ligatures, localized forms * and kerning.</p> * * <p>This work was originally authored by Glenn Adams (gadams@apache.org).</p> */ public class DefaultScriptProcessor extends ScriptProcessor { /** features to use for substitutions */ private static final String[] GSUB_FEATURES = { "ccmp", // glyph composition/decomposition "liga", // common ligatures "locl" // localized forms }; /** features to use for positioning */ private static final String[] GPOS_FEATURES = { "kern", // kerning "mark", // mark to base or ligature positioning "mkmk" // mark to mark positioning }; DefaultScriptProcessor(String script) { super(script); } @Override /** {@inheritDoc} */ public String[] getSubstitutionFeatures() { return GSUB_FEATURES; } @Override /** {@inheritDoc} */ public ScriptContextTester getSubstitutionContextTester() { return null; } @Override /** {@inheritDoc} */ public String[] getPositioningFeatures() { return GPOS_FEATURES; } @Override /** {@inheritDoc} */ public ScriptContextTester getPositioningContextTester() { return null; } @Override /** {@inheritDoc} */ public GlyphSequence reorderCombiningMarks(GlyphDefinitionTable gdef, GlyphSequence gs, int[] unscaledWidths, int[][] gpa, String script, String language) { int ng = gs.getGlyphCount(); int[] ga = gs.getGlyphArray(false); int nm = 0; // count combining marks for (int i = 0; i < ng; i++) { int gid = ga [ i ]; int gw = unscaledWidths [ i ]; if (isReorderedMark(gdef, ga, unscaledWidths, i)) { nm++; } } // only reorder if there is at least one mark and at least one non-mark glyph if ((nm > 0) && ((ng - nm) > 0)) { CharAssociation[] aa = gs.getAssociations(0, -1); int[] nga = new int [ ng ]; int[][] npa = (gpa != null) ? new int [ ng ][] : null; CharAssociation[] naa = new CharAssociation [ ng ]; int k = 0; CharAssociation ba = null; int bg = -1; int[] bpa = null; for (int i = 0; i < ng; i++) { int gid = ga [ i ]; int[] pa = (gpa != null) ? gpa [ i ] : null; CharAssociation ca = aa [ i ]; if (isReorderedMark(gdef, ga, unscaledWidths, i)) { nga [ k ] = gid; naa [ k ] = ca; if (npa != null) { npa [ k ] = pa; } k++; } else { if (bg != -1) { nga [ k ] = bg; naa [ k ] = ba; if (npa != null) { npa [ k ] = bpa; } k++; bg = -1; ba = null; bpa = null; } if (bg == -1) { bg = gid; ba = ca; bpa = pa; } } } if (bg != -1) { nga [ k ] = bg; naa [ k ] = ba; if (npa != null) { npa [ k ] = bpa; } k++; } assert k == ng; if (npa != null) { System.arraycopy(npa, 0, gpa, 0, ng); } return new GlyphSequence(gs, null, nga, null, null, naa, null); } else { return gs; } } protected boolean isReorderedMark(GlyphDefinitionTable gdef, int[] glyphs, int[] unscaledWidths, int index) { return gdef.isGlyphClass(glyphs[index], GlyphDefinitionTable.GLYPH_CLASS_MARK) && (unscaledWidths[index] != 0); } }
⏎ org/apache/fop/complexscripts/scripts/DefaultScriptProcessor.java
Or download all of them as a single archive file:
File name: fop-2.7-src.zip File size: 3401312 bytes Release date: 2022-01-20 Download
⇒ "fop" Command in fop-2.7-bin.zip
2016-07-07, 38015👍, 0💬
Popular Posts:
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
What Is log4j-1.2.13.jar? I got the JAR file from logging-log4j-1.2.13.zip .log4j-1.2.13.jar is the ...
Apache BCEL Source Code Files are inside the Apache BCEL source package file like bcel-6.5.0-src.zip...
What Is javamail1_1_3.zip? javamail1_1_3.zip is the binary package of JavaMail API 1.1.3 in ZIP form...
commons-net-1.4.1.jar is the JAR file for Apache Commons Net 1.4.1, which implements the client side...