提供 PGL 操作輔助功能的工具類。 更多...
#include <PglUtilities.h>
类方法 | |
| (NSData *) | + PglWindowsFontWithImageName:fontSize:rotation:fontStyle:fontFamilyName:content: |
| 產生 PGL 相容的字體圖像資料。 | |
提供 PGL 操作輔助功能的工具類。
該類包含靜態方法,用於支援 PGL 列印指令中的字體與圖片處理。
| + (NSData *) PglWindowsFontWithImageName: | (NSString *) | imageName | |
| fontSize: | (NSInteger) | fontSize | |
| rotation: | (NSInteger) | rotation | |
| fontStyle: | (NSInteger) | fontStyle | |
| fontFamilyName: | (NSString *) | fontFamilyName | |
| content: | (NSString *) | content |
產生 PGL 相容的字體圖像資料。
此方法會根據指定的字體家族名稱、大小、樣式與旋轉角度, 將 Windows 字體轉換成圖像資料。產生的圖像可用於 PGL 列印指令。
| imageName | 圖片資源名稱。 |
| fontSize | 使用的字體大小。 |
| rotation | 字體的旋轉角度(以度為單位)。 |
| fontStyle | 字體樣式:
|
| fontFamilyName | 字體家族名稱。 |
| content | 要渲染的文字內容。 |