summaryrefslogtreecommitdiff
path: root/textproc/stardic/patches/patch-ab
blob: 14f9f711fc7d31962e33957bdae1318c99deb8d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-ab,v 1.1.1.1 2002/06/15 09:21:44 shell Exp $

--- trans.cc.orig	Sat Jan 29 11:34:27 2000
+++ trans.cc
@@ -103,6 +103,7 @@
 char sHomeDir[MAX_STR_LEN+1];
 PixmapClass *poBackImage;
 char* asSearchDirs[]={
+	TRANSHOME,
 	"/opt/dic",
 	"/usr/local/dic",
 	"/dic",
@@ -2468,6 +2469,11 @@
 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,