A utility class providing helper functions for TSPL operations. More...
#include <Utilities.h>
Class Methods | |
| (NSData *) | + TsplWindowsFontWithImageName:fontSize:rotation:fontStyle:fontFamilyName:content: |
| Renders text as 1bpp BMP data wrapped in a TSPL DOWNLOAD command. | |
A utility class providing helper functions for TSPL operations.
This class contains static methods that support font and image handling for TSPL printing commands.
| + (NSData *) TsplWindowsFontWithImageName: | (NSString *) | imageName | |
| fontSize: | (NSInteger) | fontSize | |
| rotation: | (NSInteger) | rotation | |
| fontStyle: | (NSInteger) | fontStyle | |
| fontFamilyName: | (NSString *) | fontFamilyName | |
| content: | (NSString *) | content |
Renders text as 1bpp BMP data wrapped in a TSPL DOWNLOAD command.
This method converts the given text into monochrome bitmap data using the specified Windows font attributes (family, size, style, rotation). The result is wrapped into a TSPL DOWNLOAD command that can be sent to the printer.
| imageName | The image name without extension. |
| fontSize | The font size in points. |
| rotation | The rotation angle of the font (degrees: 0, 90, 180, 270). |
| fontStyle | The font style:
|
| fontFamilyName | The name of the font family (e.g., Helvetica). |
| content | The text to render. |