org.foray.ps.encode
Class EncodingCustom
java.lang.Object
org.foray.ps.encode.EncodingVector4a
org.foray.ps.encode.EncodingCustom
- All Implemented Interfaces:
- Serializable, org.axsl.ps.Encoding, org.axsl.ps.PsEncoding
public class EncodingCustom
- extends EncodingVector4a
An encoding that is not one of the predefined encodings, usually parsed from
a Type 1 Font.
- 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 |
Constructor Summary |
EncodingCustom(String name,
List<org.axsl.ps.GlyphList> sourceGlyphLists,
char[] codePoints,
char[] codePointIndexes)
Create a new Encoding instance. |
Method Summary |
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
EncodingCustom
public EncodingCustom(String name,
List<org.axsl.ps.GlyphList> sourceGlyphLists,
char[] codePoints,
char[] codePointIndexes)
- Create a new Encoding instance.
- Parameters:
name
- The name of this encoding. This name is not used by the
system, but may be useful for debugging.sourceGlyphLists
- The GlyphList instances that were used to create
this encoding.codePoints
- The array of Unicode code points supported by this
encoding. This array must be sorted before this constructor
is used.
The static method EncodingVector4a.sortCodePoints(char[], char[])
is provided
for this purpose.codePointIndexes
- The array of encoded indexes that is parallel to
codePoints. codePointIndexes[n] should contain the encoded index that
corresponds to the Unicode code point at codePoints[n].
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()
Copyright © 2017. All rights reserved.