equal
deleted
inserted
replaced
11 import java.util.regex.Pattern |
11 import java.util.regex.Pattern |
12 import java.io.{InputStream, OutputStream, File => JFile, BufferedReader, InputStreamReader, |
12 import java.io.{InputStream, OutputStream, File => JFile, BufferedReader, InputStreamReader, |
13 BufferedWriter, OutputStreamWriter, IOException, FileInputStream, BufferedInputStream} |
13 BufferedWriter, OutputStreamWriter, IOException, FileInputStream, BufferedInputStream} |
14 import java.awt.{GraphicsEnvironment, Font} |
14 import java.awt.{GraphicsEnvironment, Font} |
15 import java.awt.font.TextAttribute |
15 import java.awt.font.TextAttribute |
|
16 import javax.swing.ImageIcon |
16 |
17 |
17 import scala.io.Source |
18 import scala.io.Source |
18 import scala.util.matching.Regex |
19 import scala.util.matching.Regex |
19 |
20 |
20 |
21 |
431 val stream = new BufferedInputStream(new FileInputStream(font.file)) |
432 val stream = new BufferedInputStream(new FileInputStream(font.file)) |
432 try { javafx.scene.text.Font.loadFont(stream, 1.0) } |
433 try { javafx.scene.text.Font.loadFont(stream, 1.0) } |
433 finally { stream.close } |
434 finally { stream.close } |
434 } |
435 } |
435 } |
436 } |
|
437 |
|
438 |
|
439 /* icon */ |
|
440 |
|
441 def get_icon(): ImageIcon = |
|
442 new ImageIcon(platform_path(Path.explode("~~/lib/logo/isabelle.gif"))) |
436 } |
443 } |