$NetBSD: patch-ab,v 1.2 2004/05/03 23:00:20 wiz Exp $ --- trans.cc.orig 2000-01-29 04:34:27.000000000 +0100 +++ trans.cc @@ -22,6 +22,8 @@ #include #include #include +#include +using namespace std; // In HP_UX , MAP_FAILED is not defined. msa add 1999.9.26 #ifndef MAP_FAILED @@ -103,6 +105,7 @@ char sErrorMessage[MAX_STR_LEN+1]; char sHomeDir[MAX_STR_LEN+1]; PixmapClass *poBackImage; char* asSearchDirs[]={ + TRANSHOME, "/opt/dic", "/usr/local/dic", "/dic", @@ -2468,6 +2471,11 @@ AppFrame::AppFrame():oAppCore(this) void AppFrame::vInit(int argc,char **argv) { Atom DELETE_WIN; + int i; + + for (i = 1; i < argc; i++) + if (strcmp("-ft", argv[i]) == 0) + fallback[10] = "*fontList:9x15bold=English,hz16ft=Chinese,yb10x20=YB"; wToplevel=XtVaAppInitialize(&app,"transrc", NULL,0,&argc,argv,fallback,