You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2021/10/18 05:09:06 UTC

[incubator-hop] branch master updated: HOP-3392 Use the Consolas fixed-width font on Windows

This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hop.git


The following commit(s) were added to refs/heads/master by this push:
     new 27adfa3  HOP-3392 Use the Consolas fixed-width font on Windows
     new 53ef2a3  Merge pull request #1146 from nadment/HOP-3392
27adfa3 is described below

commit 27adfa3ec2a90946c67009a915ec7b349470a981
Author: Nicolas Adment <na...@gmail.com>
AuthorDate: Sun Oct 17 21:33:25 2021 +0200

    HOP-3392 Use the Consolas fixed-width font on Windows
---
 ui/src/main/java/org/apache/hop/ui/core/PropsUi.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/main/java/org/apache/hop/ui/core/PropsUi.java b/ui/src/main/java/org/apache/hop/ui/core/PropsUi.java
index b198f32..bd18297 100644
--- a/ui/src/main/java/org/apache/hop/ui/core/PropsUi.java
+++ b/ui/src/main/java/org/apache/hop/ui/core/PropsUi.java
@@ -174,7 +174,7 @@ public class PropsUi extends Props {
   public FontData getFixedFont() {
     FontData def = getDefaultFontData();
 
-    String name = getProperty(STRING_FONT_FIXED_NAME, "Monospaced");
+    String name = getProperty(STRING_FONT_FIXED_NAME, Const.isWindows() ? "Consolas":"Monospaced");
     int size = Const.toInt(getProperty(STRING_FONT_FIXED_SIZE), def.getHeight());
     int style = Const.toInt(getProperty(STRING_FONT_FIXED_STYLE), def.getStyle());