From: Peter Bernard West Date: Tue, 25 May 2004 15:30:06 +0000 (+0000) Subject: Interface for renderer's fonts database X-Git-Tag: Defoe_export~140 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2f7199cbdddb9bdce7b68a7cdbdcc165fc3e65ce;p=xmlgraphics-fop.git 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 --- 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