From e6d53d8a9c84b6447f3db4b2b36576d418df1a4a Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 16 Mar 2006 13:51:14 +0000 Subject: Added support for fixed-width spaces and kerning. Note: letter-spacing is still implemented as before. Fixing this cannot be done without looking at space resolution as a whole on inline level. The Character area tree object is now deprecated. Normal Text objects should be used to keep renderers simpler. Introduced FontResolver interface to remove the dependency of FOUserAgent into the font package. Added kerning information to the base14 fonts, Helvetica and Times. By default it is not used to keep the status-quo. Enable base14 kerning through the FOUserAgent (FopFactory after the API finalization). Restored the production of EPS images in PDF output as PostScript XObjects. Restored functionality for a more compact format for the area tree renderer to save space. LayoutEngineTester slightly changed to allow for configuration values from the XML file. For now, only enabling base14 kerning is supported. Removed duplicate offset variable in SpaceArea. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386327 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/traits/SpaceVal.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/java/org/apache/fop/traits/SpaceVal.java') diff --git a/src/java/org/apache/fop/traits/SpaceVal.java b/src/java/org/apache/fop/traits/SpaceVal.java index 4c9cdf5bc..d3743c88d 100644 --- a/src/java/org/apache/fop/traits/SpaceVal.java +++ b/src/java/org/apache/fop/traits/SpaceVal.java @@ -79,6 +79,7 @@ public class SpaceVal { // and stretch by a half; int spaceCharIPD = fs.getCharWidth(' '); MinOptMax space = new MinOptMax(-spaceCharIPD / 3, 0, spaceCharIPD / 2); + //TODO Adding 2 letter spaces here is not 100% correct. Spaces don't have letter spacing return new SpaceVal( MinOptMax.add (space, MinOptMax.multiply(letterSpacing.getSpace(), 2)), -- cgit v1.2.3