[EMAIL PROTECTED] wrote:

> 
> On Mon, 24 Feb 2003, Angus Leeming wrote:
> 
> 
>> Ok I tested it with LANG == en_US.UTF-8 (Standard RH8 setup).
>> All is fine.

Sorry. All is fone with LANG == C. All is BAD with LANG == en_US.UTF-8. No 
surprise there.

>> This should be set by a flag passed to fl_initialize.
> 
> Can you give me an example code to realize this? Please notice that
> I have to release  CJK-LyX-1.3.0 tomorrow at the latest( I
> promised some CJK-LyX users to release CJK-LyX-1.3.0 early this week).

Attached. This set fl_cntl.fontset if fl_initialize is passed '-fontset'. 
It's up to you to use this variable.

-- 
Angus
--- release/lib/forms.h	2002-06-06 19:05:48.000000000 +0000
+++ CJK-2/lib/forms.h	2003-02-24 12:14:48.000000000 +0000
@@ -2625,7 +2638,7 @@
 typedef struct
 {
     float rgamma, ggamma, bgamma;
-    int debug, sync;
+    int debug, sync, fontset;
     int depth, vclass, doubleBuffer;
     int ulPropWidth, ulThickness;	/* underline stuff       */
     int buttonFontSize;
--- release/lib/flresource.c	2002-06-01 22:09:37.000000000 +0000
+++ CJK-2/lib/./flresource.c	2003-02-24 12:16:43.000000000 +0000
@@ -81,7 +81,8 @@
 #endif
 
 /*    {"-single", "*doubleBuffer", XrmoptionNoArg, (caddr_t) "0"}, */
-    {"-bs", "*backingStore", XrmoptionNoArg, (caddr_t) "0"}
+    {"-bs", "*backingStore", XrmoptionNoArg, (caddr_t) "0"},
+    {"-fontset", "*fontset", XrmoptionNoArg, (caddr_t) "1"}
 };
 
 #define Ncopt  (sizeof(copt)/sizeof(copt[0]))
@@ -99,6 +100,7 @@
 static Bop OpPrivateMap, OpSharedMap, OpStandardMap, OpDouble;
 static Bop OpSync, OpULW = "1";
 static Iop OpDebug, OpDepth, OpULT = "-1";
+static Bop OpFontset;
 static char OpBS[12] = "1";	/* whenmapped */
 static char OpSafe[12];
 static char OpSCBT[16] = "thin";
@@ -142,6 +144,7 @@
 {
     SetR(debug, "Debug", FL_INT, OpDebug, 0),
     SetR(sync, "Sync", FL_BOOL, OpSync, 0),
+    SetR(fontset, "Fontset", FL_BOOL, OpFontset, 0),
 
 #ifdef DO_GAMMA_CORRECTION
     SetR(rgamma, "Gamma", FL_FLOAT, OpRgamma, 0),
@@ -863,6 +866,7 @@
     fl_cntl.vclass = fl_vclass_val(fl_cntl.vname);
     fl_cntl.coordUnit = fl_get_vn_value(vn_coordunit, OpCoordUnit);
 
+    printf("fontset == %d\n", fl_cntl.fontset);
 
 #if (FL_DEBUG >= ML_WARN)	/* { */
     if (fl_cntl.debug)

Reply via email to