UniPRT SDK v2.0.0.0
 
Loading...
Searching...
No Matches
PglUtilities Class Reference

A utility class providing helper functions for PGL operations. More...

#include <PglUtilities.h>

Inheritance diagram for PglUtilities:

Class Methods

(NSData *) + PglWindowsFontWithImageName:fontSize:rotation:fontStyle:fontFamilyName:content:
 Generates a PGL-compatible font object as image data.
 

Detailed Description

A utility class providing helper functions for PGL operations.

This class contains static methods that support font and image handling for PGL printing commands.

Method Documentation

◆ PglWindowsFontWithImageName:fontSize:rotation:fontStyle:fontFamilyName:content:

+ (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.

Parameters
imageNameThe name of the image resource.
fontSizeThe font size to use.
rotationThe rotation angle of the font (in degrees).
fontStyleThe font style:
  • 0: Normal
  • 1: Bold
  • 2: Italic
  • 3: Bold + Italic
fontFamilyNameThe name of the font family.
contentThe text content to render.
Returns
An NSData object containing the generated font image.

The documentation for this class was generated from the following file: