Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / lib / DtHelp / FontI.h
1 /* $XConsortium: FontI.h /main/6 1995/12/08 13:00:51 cde-hal $ */
2 /************************************<+>*************************************
3  ****************************************************************************
4  **
5  **   File:        FontI.h
6  **
7  **   Project:     TextGraphic Display routines
8  **
9  **   Description: Header file for Font.c
10  **
11  **
12  **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
13  **
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.
18  **
19  **
20  ****************************************************************************
21  ************************************<+>*************************************/
22 #ifndef _DtFontI_h
23 #define _DtFontI_h
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 /****************************************************************************
29  *                      Semi Public Defines
30  ****************************************************************************/
31 /*
32  * resource database types
33  */
34 #define _DtHelpXrmInt      0
35 #define _DtHelpXrmQuark    1
36
37 /*
38  * font quarks
39  */
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
47
48 #define _DT_HELP_FONT_END            7
49
50 #define _DtHelpFontQuarkNumber     8
51
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,
64                                 int                      font_index,
65                                 XrmQuark                *ret_quark);
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,
74                                 int                     *ret_idx);
75 extern  int              __DtHelpFontLangQuarkGet(
76                                 DtHelpDispAreaStruct    *pDAS,
77                                 int                      font_index,
78                                 XrmQuark                *ret_quark);
79 extern  void             __DtHelpFontMetrics (
80                                 DtHelpDAFontInfo         font_info,
81                                 int                      font_index,
82                                 _DtCvUnit               *ret_ascent,
83                                 _DtCvUnit               *ret_descent,
84                                 _DtCvUnit               *ret_char_width,
85                                 _DtCvUnit               *ret_super,
86                                 _DtCvUnit               *ret_sub);
87 extern  XFontSet         __DtHelpFontSetGet (
88                                 DtHelpDAFontInfo         font_info,
89                                 int                      font_index );
90 extern  XFontStruct     *__DtHelpFontStructGet (
91                                 DtHelpDAFontInfo         font_info,
92                                 int                      font_index);
93 extern  int              _DtHelpGetExactFontIndex(
94                                 DtHelpDispAreaStruct    *pDAS,
95                                 const char              *lang,
96                                 const char              *char_set,
97                                 char                    *xlfd_spec,
98                                 int                     *ret_idx);
99
100 #ifdef __cplusplus
101 }
102 #endif
103 #endif /* _DtHelpFontI_h */