Fixed a logic bug in mapTMWtoTM and mapTMtoTMW.
You can now specify which Unicode font to use via 'java -Dthdl.tmw.to.unicode.font=Ximalaya ...'.
This commit is contained in:
parent
b6d8fd89f9
commit
917864574c
5 changed files with 61 additions and 32 deletions
|
@ -93,7 +93,8 @@ public final class DuffCode {
|
|||
}
|
||||
|
||||
private void setFontNum(int font) {
|
||||
ThdlDebug.verify(font >= 1 && font <= 10);
|
||||
if (!(font >= 1 && font <= 10))
|
||||
throw new IllegalArgumentException("DuffCodes work with font numbers in the range [1, 5] or [1, 10]. This isn't in the range [1, 10]: " + font);
|
||||
fontNum = font;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue