mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix linux permissions (issue #343), plus other tweaks to make linux less ugly
This commit is contained in:
@@ -154,11 +154,10 @@ public class EditorHeader extends JComponent {
|
||||
g.setFont(font); // need to set this each time through
|
||||
metrics = g.getFontMetrics();
|
||||
fontAscent = metrics.getAscent();
|
||||
//}
|
||||
|
||||
//Graphics2D g2 = (Graphics2D) g;
|
||||
//g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
|
||||
// RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
|
||||
Graphics2D g2 = (Graphics2D) g;
|
||||
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
|
||||
RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
|
||||
|
||||
// set the background for the offscreen
|
||||
g.setColor(backgroundColor);
|
||||
@@ -180,7 +179,6 @@ public class EditorHeader extends JComponent {
|
||||
// if modified, add the li'l glyph next to the name
|
||||
String text = " " + codeName + (code.isModified() ? " \u00A7" : " ");
|
||||
|
||||
Graphics2D g2 = (Graphics2D) g;
|
||||
int textWidth = (int)
|
||||
font.getStringBounds(text, g2.getFontRenderContext()).getWidth();
|
||||
|
||||
|
||||
@@ -188,6 +188,10 @@ public class EditorToolbar extends JComponent implements MouseInputListener, Key
|
||||
g.setColor(bgcolor); //getBackground());
|
||||
g.fillRect(0, 0, width, height);
|
||||
|
||||
Graphics2D g2 = (Graphics2D) g;
|
||||
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
|
||||
RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
|
||||
|
||||
for (int i = 0; i < buttonCount; i++) {
|
||||
g.drawImage(stateImage[i], x1[i], y1, null);
|
||||
}
|
||||
|
||||
@@ -279,7 +279,7 @@ public class Preferences {
|
||||
fontSizeField.setText(String.valueOf(editorFont.getSize()));
|
||||
top += d.height + GUI_BETWEEN;
|
||||
|
||||
|
||||
|
||||
// [ ] Use smooth text in editor window
|
||||
|
||||
editorAntialiasBox =
|
||||
|
||||
+16
-8
@@ -346,9 +346,11 @@
|
||||
<target name="linux-dist" depends="linux-build"
|
||||
description="Build .tar.gz of linux version">
|
||||
|
||||
<!--
|
||||
<get src="http://processing.googlecode.com/files/jre-tools-6u20-linux-i586.tgz"
|
||||
dest="linux/jre.tgz"
|
||||
usetimestamp="true" />
|
||||
-->
|
||||
|
||||
<!--
|
||||
<untar compression="gzip"
|
||||
@@ -364,7 +366,7 @@ http://www.gnu.org/software/tar/manual/html_section/transform.html
|
||||
<exec executable="tar">
|
||||
<arg value="-C" /> <!-- Change directory -->
|
||||
<arg value="linux/work" />
|
||||
<arg value="-xzpvf" />
|
||||
<arg value="-xzpf" />
|
||||
<arg value="linux/jre.tgz"/>
|
||||
</exec>
|
||||
|
||||
@@ -374,13 +376,19 @@ http://www.gnu.org/software/tar/manual/html_section/transform.html
|
||||
</tar>
|
||||
-->
|
||||
|
||||
<exec executable="tar">
|
||||
<arg value="-C" />
|
||||
<arg value="linux/work" />
|
||||
<arg value="-czpvf" />
|
||||
<arg value="processing-${version}.tgz"/>
|
||||
<!-- <arg value="."/>-->
|
||||
</exec>
|
||||
<!-- rename the work folder temporarily -->
|
||||
<move file="linux/work" tofile="linux/processing-${version}" />
|
||||
|
||||
<exec executable="tar">
|
||||
<arg value="--directory=linux" />
|
||||
<arg value="--file=linux/processing-${version}.tgz" />
|
||||
<arg value="-cpz" />
|
||||
<arg value="processing-${version}" />
|
||||
|
||||
</exec>
|
||||
|
||||
<!-- put... the candle... back -->
|
||||
<move file="linux/processing-${version}" tofile="linux/work" />
|
||||
|
||||
<echo>
|
||||
=======================================================
|
||||
|
||||
@@ -92,8 +92,10 @@ editor.font.macosx = Monaco,plain,10
|
||||
|
||||
# anti-aliased text, turned off by default
|
||||
editor.antialias=false
|
||||
# linux fonts are hideous without anti-aliasing [0191]
|
||||
editor.antialias.linux=true
|
||||
|
||||
# color to be used for background when 'external editor' enabled
|
||||
# currently using an external editor
|
||||
editor.external=false
|
||||
|
||||
# caret blinking
|
||||
|
||||
Reference in New Issue
Block a user