Ignore:
Timestamp:
2014-12-27T05:25:53+01:00 (9 years ago)
Author:
Don-vip
Message:

fix font problems with Khmer. Only tested on Java 8/Windows 7 right now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java

    r7668 r7896  
    7373import org.openstreetmap.josm.gui.preferences.map.MapPaintPreference;
    7474import org.openstreetmap.josm.gui.util.FileFilterAllFiles;
     75import org.openstreetmap.josm.gui.util.GuiHelper;
    7576import org.openstreetmap.josm.gui.widgets.AbstractFileChooser;
    7677import org.openstreetmap.josm.gui.widgets.FileChooserManager;
     
    615616        private void buildSourcePanel(StyleSource s, JPanel p) {
    616617            JosmTextArea txtSource = new JosmTextArea();
    617             txtSource.setFont(new Font("Monospaced", txtSource.getFont().getStyle(), txtSource.getFont().getSize()));
     618            txtSource.setFont(GuiHelper.getMonospacedFont(txtSource));
    618619            txtSource.setEditable(false);
    619620            p.add(new JScrollPane(txtSource), GBC.std().fill());
     
    636637        private void buildErrorsPanel(StyleSource s, JPanel p) {
    637638            JosmTextArea txtErrors = new JosmTextArea();
    638             txtErrors.setFont(new Font("Monospaced", txtErrors.getFont().getStyle(), txtErrors.getFont().getSize()));
     639            txtErrors.setFont(GuiHelper.getMonospacedFont(txtErrors));
    639640            txtErrors.setEditable(false);
    640641            p.add(new JScrollPane(txtErrors), GBC.std().fill());
Note: See TracChangeset for help on using the changeset viewer.