pango.pas 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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., 51 Franklin Street, Fifth Floor,
  16. Boston, MA 02111-1301, 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 windows}
  31. {$define pangowin}
  32. pangolib = 'libpango-1.0-0.dll';
  33. {$IFDEF FPC}
  34. {$ifndef NO_SMART_LINK}
  35. {$smartlink on}
  36. {$endif}
  37. {$ENDIF}
  38. {$else}
  39. {$ifdef UseCustomLibs}
  40. pangolib = '';
  41. {$else}
  42. pangolib = 'libpango-1.0.so.0';
  43. {$endif}
  44. {$endif}
  45. {$IFNDEF KYLIX}
  46. {$PACKRECORDS C}
  47. {$ELSE}
  48. {$ALIGN 4}
  49. {$WEAKPACKAGEUNIT}
  50. {$WARNINGS OFF}
  51. {$ENDIF}
  52. { $define HasPango1_20}
  53. {$DEFINE read_forward_definitions}
  54. type
  55. // internal types:
  56. PPangoFontDescription = ^TPangoFontDescription;
  57. TPangoFontDescription = pointer;
  58. PPangoAttrList = ^TPangoAttrList;
  59. TPangoAttrList = pointer;
  60. PPangoAttrIterator = ^TPangoAttrIterator;
  61. TPangoAttrIterator = pointer;
  62. PPangoLayout = ^TPangoLayout;
  63. TPangoLayout = pointer;
  64. PPangoLayoutClass = ^TPangoLayoutClass;
  65. TPangoLayoutClass = pointer;
  66. PPangoLayoutIter = ^TPangoLayoutIter;
  67. TPangoLayoutIter = pointer;
  68. PPangoContext = ^TPangoContext;
  69. TPangoContext = pointer;
  70. PPangoContextClass = ^TPangoContextClass;
  71. TPangoContextClass = pointer;
  72. PPangoFontsetSimple = ^TPangoFontsetSimple;
  73. TPangoFontsetSimple = pointer;
  74. PPangoTabArray = ^TPangoTabArray;
  75. TPangoTabArray = pointer;
  76. {$include pangoincludes.inc}
  77. {$UNDEF read_forward_definitions}
  78. {$DEFINE read_interface_types}
  79. {$include pangoincludes.inc}
  80. {$UNDEF read_interface_types}
  81. {$DEFINE read_interface_functions}
  82. {$include pangoincludes.inc}
  83. {$UNDEF read_interface_functions}
  84. implementation
  85. {$DEFINE read_implementation}
  86. {$include pangoincludes.inc}
  87. {$UNDEF read_implementation}
  88. end.