#1128 Letterspacing bug (after font embed): ignore letterspacing when character changed

This commit is contained in:
honfika@gmail.com
2016-01-06 09:12:53 +01:00
parent 68cf9c0e5c
commit 2fd0d45407
8 changed files with 20 additions and 20 deletions

View File

@@ -173,7 +173,7 @@ public class TextPanel extends JPanel implements TagEditorPanel {
public void setText(TextTag textTag) {
this.textTag = textTag;
textValue.setText(textTag.getFormattedText().text);
textValue.setText(textTag.getFormattedText(false).text);
textValue.setCaretPosition(0);
setModified(false);
setEditText(false);
@@ -202,7 +202,7 @@ public class TextPanel extends JPanel implements TagEditorPanel {
public void focusTextValue() {
textValue.requestFocusInWindow();
if (textTag != null && !isModified()) {
HighlightedText text = textTag.getFormattedText();
HighlightedText text = textTag.getFormattedText(false);
for (Highlighting highlight : text.specialHilights) {
if (highlight.getProperties().subtype == HighlightSpecialType.TEXT) {
textValue.select(highlight.startPos, highlight.startPos + highlight.len);
@@ -219,7 +219,7 @@ public class TextPanel extends JPanel implements TagEditorPanel {
if (selEnd > selStart) {
StringBuilder selected = new StringBuilder(textValue.getSelectedText());
HighlightedText text = textTag.getFormattedText();
HighlightedText text = textTag.getFormattedText(false);
boolean allUpper = true;
for (Highlighting highlight : text.specialHilights) {
if (highlight.getProperties().subtype == HighlightSpecialType.TEXT) {