Skip to content

Commit

Permalink
cambiada tipografia para compatibilidad en linux
Browse files Browse the repository at this point in the history
  • Loading branch information
franquitt committed Sep 4, 2017
1 parent dd068b4 commit 4715d57
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 21 deletions.
19 changes: 19 additions & 0 deletions nbproject/build-native.xml
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,25 @@ Portions Copyrighted 2013 Sun Microsystems, Inc.
// manifest
var man = jar.createManifest();
var userManifestPath = project.getProperty("manifest.file");
if (userManifestPath) {
var userManifestFile = project.resolveFile(userManifestPath);
if (userManifestFile.isFile()) {
var manifestEncoding = project.getProperty("manifest.encoding");
var userManifestReader = manifestEncoding ?
new java.io.InputStreamReader(
new java.io.FileInputStream(userManifestFile),
manifestEncoding) :
new java.io.InputStreamReader(
new java.io.FileInputStream(userManifestFile));
try {
var userManifest = new org.apache.tools.ant.taskdefs.Manifest(userManifestReader);
man.merge(userManifest);
} finally {
userManifestReader.close();
}
}
}
var a1val = new String(project.getProperty("application.vendor"));
var a1 = new org.apache.tools.ant.taskdefs.Manifest.Attribute();
a1.setName("Implementation-Vendor");
Expand Down
19 changes: 0 additions & 19 deletions nbproject/build-native.xml~
Original file line number Diff line number Diff line change
Expand Up @@ -664,25 +664,6 @@ Portions Copyrighted 2013 Sun Microsystems, Inc.
// manifest
var man = jar.createManifest();
var userManifestPath = project.getProperty("manifest.file");
if (userManifestPath) {
var userManifestFile = project.resolveFile(userManifestPath);
if (userManifestFile.isFile()) {
var manifestEncoding = project.getProperty("manifest.encoding");
var userManifestReader = manifestEncoding ?
new java.io.InputStreamReader(
new java.io.FileInputStream(userManifestFile),
manifestEncoding) :
new java.io.InputStreamReader(
new java.io.FileInputStream(userManifestFile));
try {
var userManifest = new org.apache.tools.ant.taskdefs.Manifest(userManifestReader);
man.merge(userManifest);
} finally {
userManifestReader.close();
}
}
}
var a1val = new String(project.getProperty("application.vendor"));
var a1 = new org.apache.tools.ant.taskdefs.Manifest.Attribute();
a1.setName("Implementation-Vendor");
Expand Down
2 changes: 1 addition & 1 deletion nbproject/private/private.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ do.depend=false
do.jar=true
javac.debug=true
javadoc.preview=true
user.properties.file=C:\\Users\\FrancoMain\\AppData\\Roaming\\NetBeans\\8.1\\build.properties
user.properties.file=/home/franco/.netbeans/8.2/build.properties
1 change: 1 addition & 0 deletions src/MadTeam/MainWindow.form
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
<Property name="editable" type="boolean" value="false"/>
<Property name="columns" type="int" value="20"/>
<Property name="rows" type="int" value="5"/>
<Property name="text" type="java.lang.String" value="fdfdssss"/>
</Properties>
</Component>
</SubComponents>
Expand Down
4 changes: 3 additions & 1 deletion src/MadTeam/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ public MainWindow() {
try {
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, new File("assets/fonts/FreeMono.ttf")));
myFont = new Font("FreeMono", Font.BOLD, 37);
myFont = new Font("FreeMono", Font.PLAIN, 37);
} catch (IOException | FontFormatException e) {
System.out.println("Warning! " + e.toString());
}
frmMsg.setSize(320, 101);

txtBrailleText.setFont(myFont);
System.out.println(txtBrailleText.getFont().getFontName());
//txtBrailleText.setText("\u2813\u2815\u2807\u2801");
txtplaintext.setLineWrap(true);
txtplaintext.setWrapStyleWord(true);
Expand Down Expand Up @@ -220,6 +221,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
txtBrailleText.setEditable(false);
txtBrailleText.setColumns(20);
txtBrailleText.setRows(5);
txtBrailleText.setText("fdfdssss");
jScrollPane2.setViewportView(txtBrailleText);

jTabbedPane1.addTab("Braille", jScrollPane2);
Expand Down

0 comments on commit 4715d57

Please sign in to comment.