Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

MutableFont.java 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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.fonts;
  18. import java.util.Map;
  19. /**
  20. * This interface is used to set the values of a font during configuration time.
  21. */
  22. public interface MutableFont {
  23. /**
  24. * Sets the font name.
  25. * @param name font name
  26. */
  27. void setFontName(String name);
  28. /**
  29. * Sets the path to the embeddable font file.
  30. * @param path URI to the file
  31. */
  32. void setEmbedFileName(String path);
  33. /**
  34. * Sets the resource name of the embeddable font file.
  35. * @param name resource name
  36. */
  37. void setEmbedResourceName(String name);
  38. /**
  39. * Sets the capital height value.
  40. * @param capHeight capital height
  41. */
  42. void setCapHeight(int capHeight);
  43. /**
  44. * Sets the ascent value.
  45. * @param ascender ascent height
  46. */
  47. void setAscender(int ascender);
  48. /**
  49. * Sets the descent value.
  50. * @param descender descent value
  51. */
  52. void setDescender(int descender);
  53. /**
  54. * Sets the font's bounding box
  55. * @param bbox bounding box
  56. */
  57. void setFontBBox(int[] bbox);
  58. /**
  59. * Sets the font's flags
  60. * @param flags flags
  61. */
  62. void setFlags(int flags);
  63. /**
  64. * Sets the font's StemV value.
  65. * @param stemV StemV
  66. */
  67. void setStemV(int stemV);
  68. /**
  69. * Sets the font's italic angle.
  70. * @param italicAngle italic angle
  71. */
  72. void setItalicAngle(int italicAngle);
  73. /**
  74. * Sets the font's default width
  75. * @param width default width
  76. */
  77. void setMissingWidth(int width);
  78. /**
  79. * Sets the font type.
  80. * @param fontType font type
  81. */
  82. void setFontType(FontType fontType);
  83. /**
  84. * Sets the index of the first character in the character table.
  85. * @param index index of first character
  86. */
  87. void setFirstChar(int index);
  88. /**
  89. * Sets the index of the last character in the character table.
  90. * @param index index of the last character
  91. */
  92. void setLastChar(int index);
  93. /**
  94. * Enables/disabled kerning.
  95. * @param enabled True if kerning should be enabled if available
  96. */
  97. void setKerningEnabled(boolean enabled);
  98. /**
  99. * Adds an entry to the kerning table.
  100. * @param key Kerning key
  101. * @param value Kerning value
  102. */
  103. void putKerningEntry(Integer key, Map value);
  104. }