|
|
@@ -36,6 +36,7 @@ public class SingleByteFont extends CustomFont { |
|
|
|
private static Log log = LogFactory.getLog(SingleByteFont.class); |
|
|
|
|
|
|
|
private SingleByteEncoding mapping; |
|
|
|
private boolean useNativeEncoding = false; |
|
|
|
|
|
|
|
private int[] width = null; |
|
|
|
|
|
|
@@ -43,6 +44,7 @@ public class SingleByteFont extends CustomFont { |
|
|
|
//Map<Character, UnencodedCharacter> |
|
|
|
private List additionalEncodings; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Main constructor. |
|
|
|
*/ |
|
|
@@ -191,6 +193,24 @@ public class SingleByteFont extends CustomFont { |
|
|
|
this.mapping = encoding; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Controls whether the font is configured to use its native encoding or if it |
|
|
|
* may need to be re-encoded for the target format. |
|
|
|
* @param value true indicates that the configured encoding is the font's native encoding |
|
|
|
*/ |
|
|
|
public void setUseNativeEncoding(boolean value) { |
|
|
|
this.useNativeEncoding = value; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Indicates whether this font is configured to use its native encoding. This |
|
|
|
* method is used to determine whether the font needs to be re-encoded. |
|
|
|
* @return true if the font uses its native encoding. |
|
|
|
*/ |
|
|
|
public boolean isUsingNativeEncoding() { |
|
|
|
return this.useNativeEncoding; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Sets a width for a character. |
|
|
|
* @param index index of the character |