Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

PrintRenderer.java 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.render;
  18. // FOP
  19. import org.apache.fop.apps.Document;
  20. import org.apache.fop.fo.FOTreeControl;
  21. import org.apache.fop.fonts.FontSetup;
  22. // Java
  23. import java.util.List;
  24. /** Abstract base class of "Print" type renderers. */
  25. public abstract class PrintRenderer extends AbstractRenderer {
  26. /** Font configuration */
  27. protected FOTreeControl fontInfo;
  28. /** list of fonts */
  29. protected List fontList = null;
  30. /**
  31. * Set up the font info
  32. *
  33. * @param fontInfo font info to set up
  34. */
  35. public void setupFontInfo(FOTreeControl foTreeControl) {
  36. this.fontInfo = foTreeControl;
  37. FontSetup.setup((Document)fontInfo, fontList);
  38. }
  39. }