public class TextLegacy extends Object
AXTE underwent a major rework between versions 6 and 7 to support complex script languages. During this time, a number of text layout and positioning bugs were fixed, often inadvertently. In addition, more standard layout practices were adopted.
Consequently, version 7 did not lay out text the same as version 6. This proved unacceptable for some customers and AXTE was modified to support a legacy positioning (version 6) mode. In this mode, implements the many facets of the old behaviour: vertical and horizontal positioning, line breaking rules and font metric fudging.
In spite of all the effort in version 7 to support correct and standard layout practices, a bug crept in and was not detected soon enough to provent customers from creating forms with the incorrect behaviour. Therefore, we have intentionally not correct that bug, lest customers see yet another layout change. The problem occurs only when line spacing is overridden to something smaller than the default and can lead to vertical alignment problems or the last line of text being clipped. While it mak not make sense to fix this problem for forms customers, it leads to problems with other clients of AXTE.
This class allows the derivative to be flagged by the client as supporting one of the three behaviours described above.
| Modifier and Type | Field and Description |
|---|---|
static int |
LEVEL_CORRECT_SPACING |
static int |
LEVEL_NORMAL |
static int |
LEVEL_V6
Legacy behaviour level enumeration.
|
| Constructor and Description |
|---|
TextLegacy()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLegacyLevel()
Query the current level.
|
boolean |
hasCorrectPositioning()
Query whether normal layout with correct spacing handling is in
effect.
|
boolean |
hasLegacyPositioning()
Query whether version 6 layout is in effect.
|
boolean |
hasNormalPositioning()
Query whether normal forms layout is in effect.
|
void |
setLegacyLevel(int eLevel)
Set a new legacy spacing level.
|
public static final int LEVEL_V6
public static final int LEVEL_NORMAL
public static final int LEVEL_CORRECT_SPACING
public TextLegacy()
public int getLegacyLevel()
public void setLegacyLevel(int eLevel)
eLevel - - New level.public boolean hasLegacyPositioning()
public boolean hasNormalPositioning()
public boolean hasCorrectPositioning()
Copyright © 2010 - 2020 Adobe. All Rights Reserved