FileUtils.c: fix CERT VU#575804
[oweals/cde.git] / cde / lib / DtHelp / FontI.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: FontI.h /main/6 1995/12/08 13:00:51 cde-hal $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  **
27  **   File:        FontI.h
28  **
29  **   Project:     TextGraphic Display routines
30  **
31  **   Description: Header file for Font.c
32  **
33  **
34  **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
35  **
36  **  (c) Copyright 1993, 1994 Hewlett-Packard Company
37  **  (c) Copyright 1993, 1994 International Business Machines Corp.
38  **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
39  **  (c) Copyright 1993, 1994 Novell, Inc.
40  **
41  **
42  ****************************************************************************
43  ************************************<+>*************************************/
44 #ifndef _DtFontI_h
45 #define _DtFontI_h
46
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 /****************************************************************************
51  *                      Semi Public Defines
52  ****************************************************************************/
53 /*
54  * resource database types
55  */
56 #define _DtHelpXrmInt      0
57 #define _DtHelpXrmQuark    1
58
59 /*
60  * font quarks
61  */
62 #define _DT_HELP_FONT_CHAR_SET       6
63 #define _DT_HELP_FONT_LANG_TER       5
64 #define _DT_HELP_FONT_TYPE           4
65 #define _DT_HELP_FONT_WEIGHT         3
66 #define _DT_HELP_FONT_ANGLE          2
67 #define _DT_HELP_FONT_SIZE           1
68 #define _DT_HELP_FONT_SPACING        0
69
70 #define _DT_HELP_FONT_END            7
71
72 #define _DtHelpFontQuarkNumber     8
73
74 /****************************************************************************
75  *                      Semi Public Structures
76  ****************************************************************************/
77 /****************************************************************************
78  *                      Semi Public Routines
79  ****************************************************************************/
80 extern  void             _DtHelpCopyDefaultList(XrmName *xrm_list);
81 extern  int              __DtHelpDefaultFontIndexGet (
82                                 DtHelpDispAreaStruct    *pDAS);
83 extern  void             _DtHelpGetStringQuarks(XrmName *xrm_list);
84 extern  int              __DtHelpFontCharSetQuarkGet(
85                                 DtHelpDispAreaStruct    *pDAS,
86                                 int                      font_index,
87                                 XrmQuark                *ret_quark);
88 extern  void             __DtHelpFontDatabaseInit (
89                                 DtHelpDispAreaStruct    *pDAS,
90                                 XtPointer                default_font,
91                                 XmFontType               entry_type,
92                                 XFontStruct             *user_font);
93 extern  int              __DtHelpFontIndexGet (
94                                 DtHelpDispAreaStruct    *pDAS,
95                                 XrmQuarkList             xrm_list,
96                                 int                     *ret_idx);
97 extern  int              __DtHelpFontLangQuarkGet(
98                                 DtHelpDispAreaStruct    *pDAS,
99                                 int                      font_index,
100                                 XrmQuark                *ret_quark);
101 extern  void             __DtHelpFontMetrics (
102                                 DtHelpDAFontInfo         font_info,
103                                 int                      font_index,
104                                 _DtCvUnit               *ret_ascent,
105                                 _DtCvUnit               *ret_descent,
106                                 _DtCvUnit               *ret_char_width,
107                                 _DtCvUnit               *ret_super,
108                                 _DtCvUnit               *ret_sub);
109 extern  XFontSet         __DtHelpFontSetGet (
110                                 DtHelpDAFontInfo         font_info,
111                                 int                      font_index );
112 extern  XFontStruct     *__DtHelpFontStructGet (
113                                 DtHelpDAFontInfo         font_info,
114                                 int                      font_index);
115 extern  int              _DtHelpGetExactFontIndex(
116                                 DtHelpDispAreaStruct    *pDAS,
117                                 const char              *lang,
118                                 const char              *char_set,
119                                 char                    *xlfd_spec,
120                                 int                     *ret_idx);
121
122 #ifdef __cplusplus
123 }
124 #endif
125 #endif /* _DtHelpFontI_h */