public interface FontUtil
package test.zebra.sdk.printer.examples;
import com.zebra.sdk.comm.ConnectionException;
import com.zebra.sdk.comm.TcpConnection;
import com.zebra.sdk.printer.ZebraPrinterFactory;
import com.zebra.sdk.printer.ZebraPrinterLinkOs;
public class FontUtilExample {
public static void main(String[] args) throws Exception {
TcpConnection connection = new TcpConnection("192.168.1.32", TcpConnection.DEFAULT_ZPL_TCP_PORT);
try {
connection.open();
ZebraPrinterLinkOs linkOsPrinter = ZebraPrinterFactory.getLinkOsPrinter(connection);
if (linkOsPrinter != null) {
linkOsPrinter.downloadTtfFont("C:\\BaroqueScript.ttf", "E:Baroque");
}
} catch (ConnectionException e) {
e.printStackTrace();
} finally {
connection.close();
}
}
}
| Modifier and Type | Method and Description |
|---|---|
void |
downloadTteFont(java.io.InputStream sourceInputStream,
String pathOnPrinter)
Sends a TrueType® font to a printer and stores it at the specified path as a TrueType® extension (TTE).
|
void |
downloadTteFont(String sourceFilePath,
String pathOnPrinter)
Used to send a TrueType® TTE font file to a printer and store it at the specified path as a TrueType®
extension (TTE).
|
void |
downloadTtfFont(java.io.InputStream sourceInputStream,
String pathOnPrinter)
Sends a TrueType® font file to a printer and stores it at the specified path as a TTF.
|
void |
downloadTtfFont(String sourceFilePath,
String pathOnPrinter)
Sends a TrueType® font file to a printer and stores it at the specified path as a TTF.
|
void downloadTtfFont(String sourceFilePath,
String pathOnPrinter)
throws ConnectionException
sourceFilePath - Path to a TrueType® font to be saved on the printer.pathOnPrinter - Location to save the font file on the printer.ConnectionException - if an I/O error occurs.void downloadTteFont(String sourceFilePath,
String pathOnPrinter)
throws ConnectionException
sourceFilePath - Path to a TrueType® TTE font file to be saved on the printer.pathOnPrinter - Location to save the font file on the printer.ConnectionException - if an I/O error occurs.void downloadTtfFont(java.io.InputStream sourceInputStream,
String pathOnPrinter)
throws ConnectionException
sourceInputStream - Input Stream containing the font data.pathOnPrinter - Location to save the font file on the printer.ConnectionException - if an I/O error occurs.void downloadTteFont(java.io.InputStream sourceInputStream,
String pathOnPrinter)
throws ConnectionException
sourceInputStream - Input Stream containing the font data.pathOnPrinter - Location to save the font file on the printer.ConnectionException - if an I/O error occurs.
© 2017 ZIH Corp. All Rights Reserved.