aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr
diff options
context:
space:
mode:
authorPeter Hancock <phancock@apache.org>2012-12-13 10:45:25 +0000
committerPeter Hancock <phancock@apache.org>2012-12-13 10:45:25 +0000
commit3454c1cba35870d5438fa4b02fead962c732f10d (patch)
treef9a0ce0d4aab7008d4da60152d5189c81cc270e9 /src/java/org/apache/fop/layoutmgr
parentf42c3b149b8a23de41e004285d421ddeee39e1bb (diff)
downloadxmlgraphics-fop-3454c1cba35870d5438fa4b02fead962c732f10d.tar.gz
xmlgraphics-fop-3454c1cba35870d5438fa4b02fead962c732f10d.zip
JIRA FOP-2171: Missing Glyph in Postscript using DejaVuSans. Submitted by Simon Steiner.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1421214 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr')
-rw-r--r--src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
index 573019bf6..fc7110efa 100644
--- a/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
@@ -884,6 +884,9 @@ public class TextLayoutManager extends LeafNodeLayoutManager {
if (ch == CharUtilities.SPACE
&& foText.getWhitespaceTreatment() == Constants.EN_PRESERVE
|| ch == CharUtilities.NBSPACE) {
+ final Font font = FontSelector.selectFontForCharacterInText(ch,
+ this.foText, this);
+ font.mapChar(ch);
// preserved space or non-breaking space:
// create the AreaInfo object
areaInfo = new AreaInfo(nextStart, nextStart + 1, 1, 0, wordSpaceIPD, false, true,