Package org.apache.fop.render.pcl
Class HardcodedFonts
- java.lang.Object
-
- org.apache.fop.render.pcl.HardcodedFonts
-
final class HardcodedFonts extends java.lang.Object
This class hold code for selecting a set of hard-coded fonts available in practically all PCL implementations. We hope this can be improved in the future.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.commons.logging.Log
LOG
logging instance
-
Constructor Summary
Constructors Modifier Constructor Description private
HardcodedFonts()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static boolean
selectFont(PCLGenerator gen, java.lang.String name, int size)
static boolean
setFont(PCLGenerator gen, java.lang.String name, int size, java.lang.String text)
Sets the current font (NOTE: Hard-coded font mappings ATM!)
-
-
-
Method Detail
-
setFont
public static boolean setFont(PCLGenerator gen, java.lang.String name, int size, java.lang.String text) throws java.io.IOException
Sets the current font (NOTE: Hard-coded font mappings ATM!)- Parameters:
name
- the font name (internal F* names for now)size
- the font size (in millipoints)text
- the text to be rendered (used to determine if there are non-printable chars)- Returns:
- true if the font can be mapped to PCL
- Throws:
java.io.IOException
- if an I/O problem occurs
-
selectFont
protected static boolean selectFont(PCLGenerator gen, java.lang.String name, int size) throws java.io.IOException
- Throws:
java.io.IOException
-
-