dtudcfonted, dtudcexch: delete from repository

This commit is contained in:
Jon Trulson
2018-06-27 18:05:34 -06:00
parent 53086aa9df
commit e0036e6167
122 changed files with 0 additions and 58123 deletions

View File

@@ -1,411 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: FaLib.h /main/5 1996/06/25 20:08:31 cde-fuj $ */
/*
* (c) Copyright 1995 FUJITSU LIMITED
* This is source code modified by FUJITSU LIMITED under the Joint
* Development Agreement for the CDEnext PST.
* This is unpublished proprietary source code of FUJITSU LIMITED
*/
#ifndef _FALIB_H
#define _FALIB_H
#ifdef __cplusplus
extern "C" {
#endif
#define FAL_ERROR -1
extern int fal_utyerror; /* library error information */
extern int fal_utyderror; /* library error information */
extern int fal_utyexists; /* existence's flag of font pattern */
extern unsigned long fal_utyerrno ; /* library error information */
extern char fal_err_file[] ;
/*
*
* structure of the font information
*
*/
/*
* the equipment of output permission
*/
#define FAL_FONT_DISPLAY 1
#define FAL_FONT_PRINTER 2
#define FAL_FONT_GLYPH_INDEX -1
/*
* codeset
*/
#define FAL_FONT_CS0 1
#define FAL_FONT_CS1 2
#define FAL_FONT_CS2 3
#define FAL_FONT_CS3 4
#define FAL_FONT_CS4 5
#define FAL_FONT_CS5 6
#define FAL_FONT_CS6 7
#define FAL_FONT_CS7 8
#define FAL_FONT_CS8 9
/*
* font search mask
*/
#define FAL_FONT_MASK_XLFDNAME (1L<<1)
#define FAL_FONT_MASK_SIZE_W (1L<<2)
#define FAL_FONT_MASK_SIZE_H (1L<<3)
#define FAL_FONT_MASK_LETTER_W (1L<<4)
#define FAL_FONT_MASK_LETTER_H (1L<<5)
#define FAL_FONT_MASK_LETTER_X (1L<<6)
#define FAL_FONT_MASK_LETTER_Y (1L<<7)
#define FAL_FONT_MASK_STYLE_DEF (1L<<8)
#define FAL_FONT_MASK_STYLE_NAME (1L<<9)
#define FAL_FONT_MASK_SHAPE_DEF (1L<<10)
#define FAL_FONT_MASK_SHAPE_NAME (1L<<11)
#define FAL_FONT_MASK_CODE_SET (1L<<14)
#define FAL_FONT_MASK_PERMISSION (1L<<15)
#define FAL_FONT_MASK_DEL_EQUALDATA (1L<<16)
#define FAL_FONT_MASK_CHECK_ALL 0x1FFFF
#define FAL_FONT_MASK_GLYPH_INDEX (1L<<17)
#define FAL_FONT_MASK_UPDATE (1L<<18)
#define FAL_FONT_MASK_DEFINED (1L<<19)
#define FAL_FONT_MASK_UNDEFINED (1L<<20)
/*
* undefined the character style,shape
*/
#define FAL_FONT_UNKNOWN 0
/*
* definition's data of character style
*/
#define FAL_FONT_MINCHO 1
#define FAL_FONT_STR_MINCHO "mincho"
#define FAL_FONT_GOTHIC 2
#define FAL_FONT_STR_GOTHIC "gothic"
#define FAL_FONT_MARU_GOTHIC 3
#define FAL_FONT_STR_MARU_GOTHIC "maru_gothic"
#define FAL_FONT_TEXTBOOK 4
#define FAL_FONT_STR_TEXTBOOK "textbook"
#define FAL_FONT_BRASH_GYOU 5
#define FAL_FONT_STR_BRASH_GYOU "brash_gyou"
#define FAL_FONT_BRASH_KAI 6
#define FAL_FONT_STR_BRASH_KAI "brash_kai"
#define FAL_FONT_HANDWRITING 7
#define FAL_FONT_STR_HANDWRITING "handwriting"
/*
* definition's data of character shape
*/
#define FAL_FONT_ZENKAKU 1
#define FAL_FONT_STR_ZENKAKU "zenkaku"
#define FAL_FONT_HANKAKU 2
#define FAL_FONT_STR_HANKAKU "hankaku"
#define FAL_FONT_QUARTER 3
#define FAL_FONT_STR_QUARTER "1/4kaku"
/*
* structures for font informations
*/
typedef struct {
int width; /* width */
int height; /* height */
int top; /* the head code */
int bottom; /* the final code */
} FalFontinfo ;
typedef struct {
int num;
char **path;
} FalFontPath;
typedef struct {
int def; /* definition data */
char *name; /* the information of the character line */
}FalFontDB;
/*
* structure of the font information
*/
typedef struct {
char *xlfdname; /* xlfd name */
struct {
int w; /* the width of the character size */
int h; /* the height of the character size */
}size;
struct {
int w; /* the width of the letter size */
int h; /* the height of the letter size */
int x; /* position x of the letter size */
int y; /* position y of the letter size */
}letter;
FalFontDB style; /* character style */
FalFontDB shape; /* character shape */
FalFontDB reserve ; /* reserve */
int cd_set; /* codeset */
int prm; /* the equipment of output permission */
}FalFontData;
typedef struct {
int num; /* the number of font data*/
FalFontData *list; /* the pointer to the array of
FalFontData structure */
}FalFontDataList;
/*
* UDC infomations
*/
typedef struct _FalCodeRegion {
int start ; /* first code */
int end ; /* last code */
} FalCodeRegion ;
typedef struct _FalGlyphRegion {
int start ; /* first glyph index */
int end ; /* last glyph index */
} FalGlyphRegion ;
typedef struct _FalGIInf {
char *charset_str; /* charcter set */
int glyph_index; /* glyph index */
} FalGIInf;
/*
* structure of the font identifier
*/
#include <X11/Xos.h>
#include <X11/Xmd.h>
#include <X11/X.h>
#include <X11/Xproto.h>
#include <stdlib.h>
#include <dirent.h>
#ifdef Bool
#undef Bool
#endif
#include "snfstruct.h"
#include "fontstruct.h"
#include "pcf.h"
struct pcf_inf {
FontInfoRec info;
xCharInfo org_bounds;
PCFTablePtr tables;
int ntables;
CARD32 bmp_fmt; /* bitOrder ,byteOrder, glyph, scan */
int nbitmaps;
CARD32 *offsets;
int sizebitmaps;
char *bitmaps;
CARD32 enc_fmt;
CARD16 *encodingOffsets;
};
typedef struct _Oak_Finf {
int ismmap; /* used mmap()? */
int fsize; /* file size */
int fd; /* file descripter */
int isFef;
char *buf; /* font file allocated on memory */
char *fname; /* name of font file */
/* added by Rudie */
int isPcf;
struct pcf_inf pcfinf;
/* added by Rudie */
FontInfoPtr pFinf;
CharInfoPtr pCinf;
unsigned char *pGlyphs;
unsigned int width;
unsigned int height;
unsigned int start;
unsigned int end;
int sptnBufL;
char *sptnBuf;
int dptnBufL;
char *dptnBuf;
int dbufL;
char *dbuf;
} Oak_FontInf;
typedef Oak_FontInf * FalFontID; /* font distinction */
/*
* function prototypes
*/
extern FalFontID FalOpenSysFont(
#if NeedFunctionPrototypes
FalFontData* /* open_font_data */,
int /* font_data_mask */,
FalFontDataList** /* missing_font_list_return */
#endif
) ;
extern int FalGetFontList(
#if NeedFunctionPrototypes
FalFontData* /* key_data */,
int /* mask */,
FalFontDataList** /* list_ret */
#endif
) ;
extern int FalFreeFontList(
#if NeedFunctionPrototypes
FalFontDataList* /* list */
#endif
) ;
extern char *
FalReadFont(
#if NeedFunctionPrototypes
FalFontID /* fid */ ,
int /* code */ ,
int /* width */ ,
int /* height */
#endif
) ;
extern int FalQueryFont(
#if NeedFunctionPrototypes
FalFontID /* fid */ ,
FalFontinfo* /* fontinfo */
#endif
) ;
extern int FalFontOfFontID(
#if NeedFunctionPrototypes
FalFontID /* fid */,
FalFontData* /* fontdata */
#endif
) ;
extern int FalCloseFont(
#if NeedFunctionPrototypes
FalFontID /* fid */
#endif
) ;
extern int FalFontIDToFileName(
#if NeedFunctionPrototypes
FalFontID /* fid */ ,
char** /* file_name */
#endif
) ;
extern int FalFree(
#if NeedFunctionPrototypes
void* /* list */
#endif
) ;
extern int FalGetUDCCPArea(
#if NeedFunctionPrototypes
char* /* locale */ ,
int /* code_set */ ,
char* /* charset_str */ ,
FalCodeRegion** /* cr */ ,
int* /* num_cr */
#endif
) ;
extern int FalGetUDCGIArea(
#if NeedFunctionPrototypes
char* /* locale */ ,
int /* codeset */ ,
char* /* charset_str */ ,
FalGlyphRegion** /* gr */ ,
int* /* num_gr */
#endif
) ;
extern FalFontID FalOpenFont() ;
/*
* Code set
*/
#define FALGETFALCODESET( cd_set ) ( ((cd_set)==-1) ? FAL_FONT_GLYPH_INDEX : (cd_set)+1 )
#define FALCODESETTONUM( cd_set ) ( ((cd_set)==FAL_FONT_GLYPH_INDEX) ? -1 : (cd_set)-1 )
/*
* fal_utyerrno
*/
#define FAL_FUNCNUM_GFLST 0x0
#define FAL_FUNCNUM_SRCHFNM 0x0
#define FAL_FUNCNUM_OPNFNT 0x0
#define FAL_FUNCNUM_FRFLST 0x0
#define FAL_FUNCNUM_RDFNT 0x0
#define FAL_FUNCNUM_QRY 0x0
#define FAL_FUNCNUM_FID 0x0
#define FAL_FUNCNUM_IDTOFNM 0x0
#define FAL_FUNCNUM_CLSFNT 0x0
#define FAL_FUNCNUM_CPA 0x0
#define FAL_FUNCNUM_GIA 0x0
#define FAL_FUNCNUM_FREE 0x0
#define FAL_ERR_NON 0x00
#define FAL_ERR_FNT_OPN 0x01
#define FAL_ERR_FNT_RD 0x02
#define FAL_ERR_MALLOC 0x03
#define FAL_ERR_PARM 0x04
#define FAL_ERR_STAT 0x05
#define FAL_ERR_FONT 0x06
#define FAL_ERR_FDATA_OPN 0x07
#define FAL_ERR_FDATA_RD 0x08
#define FAL_ERR_FDATA_DSC 0x09
#define FAL_ERR_FPATH 0x0a
#define FAL_ERR_FNTDIR_OPN 0x0b
#define FAL_ERR_FNTDIR_RD 0x0c
#define FAL_ERR_PROP_RD 0x0d
#define FAL_ERR_PROP_FONT 0x0e
#define FAL_ERR_PROP_FNAME 0x0f
#define FAL_ERR_LCKD 0x10
#define FAL_ERR_FILELCK 0x11
#define FAL_ERR_FILEUNLCK 0x12
#define FAL_ERR_FILEGETLCK 0x13
#define FAL_ERR_NOFONT 0x14
#define FAL_ERR_XLC_CRTDB 0x15
#define FAL_ERR_XLC_GETCHARST 0x16
#define FAL_ERR_XLC_NOCHARST 0x17
#define FAL_ERR_FID_RD 0x18
#define FAL_ERR_FATAL 0x19
#ifdef __cplusplus
}
#endif
#endif /* _FALIB_H */

