[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 请问关于 Open Office 的中文字型问题



Rex Tsai wrote:

>  自行检察了字型,用 xlsfont 查验了所有关于 "Times" 的字型。
>  但是一无所获。不过各位有没有任何的经验呢?

    此外, 我也稍微写了一只小程式, 测试自己的 Font Path
    并确定两台机器的 Font Path 下的字型一致。

--
#define PROGNAME "lsfp" /*
name=lsfp

gcc $0 -o $name -L/usr/X11R6/lib -lX11
./$name $@

rm -f ./$name

exit

 ********************************************
 * gcc -o lsfp lsfp.c -L/usr/X11R6/lib -lX11
 *
 * Rex Tsai <chihchun@kalug.linux.org.tw>
 ********************************************
 */
#include <X11/Xlib.h>
#include <stdio.h>

int
main (argc, argv)
    int argc;
    char **argv;
{
        char *displayname = NULL;
        Display *dpy;
        int *npaths;
        char **path;
        int i;

        if(argc == 2)
            displayname = argv[1];

            if((dpy = XOpenDisplay(displayname)) == NULL) {
                 (void) fprintf (stderr, "%s: unable to open display '%s'\n",
                               PROGNAME, XDisplayName (displayname));
                 exit (1);
        }

        if((path = (char **)XGetFontPath(dpy, (int *)&npaths)) != NULL)
            for(i = 0 ;  i < (int)npaths; i ++)
                printf("Path - %d: %s\n", i, path[i]);

        XFreeFontPath(path);
        XCloseDisplay(dpy);
        return 0;
}
--
Just for fun.
。RP□□zf□□y□□b□n(9匪弱狁□lu□jz+□□□n7□□□□汹m儇X憋*'笔-□-□-z铉羞y□□□- 
| This message was re-posted from debian-chinese-big5@lists.debian.org
| and converted from big5 to gb2312 by an automatic gateway.



Reply to: