2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
23 /* $XConsortium: FontI.h /main/6 1995/12/08 13:00:51 cde-hal $ */
24 /************************************<+>*************************************
25 ****************************************************************************
29 ** Project: TextGraphic Display routines
31 ** Description: Header file for Font.c
34 ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
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.
42 ****************************************************************************
43 ************************************<+>*************************************/
50 /****************************************************************************
52 ****************************************************************************/
54 * resource database types
56 #define _DtHelpXrmInt 0
57 #define _DtHelpXrmQuark 1
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
70 #define _DT_HELP_FONT_END 7
72 #define _DtHelpFontQuarkNumber 8
74 /****************************************************************************
75 * Semi Public Structures
76 ****************************************************************************/
77 /****************************************************************************
78 * Semi Public Routines
79 ****************************************************************************/
80 extern void _DtHelpCopyDefaultList(XrmName *xrm_list);
81 extern long __DtHelpDefaultFontIndexGet (
82 DtHelpDispAreaStruct *pDAS);
83 extern void _DtHelpGetStringQuarks(XrmName *xrm_list);
84 extern int __DtHelpFontCharSetQuarkGet(
85 DtHelpDispAreaStruct *pDAS,
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,
97 extern int __DtHelpFontLangQuarkGet(
98 DtHelpDispAreaStruct *pDAS,
100 XrmQuark *ret_quark);
101 extern void __DtHelpFontMetrics (
102 DtHelpDAFontInfo font_info,
104 _DtCvUnit *ret_ascent,
105 _DtCvUnit *ret_descent,
106 _DtCvUnit *ret_char_width,
107 _DtCvUnit *ret_super,
109 extern XFontSet __DtHelpFontSetGet (
110 DtHelpDAFontInfo font_info,
112 extern XFontStruct *__DtHelpFontStructGet (
113 DtHelpDAFontInfo font_info,
115 extern int _DtHelpGetExactFontIndex(
116 DtHelpDispAreaStruct *pDAS,
118 const char *char_set,
125 #endif /* _DtHelpFontI_h */