View File

@@ -1,617 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: bdfgpf.h /main/7 1996/06/25 20:08:09 cde-fuj $ */
/*
* (c) Copyright 1995 FUJITSU LIMITED
* This is source code modified by FUJITSU LIMITED under the Joint
* Development Agreement for the CDEnext PST.
* This is unpublished proprietary source code of FUJITSU LIMITED
*/
#include "udccom.h"
struct btophead {
char *in_file;
char *out_file;
char *text_file;
FILE *input;
FILE *output;
int num_chars;
int p_width;
int p_height;
int bdf_width;
int bdf_height;
int bdf_x;
int bdf_y;
float bdf_point;
int bdf_xdpi;
int *code;
char **ptn;
int zoomf;
int code_category;
int start_code;
int end_code;
};
struct ptobhead {
char *in_file;
char *out_file;
char *bdf_file;
char *snf_file;
FILE *input;
FILE *output;
int num_chars;
int p_width;
int p_height;
int bdf_width;
int bdf_height;
int bdf_x;
int bdf_y;
float bdf_point;
int bdf_xdpi;
int reserve ;
int *code;
char **ptn;
int zoomf;
int code_category;
int start_code;
int end_code;
};
#define MIN_CODE 0x0000
#define MAX_CODE 0xFFFF
#define ALL_CODE 0
extern char *oakgtobdf;
extern char *bdftosnf;
extern char *bdftopcf;
#define TAB_CD 0x09
#define USE_ORG_SIZE -1
#define MAX_FONT_WIDTH 999
#define MIN_FONT_WIDTH 2
#define MAX_FONT_HEIGHT 999
#define MIN_FONT_HEIGHT 2
#ifdef BUFSIZE
#undef BUFSIZE
#endif /* BUFSIZE */
#define BUFSIZE 1024
/* KeyWord for BDF file */
#define STARTFONT "STARTFONT "
#define STARTFONTsz 10
#define FONTBOUNDINGBOX "FONTBOUNDINGBOX "
#define FONTBOUNDINGBOXsz 16
#define SIZE "SIZE "
#define SIZEsz 5
#define CHARS "CHARS "
#define CHARSsz 6
#define STARTCHAR "STARTCHAR "
#define STARTCHARsz 10
#define ENCODING "ENCODING "
#define ENCODINGsz 9
#define BITMAP "BITMAP"
#define BITMAPsz 6
#define ENDCHAR "ENDCHAR"
#define ENDCHARsz 7
#define ENDFONT "ENDFONT"
#define ENDFONTsz 7
#define CHARSET_REGISTRY "CHARSET_REGISTRY "
#define CHARSET_REGISTRYsz 17
/* KeyWord for GPF file */
#define NUMFONTS "numfonts:"
#define NUMFONTSsz 9
#define WIDTH "width:"
#define WIDTHsz 6
#define HEIGHT "height:"
#define HEIGHTsz 7
#define CODE "code:"
#define CODEsz 5
#define ENDDATA "enddata"
#define ENDDATAsz 7
#define FILE_END 99
#define FATAL_ERROR -1
#define BDF_OPEN -2
#define BDF_OPEN_IN -2
#define BDF_READ -3
#define BDF_WRITE -4
#define BDF_INVAL -5
#define GPF_OPEN -6
#define GPF_OPEN_IN -6
#define GPF_READ -7
#define GPF_WRITE -8
#define GPF_INVAL -9
#define PARAM_ERROR -10
#define BDF_OPEN_OUT -11
#define GPF_OPEN_OUT -12
#define BDF_OPEN_HEAD -13
#define BDF_READ_HEAD -14
/* system_ call error */
#define MALLOC_ERROR -15
#define FORK_ERROR -16
#define EXEC_ERROR -17
#define PIPE_ERROR -18
#define DUP_ERROR -19
#define POPEN_ERROR -20
#define PCLOSE_ERROR -21
#define FDOPEN_ERROR -22
#define STAT_ERROR -23
#define MKTMP_ERROR -24
#define PCFFONTC_ERROR -25
#define SNFFONTC_ERROR -26
#define SCAN_TO_NONSP(p) {\
while (*(p) != 0) {\
if ((*(p) == ' ') || (*(p) == TAB_CD) || (*(p) == 0xa1)) {\
(p)++;\
} else {\
break;\
}\
}\
}
#define SCAN_TO_SP(p) {\
while (*(p) != 0) {\
if ((*(p) == ' ') || (*(p) == TAB_CD) || (*(p) == 0xa1)) {\
break;\
} else {\
(p)++;\
}\
}\
}
#if defined( SVR4 ) || defined( SYSV )
#define WaitID( chld_pid, chld_stat ) waitpid( (chld_pid), &(chld_stat), WUNTRACED )
#else
#define WaitID( chld_pid, chld_stat ) {\
for(;;){\
int rtn ;\
rtn = wait3( &(chld_stat), WUNTRACED, NULL );\
if( rtn == (chld_pid) ) break ;\
if( rtn == -1 ){\
if( errno == EINTR ) continue ;\
else break ;\
}\
}\
}
#endif
#ifndef DEFAULT_CODESET
#define DEFAULT_CODESET "3"
#endif
/*
* tempory file
*/
#define TempFileKey "XXXXXX"
#define TEMPFILEKEY TempFileKey
#ifndef DEFAULT_TMPPATH
#define DEFAULT_TMPPATH "/var/tmp/"
#endif /* DEFAULT_TMPPATH */
/*
* Function prototypes
*/
extern int falcom_atoi(
#if NeedFunctionPrototypes
char* /* str */,
char /* ed_cod */,
int* /* val */
#endif
);
extern int GetDefaultFile(
#if NeedFunctionPrototypes
int /* size */,
char* /* style */,
char* /* fname */
#endif
);
extern int get_default_file(
#if NeedFunctionPrototypes
FILE* /* fp */,
int /* size */,
char* /* style */,
char* /* fname */
#endif
);
extern char *falcom_get_base_name(
#if NeedFunctionPrototypes
char* /* str */
#endif
);
extern int GetFileName(
#if NeedFunctionPrototypes
char* /* com */,
char* /* size_str */,
char* /* style */,
int /* codeset */,
char* /* ofile */
#endif
);
extern void ErrMsgTable_FalGetFontList(
#if NeedFunctionPrototypes
char* /* com */,
int /* utyerr */,
int /* utyderr */
#endif
);
extern void fal_cut_tailslash(
#if NeedFunctionPrototypes
char* /* name */
#endif
);
extern char *GetRealFileName(
#if NeedFunctionPrototypes
char* /* name */
#endif
);
extern int IsInRegion(
#if NeedFunctionPrototypes
int /* code */,
int /* num_gr */,
FalGlyphRegion* /* gr */
#endif
);
extern int GetUdcFileName(
#if NeedFunctionPrototypes
char* /* com */,
int /* code_no */,
char* /* xlfdname */,
char* /* fname */
#endif
);
extern int GetUdcRegion(
#if NeedFunctionPrototypes
char* /* com */,
int /* codeset */,
char* /* gpf_file */,
int* /* num_gr */,
FalGlyphRegion** /* gr */
#endif
);
extern int DispUdcCpArea(
#if NeedFunctionPrototypes
FILE* /* fp */
#endif
);
extern int GetUdcFontName(
#if NeedFunctionPrototypes
char* /* gpf_file */,
char* /* bdf_file */,
char** /* fontname */
#endif
);
extern int FileLock(
#if NeedFunctionPrototypes
int /* fd */
#endif
);
extern int FileUnLock(
#if NeedFunctionPrototypes
int /* fd */
#endif
);
extern int isLock(
#if NeedFunctionPrototypes
int /* fd */
#endif
);
extern int ReadBdfHeader(
#if NeedFunctionPrototypes
struct btophead* /* head */,
char* /* buf */
#endif
);
extern int ReadGpfHeader(
#if NeedFunctionPrototypes
struct ptobhead* /* head */,
char* /* buf */
#endif
);
extern int WriteBdfHeader(
#if NeedFunctionPrototypes
struct ptobhead* /* head */
#endif
);
extern void WriteGpfHeader(
#if NeedFunctionPrototypes
struct btophead* /* head */
#endif
);
extern int WritePtnToBdf(
#if NeedFunctionPrototypes
struct ptobhead* /* head */
#endif
);
extern int putDefaultChars(
#if NeedFunctionPrototypes
struct ptobhead* /* head */
#endif
);
extern int WritePtnToGpf(
#if NeedFunctionPrototypes
struct btophead* /* head */
#endif
);
extern int ReadBdfToMemory(
#if NeedFunctionPrototypes
struct btophead* /* head */,
char* /* buf */
#endif
);
extern int ReadBdfToMemory_with_init(
#if NeedFunctionPrototypes
struct btophead* /* head */,
int /* init_start */,
int /* init_end */,
char* /* buf */
#endif
);
extern int GetBdfCode(
#if NeedFunctionPrototypes
struct btophead* /* head */,
char* /* buf */,
int* /* code */
#endif
);
extern int GetBdfPtn(
#if NeedFunctionPrototypes
struct btophead* /* head */,
char* /* buf */,
char* /* ptn */,
int /* mwidth */,
int /* bsize */
#endif
);
extern int ReadGpfToMemory(
#if NeedFunctionPrototypes
struct ptobhead* /* head */,
char* /* buf */
#endif
);
extern int GetGpfCode(
#if NeedFunctionPrototypes
struct ptobhead* /* head */,
char* /* buf */,
int* /* code */
#endif
);
extern int GetGpfPtn(
#if NeedFunctionPrototypes
struct ptobhead* /* head */,
char* /* buf */,
char* /* ptn */,
int /* mwidth */,
int /* bsize */
#endif
);
extern void GetBdfLinePtn(
#if NeedFunctionPrototypes
char* /* mem */,
char* /* buf */,
int /* width */
#endif
);
extern void GetGpfLinePtn(
#if NeedFunctionPrototypes
char* /* mem */,
char* /* buf */,
int /* width */
#endif
);
extern int PutBdfPtn(
#if NeedFunctionPrototypes
unsigned char* /* ptn */,
int /* width */,
int /* height */,
FILE* /* fp */
#endif
);
extern int PutGpfPtn(
#if NeedFunctionPrototypes
char* /* ptn */,
int /* width */,
int /* height */,
FILE* /* fp */
#endif
);
extern int PtnZoom(
#if NeedFunctionPrototypes
char* /* dmem */,
char* /* smem */,
int /* sw */,
int /* sh */,
int /* dw */,
int /* dh */
#endif
);
extern char *GetTmpPath(
#if NeedFunctionPrototypes
char* /* path */
#endif
);
extern int ChkNumString(
#if NeedFunctionPrototypes
char* /* str */
#endif
);
extern void ErrMsgTable_AndExit(
#if NeedFunctionPrototypes
int /* er_no */,
char* /* snf_in */,
char* /* snf_out */,
char* /* gpf_in */,
char* /* gpf_out */,
char* /* bdf_in */,
char* /* prog_name */
#endif
);
extern void fatal_err_msg(
#if NeedFunctionPrototypes
int /* er_no */,
char* /* prog_name */
#endif
);
extern void ChatchSig() ;
extern void Put_File_Create_Err_Msg(
#if NeedFunctionPrototypes
int /* msg_level */,
char* /* org_name */,
char* /* tmp_name */,
char* /* save_name */,
char* /* com */
#endif
);
extern int Make_NewFefFile(
#if NeedFunctionPrototypes
char* /* org_name */,
char* /* tmp_name */,
mode_t /* mode */,
uid_t /* owner */,
gid_t /* group */,
char* /* com */
#endif
);
extern int Unlink_Tmpfile(
#if NeedFunctionPrototypes
char* /* file */,
char* /* com */
#endif
);
extern int Chmod_File (
#if NeedFunctionPrototypes
char* /* fname */,
mode_t /* mode */,
char* /* com */
#endif
);
extern int Chown_File (
#if NeedFunctionPrototypes
char* /* fname */,
uid_t /* owner */,
gid_t /* group */,
char* /* com */
#endif
);
extern int ChkPcfFontFile(
#if NeedFunctionPrototypes
char* /* filename */
#endif
);
extern int ChkSnfFontFile(
#if NeedFunctionPrototypes
char* /* filename */
#endif
);
extern char *get_cmd_path(
#if NeedFunctionPrototypes
char* /* path */,
char* /* cmd */
#endif
);
extern int SetCmdPath(
#if NeedFunctionPrototypes
char* /* com */,
char** /* path */,
char* /* dflt_path */,
char* /* cmd */
#endif
);
extern int
Link_NewFile(
#if NeedFunctionPrototypes
char * /* rd_file */,
char * /* wr_file */
#endif
) ;

