FontI.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. #ifdef __cplusplus
  47. extern "C" {
  48. #endif
  49. /****************************************************************************
  50. * Semi Public Defines
  51. ****************************************************************************/
  52. /*
  53. * resource database types
  54. */
  55. #define _DtHelpXrmInt 0
  56. #define _DtHelpXrmQuark 1
  57. /*
  58. * font quarks
  59. */
  60. #define _DT_HELP_FONT_CHAR_SET 6
  61. #define _DT_HELP_FONT_LANG_TER 5
  62. #define _DT_HELP_FONT_TYPE 4
  63. #define _DT_HELP_FONT_WEIGHT 3
  64. #define _DT_HELP_FONT_ANGLE 2
  65. #define _DT_HELP_FONT_SIZE 1
  66. #define _DT_HELP_FONT_SPACING 0
  67. #define _DT_HELP_FONT_END 7
  68. #define _DtHelpFontQuarkNumber 8
  69. /****************************************************************************
  70. * Semi Public Structures
  71. ****************************************************************************/
  72. /****************************************************************************
  73. * Semi Public Routines
  74. ****************************************************************************/
  75. extern void _DtHelpCopyDefaultList(XrmName *xrm_list);
  76. extern long __DtHelpDefaultFontIndexGet (
  77. DtHelpDispAreaStruct *pDAS);
  78. extern void _DtHelpGetStringQuarks(XrmName *xrm_list);
  79. extern int __DtHelpFontCharSetQuarkGet(
  80. DtHelpDispAreaStruct *pDAS,
  81. long font_index,
  82. XrmQuark *ret_quark);
  83. extern void __DtHelpFontDatabaseInit (
  84. DtHelpDispAreaStruct *pDAS,
  85. XtPointer default_font,
  86. XmFontType entry_type,
  87. XFontStruct *user_font);
  88. extern int __DtHelpFontIndexGet (
  89. DtHelpDispAreaStruct *pDAS,
  90. XrmQuarkList xrm_list,
  91. long *ret_idx);
  92. extern int __DtHelpFontLangQuarkGet(
  93. DtHelpDispAreaStruct *pDAS,
  94. long font_index,
  95. XrmQuark *ret_quark);
  96. extern void __DtHelpFontMetrics (
  97. DtHelpDAFontInfo font_info,
  98. long font_index,
  99. _DtCvUnit *ret_ascent,
  100. _DtCvUnit *ret_descent,
  101. _DtCvUnit *ret_char_width,
  102. _DtCvUnit *ret_super,
  103. _DtCvUnit *ret_sub);
  104. extern XFontSet __DtHelpFontSetGet (
  105. DtHelpDAFontInfo font_info,
  106. long font_index );
  107. extern XFontStruct *__DtHelpFontStructGet (
  108. DtHelpDAFontInfo font_info,
  109. long font_index);
  110. extern int _DtHelpGetExactFontIndex(
  111. DtHelpDispAreaStruct *pDAS,
  112. const char *lang,
  113. const char *char_set,
  114. char *xlfd_spec,
  115. long *ret_idx);
  116. #ifdef __cplusplus
  117. }
  118. #endif
  119. #endif /* _DtHelpFontI_h */