falfont.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 libraries 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: falfont.h /main/5 1996/06/25 20:05:39 cde-fuj $ */
  24. /*
  25. * (c) Copyright 1995 FUJITSU LIMITED
  26. * This is source code modified by FUJITSU LIMITED under the Joint
  27. * Development Agreement for the CDEnext PST.
  28. * This is unpublished proprietary source code of FUJITSU LIMITED
  29. */
  30. #define GETNUMCHARS(pFinf) \
  31. (((pFinf)->lastCol - (pFinf)->firstCol + 1) * \
  32. ((pFinf)->lastRow - (pFinf)->firstRow + 1))
  33. #define GETHIGHT(pCinf) \
  34. ((pCinf)->metrics.ascent + (pCinf)->metrics.descent)
  35. #define _FAL_OK 1
  36. /* fal_utyerror */
  37. #define _FAL_OPEN_ER 1
  38. #define _FAL_DIR_NOACCSS 1
  39. #define _FAL_READ_ER 2
  40. #define _FAL_READ_PATH_ER 2
  41. #define _FAL_MALOC_ER 3
  42. #define _FAL_PKEY_ER 4
  43. #define _FAL_PARM_ER 5
  44. #define _FAL_STAT_ER 6
  45. #define _FAL_FONT_ER 7
  46. #define _FAL_FLST_ER 7
  47. #define _FAL_DATA_OPEN_ER 8
  48. #define _FAL_DATA_READ_ER 9
  49. /* fal_utyderror */
  50. /* FalOpenFont */
  51. #define _FAL_O_P_PKEY_DER 1
  52. #define _FAL_O_P_CS_DER 2
  53. /* FalQueryFont */
  54. #define _FAL_Q_P_FINF_DER 1
  55. #define _FAL_Q_P_FONT_DER 2
  56. /* FalReadFont */
  57. #define _FAL_R_P_FINF_DER 1
  58. #define _FAL_R_P_W_DER 2
  59. #define _FAL_R_P_H_DER 3
  60. /* FalGetFontList */
  61. #define _FAL_L_P_LST_DER 1
  62. #define _FAL_L_P_KEY_DER 2
  63. #define _FAL_TRY_NEXT 0xFF
  64. #include "udccom.h"
  65. #define SNF_BOUND 32
  66. #define FILE_SUFFIX( file ) \
  67. ( strrchr( file, '.' ) ? strrchr( file, '.' ) : "" )
  68. #define FAL_DATA_ELM 13
  69. #define FAL_LINE_MAX 1024
  70. /* update _Oak_Finf */
  71. #define FAL_UPDATE_FONTINFO 1
  72. #define FAL_READ_FONTINFO 0
  73. /* Buffer of file name */
  74. extern char fal_err_file_buf[] ;