You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright 1999-2004 The Apache Software Foundation.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /* $Id$ */
  17. package org.apache.fop.fo;
  18. // FOP
  19. import org.apache.fop.fonts.Font;
  20. import org.apache.fop.datatypes.ColorType;
  21. import org.apache.fop.traits.SpaceVal;
  22. /**
  23. * Collection of properties used in
  24. */
  25. public class TextInfo {
  26. /** object containing the font information */
  27. public Font fs;
  28. /** fo:color property */
  29. public ColorType color;
  30. /** fo:wrap-option property */
  31. public int wrapOption;
  32. /** fo:wrap-option property: true if wrapOption = WRAP */
  33. public boolean bWrap ;
  34. /** fo:white-space-collapse property*/
  35. public int whiteSpaceCollapse;
  36. /** fo:vertical-align property */
  37. public int verticalAlign;
  38. /** fo:line-height property */
  39. public int lineHeight;
  40. /** fo:text-transform property */
  41. public int textTransform = Constants.TextTransform.NONE;
  42. // Props used for calculating inline-progression-dimension
  43. /** fo:word-spacing property */
  44. public SpaceVal wordSpacing;
  45. /** fo:letter-spacing property */
  46. public SpaceVal letterSpacing;
  47. /** can this text be hyphenated? */
  48. public boolean bCanHyphenate = true;
  49. /** fo:text-decoration property: is text underlined? */
  50. public boolean underlined = false;
  51. /** fo:text-decoration property: is text overlined? */
  52. public boolean overlined = false;
  53. /** fo:text-decoration property: is text overstriked? */
  54. public boolean lineThrough = false;
  55. }