Changeset 1392


Ignore:
Timestamp:
05/28/19 15:36:50 (5 years ago)
Author:
bln4
Message:

Obey the minimum font size when having to deal with _singleLine=true on a text item. In this case, ignore the width rather than the _singleLine.

File:
1 edited

Legend:

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

    r1382 r1392  
    18351835                               
    18361836                                while(proposedTextLayout.size() > 1) {
    1837                                         paintFont.setSize(paintFont.getSize() - 1);
     1837                                        paintFont.setSize(Math.max(paintFont.getSize() - 1, MINIMUM_FONT_SIZE));
    18381838                                        proposedTextLayout =
    18391839                                                EcosystemManager.getTextLayoutManager().layoutString(
     
    18411841                                                        paintFont,
    18421842                                                        new Point(getX(), getY()), lines != null ? lines.toArray(new org.expeditee.core.Line[1]) : null,
    1843                                                         (int) width,
     1843                                                        paintFont.getSize() > MINIMUM_FONT_SIZE ? (int) width : (int) Float.MAX_VALUE,
    18441844                                                        (int) getSpacing(),
    18451845                                                        true,
Note: See TracChangeset for help on using the changeset viewer.