| author | Fabian Huch <huch@in.tum.de> | 
| Thu, 07 Dec 2023 11:34:01 +0100 | |
| changeset 79186 | a22440b9cb70 | 
| parent 73653 | d9823224fcfe | 
| child 81297 | 07f64697408e | 
| permissions | -rw-r--r-- | 
| 73653 
d9823224fcfe
build auxiliary jEdit component in Isabelle/Scala;
 wenzelm parents: 
72247diff
changeset | 1 | diff -ru jedit5.6.0/jEdit/org/gjt/sp/jedit/GUIUtilities.java jedit5.6.0-patched/jEdit/org/gjt/sp/jedit/GUIUtilities.java | 
| 
d9823224fcfe
build auxiliary jEdit component in Isabelle/Scala;
 wenzelm parents: 
72247diff
changeset | 2 | --- jedit5.6.0/jEdit/org/gjt/sp/jedit/GUIUtilities.java 2020-09-03 05:31:04.000000000 +0200 | 
| 
d9823224fcfe
build auxiliary jEdit component in Isabelle/Scala;
 wenzelm parents: 
72247diff
changeset | 3 | +++ jedit5.6.0-patched/jEdit/org/gjt/sp/jedit/GUIUtilities.java 2021-05-10 11:02:05.784257753 +0200 | 
| 71932 
65fd0f032a75
updated to jedit-5.6pre1 (repository version 25349);
 wenzelm parents: 
69838diff
changeset | 4 | @@ -1130,9 +1130,7 @@ | 
| 69382 
d70767e508d7
proper menu accelerator font for Java 11 (no update of jedit-build component yet);
 wenzelm parents: diff
changeset | 5 |  				return new Font("Monospaced", Font.PLAIN, 12);
 | 
| 
d70767e508d7
proper menu accelerator font for Java 11 (no update of jedit-build component yet);
 wenzelm parents: diff
changeset | 6 | } | 
| 
d70767e508d7
proper menu accelerator font for Java 11 (no update of jedit-build component yet);
 wenzelm parents: diff
changeset | 7 |  			else {
 | 
| 71932 
65fd0f032a75
updated to jedit-5.6pre1 (repository version 25349);
 wenzelm parents: 
69838diff
changeset | 8 | - Font font2 = | 
| 
65fd0f032a75
updated to jedit-5.6pre1 (repository version 25349);
 wenzelm parents: 
69838diff
changeset | 9 | - new Font(OperatingSystem.isWindows() ? "Lucida Console" : "Monospaced", | 
| 
65fd0f032a75
updated to jedit-5.6pre1 (repository version 25349);
 wenzelm parents: 
69838diff
changeset | 10 | - Font.PLAIN, font1.getSize()); | 
| 69382 
d70767e508d7
proper menu accelerator font for Java 11 (no update of jedit-build component yet);
 wenzelm parents: diff
changeset | 11 | +				Font font2 = new Font("Isabelle DejaVu Sans Mono", Font.PLAIN, font1.getSize());
 | 
| 
d70767e508d7
proper menu accelerator font for Java 11 (no update of jedit-build component yet);
 wenzelm parents: diff
changeset | 12 | FontRenderContext frc = new FontRenderContext(null, true, false); | 
| 
d70767e508d7
proper menu accelerator font for Java 11 (no update of jedit-build component yet);
 wenzelm parents: diff
changeset | 13 | float scale = | 
| 
d70767e508d7
proper menu accelerator font for Java 11 (no update of jedit-build component yet);
 wenzelm parents: diff
changeset | 14 |  					font1.getLineMetrics("", frc).getHeight() / font2.getLineMetrics("", frc).getHeight();
 |