UniPRT SDK v2.0.0.0
 
載入中...
搜尋中...
無符合項目
PglUtilities 類別 參考文件

提供 PGL 操作輔助功能的工具類。 更多...

#include <PglUtilities.h>

類別PglUtilities的繼承圖:

類別方法

(NSData *) + PglWindowsFontWithImageName:fontSize:rotation:fontStyle:fontFamilyName:content:
 產生 PGL 相容的字體影像資料。
 

詳細描述

提供 PGL 操作輔助功能的工具類。

此類包含靜態方法,用於支援 PGL 列印指令中的字體與圖片處理。

方法文件

◆ 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 

產生 PGL 相容的字體影像資料。

此方法會根據指定的字體家族名稱、大小、樣式與旋轉角度, 將 Windows 字體轉換成影像資料。產生的影像可用於 PGL 列印指令。

參數
imageName圖片資源名稱。
fontSize使用的字體大小。
rotation字體的旋轉角度(以度為單位)。
fontStyle字體樣式:
  • 0: 一般
  • 1: 粗體
  • 2: 斜體
  • 3: 粗斜體
fontFamilyName字體家族名稱。
content要繪製的文字內容。
傳回值
包含產生字體影像的 NSData 物件。

此類別(class) 文件是由下列檔案中產生: