Updated the code I used for testing to generate the file containing all glyphs in TM and all glyphs but one in TMW.

This commit is contained in:
dchandler 2003-11-24 05:59:32 +00:00
parent 8d18ac53cb
commit b8608797aa

View file

@ -1348,7 +1348,7 @@ public class TibetanDocument extends DefaultStyledDocument {
/** I used this to create a document that helped me validate the /** I used this to create a document that helped me validate the
TM->TMW conversion. */ TM->TMW conversion. */
private void insertAllTMGlyphs2(MutableAttributeSet roman) { private void insertAllTMGlyphs2() {
int font; int font;
int ord; int ord;
DuffData[] equivalent = new DuffData[1]; DuffData[] equivalent = new DuffData[1];
@ -1383,7 +1383,7 @@ public class TibetanDocument extends DefaultStyledDocument {
} }
try { try {
String s = " font " + (font+1) + "; ord " + ord + "\n"; String s = " font " + (font+1) + "; ord " + ord + "\n";
insertString(count, s, roman); insertString(count, s, getRomanAttributeSet());
count += s.length(); count += s.length();
} catch (BadLocationException e) { } catch (BadLocationException e) {
throw new Error("badness"); throw new Error("badness");