View File

@@ -1,122 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: snfstruct.h /main/2 1996/02/10 16:25:06 cde-fuj $ */
/***********************************************************
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the names of Digital or MIT not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
(c) Copyright 1995 FUJITSU LIMITED
This is source code modified by FUJITSU LIMITED under the Joint
Development Agreement for the CDEnext PST.
This is unpublished proprietary source code of FUJITSU LIMITED
******************************************************************/
#ifndef SNFSTRUCT_H
#define SNFSTRUCT_H 1
#include "font.h"
#include "misc.h"
#include <X11/Xlib.h>
/*
* This file describes the Server Natural Font format.
* SNF fonts are both CPU-dependent and frame buffer bit order dependent.
* This file is used by:
* 1) the server, to hold font information read out of font files.
* 2) font converters
*
* Each font file contains the following
* data structures, with no padding in-between.
*
* 1) The XFONTINFO structure
* hand-padded to a two-short boundary.
* maxbounds.byteoffset is the total number of bytes in the
* glpyh array
* maxbounds.bitOffset is thetotal width of the unpadded font
*
* 2) The XCHARINFO array
* indexed directly with character codes, both on disk
* and in memory.
*
* 3) Character glyphs
* padded in the server-natural way, and
* ordered in the device-natural way.
* End of glyphs padded to 32-bit boundary.
*
* 4) nProps font properties
*
* 5) a sequence of null-terminated strings, for font properties
*/
#define FONT_FILE_VERSION 4
typedef struct _FontProp {
CARD32 name; /* offset of string */
INT32 value; /* number or offset of string */
Bool indirect; /* value is a string offset */
} FontPropRec;
/*
* the following macro definitions describe a font file image in memory
*/
#define ADDRCharInfoRec( pfi) \
((CharInfoRec *) &(pfi)[1])
#define ADDRCHARGLYPHS( pfi) \
(((char *) &(pfi)[1]) + BYTESOFCHARINFO(pfi))
/*
* pad out glyphs to a CARD32 boundary
*/
#define ADDRXFONTPROPS( pfi) \
((DIXFontProp *) ((char *)ADDRCHARGLYPHS( pfi) + BYTESOFGLYPHINFO(pfi)))
#define ADDRSTRINGTAB( pfi) \
((char *)ADDRXFONTPROPS( pfi) + BYTESOFPROPINFO(pfi))
#define BYTESOFFONTINFO(pfi) (sizeof(FontInfoRec))
#define BYTESOFCHARINFO(pfi) (sizeof(CharInfoRec) * n2dChars(pfi))
#define BYTESOFPROPINFO(pfi) (sizeof(FontPropRec) * (pfi)->nProps)
#define BYTESOFSTRINGINFO(pfi) ((pfi)->lenStrings)
#define BYTESOFGLYPHINFO(pfi) (((pfi)->maxbounds.byteOffset+3) & ~0x3)
#define BYTESOFINKINFO(pfi) (sizeof(CharInfoRec) * (2 + n2dChars(pfi)))
#endif /* SNFSTRUCT_H */

