提供 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 | 字體的旋轉角度(度:0、90、180、270)。 |
| fontStyle | 字體樣式:
|
| fontFamilyName | 字體家族名稱。 |
| content | 要繪製的文字內容。 |