Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

AFPFontInfo.java 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright 2006 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.render.afp.fonts;
  18. import java.util.List;
  19. /**
  20. * FontInfo contains meta information on fonts
  21. */
  22. public class AFPFontInfo {
  23. private AFPFont font;
  24. private List fontTriplets;
  25. /**
  26. * Main constructor
  27. * @param afpFont The AFP Font
  28. * @param fontTriplets List of font triplets to associate with this font
  29. */
  30. public AFPFontInfo(AFPFont afpFont, List fontTriplets) {
  31. this.font = afpFont;
  32. this.fontTriplets = fontTriplets;
  33. }
  34. /**
  35. * Returns the afp font
  36. * @return the afp font
  37. */
  38. public AFPFont getAFPFont() {
  39. return font;
  40. }
  41. /**
  42. * Returns the list of font triplets associated with this font.
  43. * @return List of font triplets
  44. */
  45. public List getFontTriplets() {
  46. return fontTriplets;
  47. }
  48. }