the question about min_bounds and max_bounds setting of xtfont3.c/xtfont4.c/xtfont6.c in xts5

Rui Feng <[email protected]> Tue, 25 Oct 2005 17:30:55 +0800
Newsgroups gmane.linux.lsb.test-suite
Message-ID <OF614D7F47.91654637-ON482570A5.00324469-482570A5.00341821@cn.ibm.com>
Hi all,

In vsw5, there is a switch for min_bounds and max_bounds values in
xtfont3.c,
xtfont4.c and xtfont6.c. It checks whether XT_X_RELEASE is 6.

/* from xtfont6.c */
XFontStruct xtfont6 = {
      (XExtData*)0,
      (Font)0,
      FontRightToLeft,  /* direction */
      0,    /* min_byte2 */
      255,  /* max_byte2 */
      0,    /* min_byte1 */
      1,    /* max_byte1 */
      0,    /* all chars exist */
      2,    /* default char */
      3,    /* n_properties */
      props,
      {-16, -16, -16, -1, -10, 0},
#if XT_X_RELEASE == 6
        {-2, 0, -3, 11, 3, 0},
#else
        {0, 0, 0, 11, 3, 0},
#endif
      perchar,
      11,   /* font ascent */
      3,    /* font descent */
};
/* end */

If so, the following case will fail to run:

/tset/Xlib9/ldqryfnt/Test 1 FAIL
/tset/Xlib9/lstfntswth/Test 3 FAIL
/tset/Xlib9/lstfntswth/Test 4 FAIL
/tset/Xlib9/qryfnt/Test 1 FAIL
/tset/Xlib9/qryfnt/Test 2 FAIL

If XT_X_RELEASE is set to other value except 6 when being built, they
can run successfully.

I searched about it on the web, but could not find any related information.
I also debugged into the source code of xorg, but still couldn't find any
behavior to explain why we do so.

Can anyone give me some guide?

Best Regards!
Feng Rui

Linux Standards, Linux Technology Center, China Systems & Technology Lab
China Development Labs, Beijing
Tel: 86-10-82782244 Ext. 3460 Email: [email protected]

_______________________________________________
lsb-test mailing list
[email protected]
http://mail.freestandards.org/mailman/listinfo/lsb-test