A utility class providing helper functions for TSPL operations. More...
#include <Utilities.h>
Class Methods | |
| (NSData *) | + TsplWindowsFontWithImageName:fontSize:rotation:fontStyle:fontFamilyName:content: |
| Generates a TSPL-compatible font object as image data. | |
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 |
Generates a TSPL-compatible font object as image data.
This method converts a Windows font with the specified family name, size, style, and rotation into image data. The generated image can then be used in TSPL printing commands.
| imageName | The name of the image resource. |
| fontSize | The font size to use. |
| rotation | The rotation angle of the font (in degrees, e.g., 0, 90, 180, 270). |
| fontStyle | The font style:
|
| fontFamilyName | The name of the font family. |
| content | The text content to render. |