View File

@@ -1,71 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: udccom.h /main/5 1996/07/19 20:31:51 cde-fuj $ */
/*
* (c) Copyright 1995 FUJITSU LIMITED
* This is source code modified by FUJITSU LIMITED under the Joint
* Development Agreement for the CDEnext PST.
* This is unpublished proprietary source code of FUJITSU LIMITED
*/
#include "udcopt.h"
/* default path of dtaddcpf */
#define DFLTPATH "/usr/dt/lib/dtudcfonted/dtaddcpf"
#define DFLTCMD "dtaddcpf"
/* commands for exchange font format */
#define SNFTOBDF_CMD "dtgpftobdf"
#define BDFTOPCF_CMD "bdftopcf"
/* default path for commands */
#define SNFTOBDF "/usr/dt/lib/dtudcfonted/dtgpftobdf"
#ifndef FONTC
#define BDFTOPCF "/usr/bin/X11/bdftopcf"
#else
#define BDFTOPCF FONTC
#endif
#define PCFTOBDF SNFTOBDF
/* suffix of font file */
#define BDFSUFFIX ".bdf"
#define PCFSUFFIX ".pcf"
/* font information file */
#define DTUDCFONTS "DTUDCFONTS"
#ifndef DTUDCFONTSLISTDIR
#define DTUDCFONTSLISTDIR "/usr/dt/config"
#endif
/* default font path */
#ifndef DTUDCFONTPATH
#define DTUDCFONTPATH "/usr/lib/X11/fonts/misc"
#endif
/* defines for UDC fonts */
#define FONTS_LIST_FILE "fonts.list"
#define UDFLIST_DEF "udflist.def"
#define FONTSDIR "fonts.dir"

