getWylie now takes a parameter for error detection; I'm not detecting errors
here though. Fixed a typo in a property name.
This commit is contained in:
parent
0d1999d055
commit
0a1bc0d30b
3 changed files with 6 additions and 5 deletions
|
@ -37,7 +37,7 @@ public class ConverterGUI implements FontConversion, FontConverterConstants {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
// No need for the TM or TMW fonts.
|
// No need for the TM or TMW fonts.
|
||||||
System.setProperty("thdl.rely.on.system.tmw.fonts", "true");
|
System.setProperty("thdl.rely.on.system.tmw.fonts", "true");
|
||||||
System.setProperty("thdl.do.not.rely.on.system.tmw.fonts", "false");
|
System.setProperty("thdl.do.not.rely.on.system.tm.fonts", "false");
|
||||||
|
|
||||||
System.exit(realMain(args, System.out, null));
|
System.exit(realMain(args, System.out, null));
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,8 +40,9 @@ public class DuffPaneTest extends TestCase {
|
||||||
// We don't want to use options.txt:
|
// We don't want to use options.txt:
|
||||||
ThdlOptions.forTestingOnlyInitializeWithoutDefaultOptionsFile();
|
ThdlOptions.forTestingOnlyInitializeWithoutDefaultOptionsFile();
|
||||||
|
|
||||||
// We don't want to load the TMW font files ourselves:
|
// We don't want to load the TM or TMW font files ourselves:
|
||||||
ThdlOptions.setUserPreference("thdl.rely.on.system.tmw.fonts", true);
|
ThdlOptions.setUserPreference("thdl.rely.on.system.tmw.fonts", true);
|
||||||
|
ThdlOptions.setUserPreference("thdl.do.not.rely.on.system.tm.fonts", false);
|
||||||
ThdlOptions.setUserPreference("thdl.debug", true);
|
ThdlOptions.setUserPreference("thdl.debug", true);
|
||||||
|
|
||||||
dp = new DuffPane();
|
dp = new DuffPane();
|
||||||
|
@ -87,10 +88,10 @@ public class DuffPaneTest extends TestCase {
|
||||||
private void ensureKeysGiveCorrectWylie(String keys, String wylie) {
|
private void ensureKeysGiveCorrectWylie(String keys, String wylie) {
|
||||||
dp.newDocument(); // initialize to a blank canvas.
|
dp.newDocument(); // initialize to a blank canvas.
|
||||||
fireKeysWithoutModifiers(keys);
|
fireKeysWithoutModifiers(keys);
|
||||||
boolean passes = wylie.equals(dp.getWylie());
|
boolean passes = wylie.equals(dp.getWylie(new boolean[] { false }));
|
||||||
if (!passes) {
|
if (!passes) {
|
||||||
System.out.println("Congrats! These keys, \"" + keys
|
System.out.println("Congrats! These keys, \"" + keys
|
||||||
+ "\", give this wylie, \"" + dp.getWylie()
|
+ "\", give this wylie, \"" + dp.getWylie(new boolean[] { false })
|
||||||
+ "\", not the expected \"" + wylie + "\"");
|
+ "\", not the expected \"" + wylie + "\"");
|
||||||
}
|
}
|
||||||
assertTrue(passes);
|
assertTrue(passes);
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class TibetanConverter implements FontConverterConstants {
|
||||||
static {
|
static {
|
||||||
// No need for the TM or TMW fonts.
|
// No need for the TM or TMW fonts.
|
||||||
System.setProperty("thdl.rely.on.system.tmw.fonts", "true");
|
System.setProperty("thdl.rely.on.system.tmw.fonts", "true");
|
||||||
System.setProperty("thdl.do.not.rely.on.system.tmw.fonts", "false");
|
System.setProperty("thdl.do.not.rely.on.system.tm.fonts", "false");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue