From 650dc1d8886f89cce591defe1a85ba4a86d73b7b Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Thu, 27 May 2004 15:34:20 +0000 Subject: [PATCH] Added Font getFont(Map attributes, int strategy), Font getGenericFont(Map attributes) and Map makeFontAttributes(...) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197640 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/render/FontData.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/render/FontData.java b/src/java/org/apache/fop/render/FontData.java index d7963f2e2..02c7e7bc7 100644 --- a/src/java/org/apache/fop/render/FontData.java +++ b/src/java/org/apache/fop/render/FontData.java @@ -20,6 +20,7 @@ package org.apache.fop.render; import java.awt.Font; +import java.util.Map; import org.apache.fop.fonts.FontException; @@ -28,10 +29,13 @@ import org.apache.fop.fonts.FontException; * @version $Revision$ $Name$ */ public interface FontData { - public Font getFont ( String family, int style, int variant, int weight, + public Font getFont(Map attributes, int strategy); + public Font getFont(String family, int style, int variant, int weight, int stretch, float size, int strategy) throws FontException; + public Font getGenericFont(Map attributes); public Font getGenericFont(String type, int style, int variant, int weight, int stretch, float size) throws FontException; public Font getSystemFont(int type) throws FontException; - + public Map makeFontAttributes(String family, int style, int variant,int + weight, int stretch, float size) throws FontException; } \ No newline at end of file -- 2.39.5