View File

@@ -1,269 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: udcopt.h /main/4 1996/11/08 01:59:43 cde-fuj $ */
/*
* (c) Copyright 1995 FUJITSU LIMITED
* This is source code modified by FUJITSU LIMITED under the Joint
* Development Agreement for the CDEnext PST.
* This is unpublished proprietary source code of FUJITSU LIMITED
*/
/***********************************************************************
* SNF format font
**********************************************************************/
#define BDFTOSNF_CMD "bdftosnf"
#ifndef SNFFONTC
#define BDFTOSNF "/usr/bin/X11/bdftosnf"
#else
#define BDFTOSNF SNFFONTC
#endif
#define SNFSUFFIX ".snf"
#define FONT_FILE_PARM 0
#define COMM_SNF_POPEN( permission, snf_file, out_file, ep, buf, command ) { \
snprintf( (buf), sizeof((buf)), " -i " ) ; \
snprintf( (command), sizeof((command)), "%s %s > %s", bdftosnf, (buf), (out_file) ); \
}
#define COMM_SNF_FILEVERSION( snf_fd, finf, buf, permission ) { \
read( (snf_fd), (buf), sizeof(FontInfoRec) ); \
close( (snf_fd) ); \
(finf) = (FontInfoRec *) (buf) ; \
if( \
((finf)->version1 != FONT_FILE_VERSION) || \
((finf)->version2 != FONT_FILE_VERSION) \
) \
(permission) = -1 ; \
}
#define COMM_SNF_NEWTARGET( permission ) (permission) = 0
#define COMM_SNF_EXECLBDFTOSNF( permission, buf, snf_file ) { \
execl( bdftosnf, bdftosnf, "-i", 0 ); \
}
#define COMM_SNF_GETHEADER( fip, fp ) { \
(fip) = (FontInfoRec *)(fp); \
}
#define FAL_FONT_PRM 0
#define CHK_PROTECT_KEY( protect_key_data, openfontfile,\
fal_utyerror, fal_utyderror )
/* case of a snf former font */
#define FAL_GET_SNF_HEADER( buf, protect_key_data, fal_utyerror, fal_utyderror, fd, finf, openfontfile ) { \
(finf)->pFinf = ( FontInfoPtr )(buf); \
if ( \
((finf)->pFinf->version1 != (finf)->pFinf->version2) || \
((finf)->pFinf->version1 != FONT_FILE_VERSION) \
) { \
set_errfile_str( fal_err_file, (openfontfile) ) ; \
(fal_utyerror) = _FAL_FONT_ER; \
(fal_utyderror) = 0; \
fal_utyerrno = FAL_ERR_FONT ; \
fal_utyerrno |= (FAL_FUNCNUM_OPNFNT<<8) ; \
goto FalError01 ; \
} else { \
(finf)->isFef = TRUE ; \
(finf)->isPcf = FALSE; \
} \
}
/* falReadGpfProp() */
#define FAL_READ_SNF_HEADER( finf, protect_key_data, fal_utyerror, fal_utyderror ) { \
(finf)->isFef = TRUE; \
(finf)->isPcf = FALSE; \
(finf)->pFinf = ( FontInfoPtr )(finf)->buf ; \
if ( /* not a snf or fef format */ \
((finf)->pFinf->version1 != (finf)->pFinf->version2) || \
((finf)->pFinf->version1 != FONT_FILE_VERSION) \
) { \
return _FAL_TRY_NEXT ; \
} \
}
#define ISOPTFONT( file ) 1
/***********************************************************************
* glyph index
**********************************************************************/
#define SHIFTMASK 0x7F7F
#define SHIFT_OFF(co) (co)
#define SHIFT_ON(co) (co)
#define DEFAULTCHAR 0x2121
#define CONVGLYPHINDEX( code ) (code)
#define DISPCODEPOINT( char_set, code ) (code)
#define FAL_OPT_CONVGITOCP( codeset, code )
#define FAL_OPT_CONVCPTOGI( codeset, code )
/***********************************************************************
* options for commands
**********************************************************************/
#define NORMAL 0
#define SYSTM 1
#define CDSET1 (1<<2)
/* UDC code area */
#define IN_CODE( cc, co ) (( cc ) ? 1 : 1 )
/* libfuty */
#define COMM_SBOPT_CHECKSBOPT( com, code_area )
#define COMM_SBOPT_STRCMP( argv, cnt ) (((argv)[(cnt)] ? 0 : 0 ))
#define COMM_SBOPT_SETSBOPT( codearea )
#define COMM_TYPE_STRCMP( argv, cnt ) ( ((argv)[(cnt)] ? 0 : 0 ))
#define COMM_TYPE_SETTYPE( argc, argv, cnt, type )
/***********************************************************************
* options for commands
**********************************************************************/
#define COMM_SETDEFAULTSTYLE( style ) (style) = (char *)NULL
#define COMM_SETSTYLE_TO_FONTDATA( style, key, mask ) { \
if( style ) { \
char stylebuf[ BUFSIZE ] ; \
snprintf( stylebuf, sizeof(stylebuf), "%s", style ) ; \
key.style.name = stylebuf ; \
mask |= FAL_FONT_MASK_STYLE_NAME ; \
} \
}
#define COMM_ISDEFAULTCHAR( code ) 0
#define get_charset_registry(head, p)
#define put_default_chars(head, nchar, rtn) {\
if ( !(nchar) ) \
{\
(nchar)++;\
fprintf( (head)->output, "CHARS %d\n", (nchar) );\
if ( ( (rtn) = putDefaultChars( (head) ) ) != 0 ) {\
return (rtn);\
}\
} else {\
fprintf( (head)->output, "CHARS %d\n", (nchar) );\
}\
}
#define put_default_encode( head ) {\
fprintf((head)->output, "STARTCHAR %04x\n", DEFAULTCHAR );\
fprintf((head)->output, "ENCODING %d\n", DEFAULTCHAR );\
}
#define put_default_bitmap(head, bytew, posbit, i, j, ptnbuf, ptnbuf2, tmp) { \
for ((i) = 0; (i) < (bytew); (i)++) \
*((ptnbuf) + (i)) = (unsigned char)0x00;\
for ((j) = 0; (j) < (head)->bdf_height; (j)++) {\
for ((i) = 0; (i) < (bytew); (i)++) \
fprintf((head)->output, "%.2x", *((ptnbuf) + (i)));\
fprintf((head)->output, "\n");\
}\
}
#define COMM_SBFNT_ISSBFNT( p ) 0
#define COMM_SBFNT_CONVCODETOGI( char_set, head )
#define COMM_SBFNT_SETUDCAREA( com, head, char_set, code_area, num_gr, gr ) { \
(head).code_category = ALL_CODE ; \
(head).start_code = (gr)[0].start ; \
(head).end_code = (gr)[(num_gr)-1].end ; \
}
#define COMM_SET_CODESET( codeset, code_area )
#define COMM_SET_CODECATEGORY( char_set, code_area, head )
/*
* help message
*/
#define COMM_HELP_MSG { \
USAGE(" [-codeset number] [-help]\n"); \
USAGE("\n"); \
}
#define COMM_DSP_LETTER_T
#define COMM_DSP_PRM
#define COMM_HELP_MSG_STYLE USAGE("style (The default value is mincho style.)\n")
/***********************************************************************
* Options for libfal
**********************************************************************/
#define COMM_SBCHR_SETFONTDATA( data, mask )
#define COMM_SBCHR_STRDUP_P( data, odata )
#define FAL_DB_OPTION static FalFontDB *fal_db_opt
#define CHK_KEY_STR_OPTION( mask, key, flg )
#define FAL_FREE_FONTLIST_OPTION( list )
#define FAL_CLEAR_DATA_OPTION( tmp )
#define SET_STRUCT_OPTION( dup_p, elm, tmp_data, fal_utyerror, fal_db_group )
#define FAL_EQ_DATA_OPTION( flg, data, tmp_data )
#define FAL_CMP_DATA_OPTION( mask, op1, key )
#define DEF_STR_CHK struct { int style, shape; }str_chk
#define DEF_STR_SET { \
str_chk.style = 0; \
str_chk.shape = 0; \
}
#define NEW_TARGET_SET( diff, choose, target, str_chk )
#define NEW_TARGET_CHK( diff, choose, target, str_chk )
/***********************************************************************
* udflist.def
**********************************************************************/
#define COMM_GET_DEFAULTFILE_ERROR( buf, com, ret, height, style, list_d, list_c, list_l, statbuf ) {\
buf[0] = '\0' ;\
}
#define COMM_DISPERRORFILE( com, lst, style, i, size_str ) {\
USAGE1("%s : Two or more corresponding user defined characters exist.\n", com);\
USAGE("\tcode set\tXLFD\n" );\
USAGE("\t--------------------------------------------------\n" );\
for ( i = 0 ; i < lst->num; i++ ) {\
USAGE2("\t%d\t%s\n", lst->list[i].cd_set-1, lst->list[i].xlfdname );\
}\
}
/***********************************************************************
* fonts.list
**********************************************************************/
#define GETLISTFILEPATH( locale, srch_path, list_d, list_c, list_l, list_file ) { \
if ( ( (locale) = getenv( "FAL_LANG" ) ) == NULL ) { \
if( ((locale) = (char *)getenv( "LANG" )) == NULL ){\
(locale) = "C" ;\
}\
} \
if ( ( (srch_path) = getenv( DTUDCFONTS ) ) == NULL ) { \
snprintf( (list_d), sizeof(list_d), "%s/%s", DTUDCFONTSLISTDIR, (list_file) ); \
snprintf( (list_c), sizeof(list_c), "%s/C/%s", DTUDCFONTSLISTDIR, (list_file) ); \
snprintf( (list_l), sizeof(list_l), "%s/%s/%s", DTUDCFONTSLISTDIR, (locale), (list_file) ); \
} else { \
snprintf( (list_d), sizeof(list_d), "%s/%s", (srch_path), (list_file) ); \
snprintf( (list_c), sizeof(list_c), "%s/C/%s", (srch_path), (list_file) ); \
snprintf( (list_l), sizeof(list_l), "%s/%s/%s", (srch_path), (locale), (list_file) ); \
} \
}
#define SET_EXECDEFAULT( mask, def, undef ) { \
if( !((mask) & FAL_FONT_MASK_DEFINED) && !((mask) & FAL_FONT_MASK_UNDEFINED) ){ \
(def) = FALSE ; \
(undef) = TRUE ; \
}else{ \
if( (mask) & FAL_FONT_MASK_DEFINED ) (def) = TRUE ; \
else (def) = FALSE ; \
if( (mask) & FAL_FONT_MASK_UNDEFINED ) (undef) = TRUE ; \
else (undef) = FALSE ; \
} \
}
/*************************< end of udcopt.h >**************************/

