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/fonts/CIDSubset.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: CIDSubset.java 1827168 2018-03-19 08:49:57Z ssteiner $ */ package org.apache.fop.fonts; import java.util.BitSet; import java.util.Collections; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import org.apache.fop.util.CharUtilities; /** * Provides methods to get font information. * Naming: * glyph index: original index of the glyph in the non-subset font (!= unicode index) * character selector: index into a set of glyphs. For subset CID fonts, this starts at 0. For non-subset * fonts, this is the same as the glyph index. * Unicode index: The Unicode codepoint of a character. * Glyph name: the Adobe glyph name (as found in Glyphs.java) */ public class CIDSubset implements CIDSet { /** * usedGlyphs contains orginal, new glyph index (glyph index -> char selector) */ private Map<Integer, Integer> usedGlyphs = new LinkedHashMap<Integer, Integer>(); /** * usedGlyphsIndex contains new glyph, original index (char selector -> glyph index) */ private Map<Integer, Integer> usedGlyphsIndex = new HashMap<Integer, Integer>(); private int usedGlyphsCount; /** * usedCharsIndex contains new glyph, original char (char selector -> Unicode) */ private Map<Integer, Integer> usedCharsIndex = new HashMap<Integer, Integer>(); /** * A map between the original character and it's GID in the original font. */ private Map<Integer, Integer> charToGIDs = new HashMap<Integer, Integer>(); private final MultiByteFont font; public CIDSubset(MultiByteFont mbf) { font = mbf; // The zeroth value is reserved for .notdef usedGlyphs.put(0, 0); usedGlyphsIndex.put(0, 0); usedGlyphsCount++; } /** {@inheritDoc} */ public int getOriginalGlyphIndex(int index) { Integer glyphIndex = usedGlyphsIndex.get(index); if (glyphIndex != null) { return glyphIndex; } else { return -1; } } /** {@inheritDoc} */ public int getUnicode(int index) { Integer mapValue = usedCharsIndex.get(index); if (mapValue != null) { return mapValue; } else { return CharUtilities.NOT_A_CHARACTER; } } /** {@inheritDoc} */ public int mapChar(int glyphIndex, char unicode) { return mapCodePoint(glyphIndex, unicode); } /** {@inheritDoc} */ public int mapCodePoint(int glyphIndex, int codePoint) { // Reencode to a new subset font or get the reencoded value // IOW, accumulate the accessed characters and build a character map for them Integer subsetCharSelector = usedGlyphs.get(glyphIndex); if (subsetCharSelector == null) { int selector = usedGlyphsCount; usedGlyphs.put(glyphIndex, selector); usedGlyphsIndex.put(selector, glyphIndex); usedCharsIndex.put(selector, codePoint); charToGIDs.put(codePoint, glyphIndex); usedGlyphsCount++; return selector; } else { return subsetCharSelector; } } /** {@inheritDoc} */ public Map<Integer, Integer> getGlyphs() { return Collections.unmodifiableMap(this.usedGlyphs); } /** {@inheritDoc} */ public char getUnicodeFromGID(int glyphIndex) { // TODO this method is never called in the MultiByte font path. // This is why we can safely cast the value of usedCharsIndex.get(selector) // to int . BTW is a question if it should be changed to int as getUnicode // or left like this. int selector = usedGlyphs.get(glyphIndex); return (char) usedCharsIndex.get(selector).intValue(); } /** {@inheritDoc} */ public int getGIDFromChar(char ch) { return charToGIDs.get((int) ch); } /** {@inheritDoc} */ public char[] getChars() { StringBuilder buf = new StringBuilder(); for (int i = 0; i < usedGlyphsCount; i++) { buf.appendCodePoint(getUnicode(i)); } return buf.toString().toCharArray(); } /** {@inheritDoc} */ public int getNumberOfGlyphs() { return this.usedGlyphsCount; } /** {@inheritDoc} */ public BitSet getGlyphIndices() { BitSet bitset = new BitSet(); for (Integer cid : usedGlyphs.keySet()) { bitset.set(cid); } return bitset; } /** {@inheritDoc} */ public int[] getWidths() { int[] widths = font.getWidths(); int[] tmpWidth = new int[getNumberOfGlyphs()]; for (int i = 0, c = getNumberOfGlyphs(); i < c; i++) { int nwx = Math.max(0, getOriginalGlyphIndex(i)); tmpWidth[i] = widths[nwx]; } return tmpWidth; } }
⏎ org/apache/fop/fonts/CIDSubset.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, 55268👍, 0💬
Popular Posts:
What Is junit-3.8.1.jar? junit-3.8.1.jar is the version 3.8.1 of JUnit JAR library file. JUnit is a ...
JDK 7 tools.jar is the JAR file for JDK 7 tools. It contains Java classes to support different JDK t...
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...
What Is commons-net-ftp-2.0.jar? commons-net-ftp-2.0.jar is the JAR file for Apache Commons Net FTP ...
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...