CustomiOSApi 1.11
/Users/user/Documents/sviluppo/CustomiOSApi/CustomiOSApi/CustomiOSApi/PrinterFont.h
1//
2// PrinterFont.h
3// CustomiOSApi
4//
5// Created by CUSTOM on 01/07/13.
6// Copyright (c) 2013 CUSTOM. All rights reserved.
7//
8
9#ifndef PRINTERFONT_H_
10#define PRINTERFONT_H_
11
12#import <Foundation/Foundation.h>
13#import <stdio.h>
14
18@interface PrinterFont : NSObject{
19
20 @public
21
22 //************************************************************************************************
23 // FONT SIZE
24 //************************************************************************************************
25
30 {
63 };
64
65 //************************************************************************************************
66 // FONT JUSTIFICATION
67 //************************************************************************************************
68
73 {
86 };
87
88 //************************************************************************************************
89 // FONT TYPE
90 //************************************************************************************************
91
96 {
125 };
126
127 //************************************************************************************************
128 // STATIC CONST : LINE SPACING
129 //************************************************************************************************
130
134 #define LINESPACING_DEFAULT 64
135
136 //************************************************************************************************
137 // STATIC CONST : INTERNATIONAL CHARSET
138 //************************************************************************************************
142 #define FONT_CS_DEFAULT 0
143
144 @protected
145
146 @private
147
148 enum FontSize charWidth;
149 enum FontSize charHeight;
150 enum FontJustification justification;
151 enum FontType charFontType;
152 NSInteger interCharSet;
153 NSInteger internationalCharSet;
154 Boolean bitalic;
155 Boolean bemphasized;
156 Boolean bunderline;
157
158}
159
160 //************************************************************************************************
161 // FONT SIZE
162 //************************************************************************************************
163
164
168- (enum FontSize) GetCharWidth;
169
175- (void) SetCharWidth:(enum FontSize)value :(NSError**)error;
176
180- (enum FontSize) GetCharHeight;
181
187- (void) SetCharHeight:(enum FontSize)value :(NSError**)error;
188
189 //************************************************************************************************
190 // BOLD / EMPHASIZED
191 //************************************************************************************************
192
196- (Boolean) GetEmphasized;
197
202- (void) SetEmphasized:(Boolean)value;
203
204 //************************************************************************************************
205 // ITALIC
206 //************************************************************************************************
207
208
212- (Boolean) GetItalic;
213
218- (void) SetItalic:(Boolean)value;
219
220 //************************************************************************************************
221 // UNDERLINE
222 //************************************************************************************************
223
227- (Boolean) GetUnderline;
228
233- (void) SetUnderline:(Boolean)value;
234
235 //************************************************************************************************
236 // JUSTIFICATION
237 //************************************************************************************************
238
239
248- (enum FontJustification) GetJustification;
249
261- (void) SetJustification:(enum FontJustification)value :(NSError**)error;
262
263 //************************************************************************************************
264 // FONT TYPE
265 //************************************************************************************************
266
267
280- (enum FontType) GetCharFontType;
281
297- (void) SetCharFontType:(enum FontType)value :(NSError**)error;
298
299 //************************************************************************************************
300 // LINE SPACING
301 //************************************************************************************************
302
306- (NSInteger) GetLineSpacing;
307
314- (void) SetLineSpacing:(NSInteger)value :(NSError**)error;
315
316 //************************************************************************************************
317 // FONT INTERNATIONAL CHAR SET
318 //************************************************************************************************
319
323- (int) GetInternationalCharSet;
324
330- (void) SetInternationalCharSet:(NSInteger)_interCharSet :(NSError**)error;
331
332@end
333
334#endif
This the container class to hold various font attributes
Definition: PrinterFont.h:18
FontType
Font Type
Definition: PrinterFont.h:96
@ FONT_TYPE_1
Definition: PrinterFont.h:108
@ FONT_TYPE_2
Definition: PrinterFont.h:112
@ FONT_TYPE_A
Definition: PrinterFont.h:100
@ FONT_TYPE_4
Definition: PrinterFont.h:120
@ FONT_TYPE_5
Definition: PrinterFont.h:124
@ FONT_TYPE_3
Definition: PrinterFont.h:116
@ FONT_TYPE_B
Definition: PrinterFont.h:104
FontJustification
Font Justification
Definition: PrinterFont.h:73
@ FONT_JUSTIFICATION_CENTER
Definition: PrinterFont.h:81
@ FONT_JUSTIFICATION_RIGHT
Definition: PrinterFont.h:85
@ FONT_JUSTIFICATION_LEFT
Definition: PrinterFont.h:77
FontSize
Font Size
Definition: PrinterFont.h:30
@ FONT_SIZE_X4
Definition: PrinterFont.h:46
@ FONT_SIZE_X1
Definition: PrinterFont.h:34
@ FONT_SIZE_X5
Definition: PrinterFont.h:50
@ FONT_SIZE_X8
Definition: PrinterFont.h:62
@ FONT_SIZE_X6
Definition: PrinterFont.h:54
@ FONT_SIZE_X7
Definition: PrinterFont.h:58
@ FONT_SIZE_X2
Definition: PrinterFont.h:38
@ FONT_SIZE_X3
Definition: PrinterFont.h:42