org.foray.ps.encode
Class EncodingSymbol
java.lang.Object
org.foray.ps.encode.EncodingVector4a
org.foray.ps.encode.EncodingSymbol
- All Implemented Interfaces:
- Serializable, org.axsl.ps.Encoding, org.axsl.ps.PsEncoding
public final class EncodingSymbol
- extends EncodingVector4a
- implements Serializable
Class containing hard-coded values that represent the Symbol
Encoding Vector documented at PDF Reference, 5th Edition, Appendix D.3.
It is identical to that documented at PostScript Language Reference,
3rd Edition, Appendix E.12.
Note that this encoding is not a built-in standard encoding in either
PostScript or PDF. However, it is built in to the Symbol font, which is a
standard font for both PostScript and PDF. The purpose of this hard-coded
encoding is simply to avoid the cost of having to parse that encoding from
the font each time it is used.
The hard-coded values in this class were derived by running
EncodingParser.main(String[])
with the following input
parameters:
- input-file: foray/foray-ps/resource/encoding/symbol-ps.txt
- column-number: 1
- output-file: [some file]
- glyph-lists: [null]
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface org.axsl.ps.PsEncoding |
org.axsl.ps.PsEncoding.Predefined |
Fields inherited from interface org.axsl.ps.Encoding |
INVALID_UNICODE_CHAR |
Method Summary |
static EncodingSymbol |
getInstance()
Returns the singleton instance of this class. |
org.axsl.ps.PsEncoding.Predefined |
getPredefinedType()
|
boolean |
isStatic()
Indicates whether the data in this encoding vector is static, that is,
tied entirely to the class itself and not built dynamically. |
Methods inherited from class org.foray.ps.encode.EncodingVector4a |
asPostScript, bestBaseEncodingPdf, canEncode, decodeCharacter, encodeCharacter, getFirstIndex, getGlyphNames, getLastIndex, getName, isPredefinedPdf, isPredefinedPs, isSubsetOf, mapCodePointToGlyphName, mapCodePointToGlyphName, mapGlyphNameToCodePoint, size, sortCodePoints |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- Constant needed for serialization.
- See Also:
- Constant Field Values
getInstance
public static EncodingSymbol getInstance()
- Returns the singleton instance of this class.
- Returns:
- The singleton isntance of this class.
isStatic
public boolean isStatic()
- Description copied from class:
EncodingVector4a
- Indicates whether the data in this encoding vector is static, that is,
tied entirely to the class itself and not built dynamically.
This is used primarily to determine whether the instance should actually
be serialized.
- Specified by:
isStatic
in class EncodingVector4a
- Returns:
- True iff all data in this encoding vector is static and does not
need to be serialized.
getPredefinedType
public org.axsl.ps.PsEncoding.Predefined getPredefinedType()
- Specified by:
getPredefinedType
in interface org.axsl.ps.PsEncoding
Copyright © 2017. All rights reserved.