1 /* $XConsortium: FontI.h /main/6 1995/12/08 13:00:51 cde-hal $ */
2 /************************************<+>*************************************
3 ****************************************************************************
7 ** Project: TextGraphic Display routines
9 ** Description: Header file for Font.c
12 ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
14 ** (c) Copyright 1993, 1994 Hewlett-Packard Company
15 ** (c) Copyright 1993, 1994 International Business Machines Corp.
16 ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
17 ** (c) Copyright 1993, 1994 Novell, Inc.
20 ****************************************************************************
21 ************************************<+>*************************************/
28 /****************************************************************************
30 ****************************************************************************/
32 * resource database types
34 #define _DtHelpXrmInt 0
35 #define _DtHelpXrmQuark 1
40 #define _DT_HELP_FONT_CHAR_SET 6
41 #define _DT_HELP_FONT_LANG_TER 5
42 #define _DT_HELP_FONT_TYPE 4
43 #define _DT_HELP_FONT_WEIGHT 3
44 #define _DT_HELP_FONT_ANGLE 2
45 #define _DT_HELP_FONT_SIZE 1
46 #define _DT_HELP_FONT_SPACING 0
48 #define _DT_HELP_FONT_END 7
50 #define _DtHelpFontQuarkNumber 8
52 /****************************************************************************
53 * Semi Public Structures
54 ****************************************************************************/
55 /****************************************************************************
56 * Semi Public Routines
57 ****************************************************************************/
58 extern void _DtHelpCopyDefaultList(XrmName *xrm_list);
59 extern int __DtHelpDefaultFontIndexGet (
60 DtHelpDispAreaStruct *pDAS);
61 extern void _DtHelpGetStringQuarks(XrmName *xrm_list);
62 extern int __DtHelpFontCharSetQuarkGet(
63 DtHelpDispAreaStruct *pDAS,
66 extern void __DtHelpFontDatabaseInit (
67 DtHelpDispAreaStruct *pDAS,
68 XtPointer default_font,
69 XmFontType entry_type,
70 XFontStruct *user_font);
71 extern int __DtHelpFontIndexGet (
72 DtHelpDispAreaStruct *pDAS,
73 XrmQuarkList xrm_list,
75 extern int __DtHelpFontLangQuarkGet(
76 DtHelpDispAreaStruct *pDAS,
79 extern void __DtHelpFontMetrics (
80 DtHelpDAFontInfo font_info,
82 _DtCvUnit *ret_ascent,
83 _DtCvUnit *ret_descent,
84 _DtCvUnit *ret_char_width,
87 extern XFontSet __DtHelpFontSetGet (
88 DtHelpDAFontInfo font_info,
90 extern XFontStruct *__DtHelpFontStructGet (
91 DtHelpDAFontInfo font_info,
93 extern int _DtHelpGetExactFontIndex(
94 DtHelpDispAreaStruct *pDAS,
103 #endif /* _DtHelpFontI_h */