pango.pas 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. Pango - an open-source framework for the layout and rendering of
  3. internationalized text.
  4. Copyright (C) 1999 Red Hat Software
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Library General Public
  7. License as published by the Free Software Foundation; either
  8. version 2 of the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Library General Public License for more details.
  13. You should have received a copy of the GNU Library General Public
  14. License along with this library; if not, write to the
  15. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  16. Boston, MA 02111-1307, USA.
  17. }
  18. unit pango; // keep unit name lowercase for kylix
  19. {$IFDEF FPC}
  20. {$mode objfpc}
  21. {$ENDIF}
  22. {$IFDEF VER140}
  23. {$DEFINE KYLIX}
  24. {$ENDIF}
  25. interface
  26. uses glib2;
  27. {$DEFINE PANGO_ENABLE_ENGINE}
  28. {$DEFINE PANGO_ENABLE_BACKEND}
  29. const
  30. {$ifdef win32}
  31. {$define pangowin}
  32. pangolib = 'libpango-1.0-0.dll';
  33. {$IFDEF FPC}
  34. {$smartlink on}
  35. {$ENDIF}
  36. {$else}
  37. {$ifdef UseCustomLibs}
  38. pangolib = '';
  39. {$else}
  40. pangolib = 'libpango-1.0.so.0';
  41. {$endif}
  42. {$endif}
  43. {$IFNDEF KYLIX}
  44. {$PACKRECORDS C}
  45. {$ELSE}
  46. {$ALIGN 4}
  47. {$WEAKPACKAGEUNIT}
  48. {$WARNINGS OFF}
  49. {$ENDIF}
  50. {$DEFINE read_forward_definitions}
  51. type
  52. // internal types:
  53. PPangoFontDescription = ^TPangoFontDescription;
  54. TPangoFontDescription = pointer;
  55. PPangoAttrList = ^TPangoAttrList;
  56. TPangoAttrList = pointer;
  57. PPangoAttrIterator = ^TPangoAttrIterator;
  58. TPangoAttrIterator = pointer;
  59. PPangoLayout = ^TPangoLayout;
  60. TPangoLayout = pointer;
  61. PPangoLayoutClass = ^TPangoLayoutClass;
  62. TPangoLayoutClass = pointer;
  63. PPangoLayoutIter = ^TPangoLayoutIter;
  64. TPangoLayoutIter = pointer;
  65. PPangoContext = ^TPangoContext;
  66. TPangoContext = pointer;
  67. PPangoContextClass = ^TPangoContextClass;
  68. TPangoContextClass = pointer;
  69. PPangoFontsetSimple = ^TPangoFontsetSimple;
  70. TPangoFontsetSimple = pointer;
  71. PPangoTabArray = ^TPangoTabArray;
  72. TPangoTabArray = pointer;
  73. {$include pangoincludes.inc}
  74. {$UNDEF read_forward_definitions}
  75. {$DEFINE read_interface_types}
  76. {$include pangoincludes.inc}
  77. {$UNDEF read_interface_types}
  78. {$DEFINE read_interface_functions}
  79. {$include pangoincludes.inc}
  80. {$UNDEF read_interface_functions}
  81. implementation
  82. {$DEFINE read_implementation}
  83. {$include pangoincludes.inc}
  84. {$UNDEF read_implementation}
  85. end.