public class FontConverterZpl extends Object
Modifier and Type | Method and Description |
---|---|
static InputStream |
getTteFontHeader(InputStream sourceStream,
String pathOnPrinter)
Returns an
InputStream which provides the TTE header information as determined from the source
stream. |
static InputStream |
getTtfFontHeader(InputStream sourceStream,
String pathOnPrinter)
Returns an
InputStream which provides the TTF header information as determined from the source
stream. |
static void |
saveAsTtePrinterFont(InputStream sourceInputStream,
OutputStream destinationStream,
String pathOnPrinter)
Converts a native TrueType® font to a ZPL TTE format.
|
static void |
saveAsTtePrinterFont(String sourceFilePath,
OutputStream destinationStream,
String pathOnPrinter)
Converts a native TrueType® font to a ZPL TTE format.
|
static void |
saveAsTtfPrinterFont(InputStream sourceInputStream,
OutputStream destinationStream,
String pathOnPrinter)
Converts a native TrueType® font to a ZPL TTF format.
|
static void |
saveAsTtfPrinterFont(String sourceFilePath,
OutputStream destinationStream,
String pathOnPrinter)
Converts a native TrueType® font to a ZPL TTF format.
|
public static InputStream getTtfFontHeader(InputStream sourceStream, String pathOnPrinter)
InputStream
which provides the TTF header information as determined from the source
stream.sourceStream
- Stream containing TrueType® font datapathOnPrinter
- Location of the font file on the printer.public static InputStream getTteFontHeader(InputStream sourceStream, String pathOnPrinter)
InputStream
which provides the TTE header information as determined from the source
stream.sourceStream
- Stream containing TrueType® font datapathOnPrinter
- Location of the font file on the printer.public static void saveAsTtfPrinterFont(String sourceFilePath, OutputStream destinationStream, String pathOnPrinter)
sourceFilePath
- Path to a TrueType® font.destinationStream
- Destination stream for converted ZPL.pathOnPrinter
- Location to save the font file on the printer.public static void saveAsTtfPrinterFont(InputStream sourceInputStream, OutputStream destinationStream, String pathOnPrinter)
sourceInputStream
- Stream containing the TrueType® font data.destinationStream
- Destination stream for converted ZPL.pathOnPrinter
- Location to save the font file on the printer.public static void saveAsTtePrinterFont(String sourceFilePath, OutputStream destinationStream, String pathOnPrinter)
sourceFilePath
- Path to a TrueType® font.destinationStream
- Destination stream for converted ZPL.pathOnPrinter
- Location to save the font file on the printer.public static void saveAsTtePrinterFont(InputStream sourceInputStream, OutputStream destinationStream, String pathOnPrinter)
sourceInputStream
- Stream containing the TrueType® font data.destinationStream
- Destination stream for converted ZPL.pathOnPrinter
- Location to save the font file on the printer.
© 2015 ZIH Corp. All Rights Reserved.