View File

@@ -1,149 +0,0 @@
/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: udcutil.h /main/3 1996/11/08 01:58:55 cde-fuj $ */
/*
* (c) Copyright 1995 FUJITSU LIMITED
* This is source code modified by FUJITSU LIMITED under the Joint
* Development Agreement for the CDEnext PST.
* This is unpublished proprietary source code of FUJITSU LIMITED
*/
#ifndef PRINT_USAGE
#define USAGE(a)
#define USAGE1(a, b)
#define USAGE2(a, b, c)
#define USAGE3(a, b, c, d)
#define USAGE4(a, b, c, d, e)
#else
#define USAGE(a) fprintf(stderr, a)
#define USAGE1(a, b) fprintf(stderr, a, b)
#define USAGE2(a, b, c) fprintf(stderr, a, b, c)
#define USAGE3(a, b, c, d) fprintf(stderr, a, b, c, d)
#define USAGE4(a, b, c, d, e) fprintf(stderr, a, b, c, d, e)
#endif
#define UDC_LINE_MAX 2048
/* macro for get character strings */
#define AllocString( str, orgstr, rtn ){ \
(str) = (char *)malloc( sizeof(char) * (strlen((orgstr))+1) ) ;\
if( !(str) ){\
return( (rtn) ) ;\
}\
strcpy( (str), (orgstr) ) ;\
}
#define AddString( str, addstr, rtn ){ \
(str) = (char *)realloc( (str), sizeof(char) * ( strlen((str)) + strlen((addstr)) + 1 ) ) ;\
if( !(str) ){\
return( (rtn) ) ;\
}\
strcat( (str), (addstr) ) ;\
}
#define ResizeString( str, rtn ){ \
(str) = (char *)realloc( (str), sizeof(char) * ( strlen((str)) + 1 ) ) ;\
if( !(str) ){\
return( (rtn) ) ;\
}\
}
#define FreeString( str ){ \
if( (str) ) {\
free( (str) ) ;\
}\
(str) = NULL ;\
}
/* access to "fonts.dir" */
#define XLFD_ELM_CNT 14
#define XLFD_ELM_FOUNDRY 1
#define XLFD_ELM_FAMILY_NAME 2
#define XLFD_ELM_WEIGHT_NAME 3
#define XLFD_ELM_SLANT 4
#define XLFD_ELM_SETWIDTH_NAME 5
#define XLFD_ELM_ADD_STYLE_NAME 6
#define XLFD_ELM_PIXEL_SIZE 7
#define XLFD_ELM_POINT_SIZE 8
#define XLFD_ELM_RESOLUTION_X 9
#define XLFD_ELM_RESOLUTION_Y 10
#define XLFD_ELM_SPACING 11
#define XLFD_ELM_AVERAGE_WIDTH 12
#define XLFD_ELM_CHARSET_REGISTRY 13
#define XLFD_ELM_CHARSET_ENCODING 14
static int udc_font_elm_cnt ;
static char udc_font_str_buffer[UDC_LINE_MAX] ;
static char *udc_font_sp ;
#define POINTXLFDELM( sp, xlfdname, elm_num ) { \
udc_font_sp = (xlfdname) ; \
udc_font_elm_cnt = 0 ;\
while(*udc_font_sp){\
if(*udc_font_sp == '-') udc_font_elm_cnt++ ;\
if( udc_font_elm_cnt == (elm_num) ){\
break ;\
}\
udc_font_sp++ ;\
}\
(sp) = udc_font_sp ;\
}
#define GETXLFDELMSTR( sp, xlfdname, elm_num ) { \
snprintf( udc_font_str_buffer, sizeof(udc_font_str_buffer), "%s", (xlfdname) ) ; \
udc_font_sp = udc_font_str_buffer ; \
udc_font_elm_cnt = 0 ;\
while(*udc_font_sp){\
if(*udc_font_sp == '-') udc_font_elm_cnt++ ;\
if( udc_font_elm_cnt == (elm_num) ){\
udc_font_sp++ ;\
break ;\
}\
udc_font_sp++ ;\
}\
(sp) = udc_font_sp ;\
while(*udc_font_sp){\
if(*udc_font_sp == '-') udc_font_elm_cnt++ ;\
if( udc_font_elm_cnt == (elm_num)+1 ){\
*udc_font_sp = '\0' ;\
break ;\
}\
udc_font_sp++ ;\
}\
}
#define GETCHARSETSTR( char_set, xlfdname ) { \
snprintf( udc_font_str_buffer, sizeof(udc_font_str_buffer), "%s", (xlfdname) ) ; \
POINTXLFDELM( (char_set), udc_font_str_buffer, XLFD_ELM_CHARSET_REGISTRY ) ; \
(char_set)++ ; \
}
#define GETSPACINGSTR( spacing, xlfdname ) { \
GETXLFDELMSTR( (spacing), (xlfdname), XLFD_ELM_SPACING ) ; \
}