GR32.Text.Types.pas 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. unit GR32.Text.Types;
  2. (* ***** BEGIN LICENSE BLOCK *****
  3. * Version: MPL 1.1 or LGPL 2.1 with linking exception
  4. *
  5. * The contents of this file are subject to the Mozilla Public License Version
  6. * 1.1 (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. * http://www.mozilla.org/MPL/
  9. *
  10. * Software distributed under the License is distributed on an "AS IS" basis,
  11. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12. * for the specific language governing rights and limitations under the
  13. * License.
  14. *
  15. * Alternatively, the contents of this file may be used under the terms of the
  16. * Free Pascal modified version of the GNU Lesser General Public License
  17. * Version 2.1 (the "FPC modified LGPL License"), in which case the provisions
  18. * of this license are applicable instead of those above.
  19. * Please see the file LICENSE.txt for additional information concerning this
  20. * license.
  21. *
  22. * The Original Code is Delphi/Windows text vectorization utilities for Graphics32
  23. *
  24. * The Initial Developer of the Original Code is Anders Melander
  25. *
  26. * Portions created by the Initial Developer are Copyright (C) 2024
  27. * the Initial Developer. All Rights Reserved.
  28. *
  29. * ***** END LICENSE BLOCK ***** *)
  30. interface
  31. {$include GR32.inc}
  32. uses
  33. GR32;
  34. //------------------------------------------------------------------------------
  35. //
  36. // Text layout bit flags
  37. //
  38. //------------------------------------------------------------------------------
  39. // Used by
  40. // - ITextSupport.Textout
  41. // - ITextToPathSupport.TextToPath
  42. //------------------------------------------------------------------------------
  43. const
  44. // See also Window's DrawText() flags ...
  45. // http://msdn.microsoft.com/en-us/library/ms901121.aspx
  46. DT_LEFT = $0000;
  47. DT_CENTER = $0001;
  48. DT_RIGHT = $0002;
  49. DT_VCENTER = $0004;
  50. DT_BOTTOM = $0008;
  51. DT_WORDBREAK = $0010;
  52. DT_SINGLELINE = $0020;
  53. DT_NOCLIP = $0100;
  54. {$NODEFINE DT_LEFT}
  55. {$NODEFINE DT_CENTER}
  56. {$NODEFINE DT_RIGHT}
  57. {$NODEFINE DT_VCENTER}
  58. {$NODEFINE DT_BOTTOM}
  59. {$NODEFINE DT_WORDBREAK}
  60. {$NODEFINE DT_SINGLELINE}
  61. {$NODEFINE DT_NOCLIP}
  62. // Graphics32 additions ...
  63. DT_JUSTIFY = $0003;
  64. DT_HORZ_ALIGN_MASK = $0003;
  65. //------------------------------------------------------------------------------
  66. //
  67. // Font hinting
  68. //
  69. //------------------------------------------------------------------------------
  70. // Used by IFontHintingSupport
  71. //------------------------------------------------------------------------------
  72. // Will likely be deprecated at some point as hinting isn't really used that
  73. // much anymore.
  74. //------------------------------------------------------------------------------
  75. type
  76. TTextHinting = (thNone, thNoHorz, thHinting);
  77. //------------------------------------------------------------------------------
  78. //------------------------------------------------------------------------------
  79. //------------------------------------------------------------------------------
  80. implementation
  81. end.