a bunch of font work that prolly breaks things too...

This commit is contained in:
benfry
2005-04-16 01:34:10 +00:00
parent 0074759586
commit 9e6e826eaf
7 changed files with 354 additions and 112 deletions
+4 -1
View File
@@ -150,6 +150,9 @@ public class CreateFont extends JFrame {
*/
int index = 0;
for (int i = 0; i < fonts.length; i++) {
String psname = fonts[i].getPSName();
if (psname == null) System.err.println("ps name is null");
flist[index++] = fonts[i].getPSName();
table.put(fonts[i].getPSName(), fonts[i]);
}
@@ -407,7 +410,7 @@ public class CreateFont extends JFrame {
try {
Font instance = (Font) table.get(list[selection]);
font = instance.deriveFont(Font.PLAIN, fontsize);
PFont f = new PFont(font, all, smooth);
PFont f = new PFont(font, all ? null : PFont.DEFAULT_CHARSET, smooth);
// make sure the 'data' folder exists
if (!targetFolder.exists()) targetFolder.mkdirs();