KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > fop > fonts > MutableFont


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 /* $Id: MutableFont.java 426576 2006-07-28 15:44:37Z jeremias $ */
19  
20 package org.apache.fop.fonts;
21
22 import java.util.Map JavaDoc;
23
24
25 /**
26  * This interface is used to set the values of a font during configuration time.
27  */

28 public interface MutableFont {
29
30     /**
31      * Sets the font name.
32      * @param name font name
33      */

34     void setFontName(String JavaDoc name);
35     
36     /**
37      * Sets the path to the embeddable font file.
38      * @param path URI to the file
39      */

40     void setEmbedFileName(String JavaDoc path);
41
42     /**
43      * Sets the resource name of the embeddable font file.
44      * @param name resource name
45      */

46     void setEmbedResourceName(String JavaDoc name);
47
48     /**
49      * Sets the capital height value.
50      * @param capHeight capital height
51      */

52     void setCapHeight(int capHeight);
53     
54     /**
55      * Sets the ascent value.
56      * @param ascender ascent height
57      */

58     void setAscender(int ascender);
59     
60     /**
61      * Sets the descent value.
62      * @param descender descent value
63      */

64     void setDescender(int descender);
65
66     /**
67      * Sets the font's bounding box
68      * @param bbox bounding box
69      */

70     void setFontBBox(int[] bbox);
71
72     /**
73      * Sets the font's flags
74      * @param flags flags
75      */

76     void setFlags(int flags);
77     
78     /**
79      * Sets the font's StemV value.
80      * @param stemV StemV
81      */

82     void setStemV(int stemV);
83     
84     /**
85      * Sets the font's italic angle.
86      * @param italicAngle italic angle
87      */

88     void setItalicAngle(int italicAngle);
89     
90     /**
91      * Sets the font's default width
92      * @param width default width
93      */

94     void setMissingWidth(int width);
95  
96     /**
97      * Sets the font type.
98      * @param fontType font type
99      */

100     void setFontType(FontType fontType);
101  
102     /**
103      * Sets the index of the first character in the character table.
104      * @param index index of first character
105      */

106     void setFirstChar(int index);
107     
108     /**
109      * Sets the index of the last character in the character table.
110      * @param index index of the last character
111      */

112     void setLastChar(int index);
113     
114     /**
115      * Enables/disabled kerning.
116      * @param enabled True if kerning should be enabled if available
117      */

118     void setKerningEnabled(boolean enabled);
119     
120     /**
121      * Adds an entry to the kerning table.
122      * @param key Kerning key
123      * @param value Kerning value
124      */

125     void putKerningEntry(Integer JavaDoc key, Map JavaDoc value);
126        
127 }
128
Popular Tags