Nicer default Latin font for ACIP->* conversions.

Performance improvement in non-color-coding mode.
This commit is contained in:
dchandler 2003-09-07 22:08:35 +00:00
parent 6872ea8028
commit e42d76b3b8

View file

@ -259,10 +259,10 @@ public class ACIPConverter {
if (null != tdoc) { if (null != tdoc) {
String latinFont String latinFont
= ThdlOptions.getStringOption("thdl.acip.to.x.latin.font", = ThdlOptions.getStringOption("thdl.acip.to.x.latin.font",
"Courier New"); "Times New Roman");
int latinFontSize int latinFontSize
= ThdlOptions.getIntegerOption("thdl.acip.to.x.latin.font.size", = ThdlOptions.getIntegerOption("thdl.acip.to.x.latin.font.size",
20); 18);
tdoc.setRomanAttributeSet(latinFont, latinFontSize); tdoc.setRomanAttributeSet(latinFont, latinFontSize);
regularFontSize = tdoc.getTibetanFontSize(); regularFontSize = tdoc.getTibetanFontSize();
@ -404,9 +404,9 @@ public class ACIPConverter {
} }
if (null != tdoc) { if (null != tdoc) {
duff = sl.getDuff(); duff = sl.getDuff();
if (sl.isLegalTshegBar(true).isLegal && !sl.isLegalTshegBar(false).isLegal) { if (colors && sl.isLegalTshegBar(true).isLegal && !sl.isLegalTshegBar(false).isLegal) {
color = Color.YELLOW; color = Color.YELLOW;
} else if (sl.isLegalTshegBar(false).isLegal) { } else if (colors && sl.isLegalTshegBar(false).isLegal) {
color = Color.BLACK; color = Color.BLACK;
} else { } else {
// Sanskrit // Sanskrit