A utility class providing helper functions for PGL operations. More...
#include <PglUtilities.h>
Class Methods | |
| (NSData *) | + PglWindowsFontWithImageName:fontSize:rotation:fontStyle:fontFamilyName:content: |
| Generates a PGL-compatible font object as image data. | |
A utility class providing helper functions for PGL operations.
This class contains static methods that support font and image handling for PGL printing commands.
| + (NSData *) PglWindowsFontWithImageName: | (NSString *) | imageName | |
| fontSize: | (NSInteger) | fontSize | |
| rotation: | (NSInteger) | rotation | |
| fontStyle: | (NSInteger) | fontStyle | |
| fontFamilyName: | (NSString *) | fontFamilyName | |
| content: | (NSString *) | content |
Generates a PGL-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 PGL printing commands.
| imageName | The name of the image resource. |
| fontSize | The font size to use. |
| rotation | The rotation angle of the font (degrees: 0, 90, 180, 270). |
| fontStyle | The font style:
|
| fontFamilyName | The name of the font family. |
| content | The text content to render. |