-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
8
-
Windows 7 JDK8 b116
The indentation size seems to be hard-coded in PrimsTextLayout:
private float getTabAdvance() {
float spaceAdvance = 0;
if (spans != null) {
/* Rich text case - use the first font (for now) */
for (int i = 0; i < spans.length; i++) {
TextSpan span = spans[i];
PGFont font = (PGFont)span.getFont();
if (font != null) {
FontStrike strike = font.getStrike(IDENTITY);
spaceAdvance = strike.getCharAdvance(' ');
break;
}
}
} else {
spaceAdvance = strike.getCharAdvance(' ');
}
return 8 * spaceAdvance;
}
private float getTabAdvance() {
float spaceAdvance = 0;
if (spans != null) {
/* Rich text case - use the first font (for now) */
for (int i = 0; i < spans.length; i++) {
TextSpan span = spans[i];
PGFont font = (PGFont)span.getFont();
if (font != null) {
FontStrike strike = font.getStrike(IDENTITY);
spaceAdvance = strike.getCharAdvance(' ');
break;
}
}
} else {
spaceAdvance = strike.getCharAdvance(' ');
}
return 8 * spaceAdvance;
}
- duplicates
-
JDK-8314482 Add Text / TextFlow tab stops
- Open
- relates to
-
JDK-8300569 ☂ Missing APIs related to rich text control
- In Progress