Changeset 879


Ignore:
Timestamp:
02/12/14 01:35:25 (10 years ago)
Author:
ngw8
Message:

Fixed bug where changing the font family of text with a non-default letter spacing caused the spacing to be lost until the user modified the text.

Also, there's a slight problem with being able to set attributes (such as letter and line spacing) to negative values via the UI - Expeditee interprets '-5' as 'subtract 5 from the current value', so there is currently no way to set spacing directly to a specific negative value. Not sure what the best way around this would be. For now it only affects letter-spacing (should also affect line spacing, but it's not possible to set that to a negative value via the UI at the moment, due to the first if-statement in Text.getLineDrop(), which I've left in for now). One possible solution would be to change line and letter spacing so that there is an imposed minimum value of 0 / normalise the values to be greater than zero, but that would break some current frames (and require minor changes to the web parser code).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/Text.java

    r873 r879  
    10961096                                + Math.round(getSize());
    10971097                setFont(Font.decode(toDecode));
     1098               
     1099                setLetterSpacing(this._letter_spacing);
    10981100        }
    10991101
Note: See TracChangeset for help on using the changeset viewer.