aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fonts/AbstractCodePointMapping.java
diff options
context:
space:
mode:
authorRobert Meyer <rmeyer@apache.org>2014-05-23 15:05:19 +0000
committerRobert Meyer <rmeyer@apache.org>2014-05-23 15:05:19 +0000
commit764eba0b31076d7220082ac167f18cc75c427e27 (patch)
tree3e209ccb9e5e1a376b94e9e5ea29a811b45e3129 /src/java/org/apache/fop/fonts/AbstractCodePointMapping.java
parentc4e5885007f3c61837a12ab330658b131d978247 (diff)
downloadxmlgraphics-fop-764eba0b31076d7220082ac167f18cc75c427e27.tar.gz
xmlgraphics-fop-764eba0b31076d7220082ac167f18cc75c427e27.zip
FOP-2354: Subset support for Type 1 fonts
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1597112 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fonts/AbstractCodePointMapping.java')
-rw-r--r--src/java/org/apache/fop/fonts/AbstractCodePointMapping.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fonts/AbstractCodePointMapping.java b/src/java/org/apache/fop/fonts/AbstractCodePointMapping.java
index 903fe56ec..20cef2d0b 100644
--- a/src/java/org/apache/fop/fonts/AbstractCodePointMapping.java
+++ b/src/java/org/apache/fop/fonts/AbstractCodePointMapping.java
@@ -179,6 +179,10 @@ public class AbstractCodePointMapping implements SingleByteEncoding {
return -1;
}
+ public String getNameFromCodePoint(int idx) {
+ return getCharNameMap()[idx];
+ }
+
/** {@inheritDoc} */
public String[] getCharNameMap() {
if (this.charNameMap != null) {