From 2f7199cbdddb9bdce7b68a7cdbdcc165fc3e65ce Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Tue, 25 May 2004 15:30:06 +0000 Subject: [PATCH] Interface for renderer's fonts database git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197629 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/render/FontData.java | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/java/org/apache/fop/render/FontData.java diff --git a/src/java/org/apache/fop/render/FontData.java b/src/java/org/apache/fop/render/FontData.java new file mode 100644 index 000000000..d7963f2e2 --- /dev/null +++ b/src/java/org/apache/fop/render/FontData.java @@ -0,0 +1,37 @@ +/* + * + * Copyright 2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Created on 25/05/2004 + * $Id$ + */ +package org.apache.fop.render; + +import java.awt.Font; + +import org.apache.fop.fonts.FontException; + +/** + * @author pbw + * @version $Revision$ $Name$ + */ +public interface FontData { + public Font getFont ( String family, int style, int variant, int weight, + int stretch, float size, int strategy) throws FontException; + public Font getGenericFont(String type, int style, int variant, int weight, + int stretch, float size) throws FontException; + public Font getSystemFont(int type) throws FontException; + +} \ No newline at end of file -- 2.39.5