#include <Utilities.h>
类方法 | |
| (NSData *) | + TsplWindowsFontWithImageName:fontSize:rotation:fontStyle:fontFamilyName:content: |
| 將文字渲染為 1bpp BMP 資料並封裝成 TSPL DOWNLOAD 指令。 | |
| + (NSData *) TsplWindowsFontWithImageName: | (NSString *) | imageName | |
| fontSize: | (NSInteger) | fontSize | |
| rotation: | (NSInteger) | rotation | |
| fontStyle: | (NSInteger) | fontStyle | |
| fontFamilyName: | (NSString *) | fontFamilyName | |
| content: | (NSString *) | content |
將文字渲染為 1bpp BMP 資料並封裝成 TSPL DOWNLOAD 指令。
此方法會根據指定的 Windows 字體屬性(家族、大小、樣式、旋轉)將文字轉換為單色點陣圖資料, 並包裝成可傳送至印表機的 TSPL DOWNLOAD 指令。
| imageName | 不含副檔名的圖片名稱。 |
| fontSize | 字體大小(點)。 |
| rotation | 字體旋轉角度(度:0、90、180、270)。 |
| fontStyle | 字體樣式:
|
| fontFamilyName | 字體家族名稱(例如 Helvetica)。 |
| content | 要渲染的文字。 |