| CustomiOSApi 1.09

/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
29 enum FontSize
30 {
34 FONT_SIZE_X1 = 0,
38 FONT_SIZE_X2 = 1,
42 FONT_SIZE_X3 = 2,
46 FONT_SIZE_X4 = 3,
50 FONT_SIZE_X5 = 4,
54 FONT_SIZE_X6 = 5,
58 FONT_SIZE_X7 = 6,
62 FONT_SIZE_X8 = 7,
63 };
64
65 //************************************************************************************************
66 // FONT JUSTIFICATION
67 //************************************************************************************************
68
72 enum FontJustification
73 {
77 FONT_JUSTIFICATION_LEFT = 0,
81 FONT_JUSTIFICATION_CENTER = 1,
85 FONT_JUSTIFICATION_RIGHT = 2,
86 };
87
88 //************************************************************************************************
89 // FONT TYPE
90 //************************************************************************************************
91
95 enum FontType
96 {
100 FONT_TYPE_A = 0,
104 FONT_TYPE_B = 1,
105 };
106
107 //************************************************************************************************
108 // INTERNATIONAL CHARSET
109 //************************************************************************************************
110
114 enum FontIntCharset
115 {
119 FONT_CS_DEFAULT = 0,
123 FONT_CS_RUSSIAN = 1,
127 FONT_CS_TURKISH = 2,
131 FONT_CS_EASTEEUROPE = 3,
135 FONT_CS_ISRAELI = 4,
139 FONT_CS_GREEK = 5,
140 };
141
142 @protected
143
144 @private
145
146 enum FontSize charWidth;
147 enum FontSize charHeight;
148 Boolean bemphasized;
149 Boolean bitalic;
150 Boolean bunderline;
151 enum FontJustification justification;
152 enum FontType charFontType;
153 enum FontIntCharset internationalCharSet;
154 NSStringEncoding encodingCharSet;
155
156}
157
161- (enum FontSize) GetCharWidth;
162
168- (void) SetCharWidth:(enum FontSize)value :(NSError**)error;
169
173- (enum FontSize) GetCharHeight;
174
180- (void) SetCharHeight:(enum FontSize)value :(NSError**)error;
181
185- (Boolean) GetEmphasized;
186
191- (void) SetEmphasized:(Boolean)value;
192
196- (Boolean) GetItalic;
197
202- (void) SetItalic:(Boolean)value;
203
207- (Boolean) GetUnderline;
208
213- (void) SetUnderline:(Boolean)value;
214
223- (enum FontJustification) GetJustification;
224
236- (void) SetJustification:(enum FontJustification)value :(NSError**)error;
237
245- (enum FontType) GetCharFontType;
246
257- (void) SetCharFontType:(enum FontType)value :(NSError**)error;
258
270- (enum FontIntCharset) GetInternationalCharSet;
271
286- (void) SetInternationalCharSet:(enum FontIntCharset)value :(NSError**)error;
287
292- (NSStringEncoding) GetEncodingCharSet;
293
301- (void) SetEncodingCharSet:(NSStringEncoding)value :(NSError**)error;
302
303@end
304
305#endif
PrinterFont
This the container class to hold various font attributes
Definition: PrinterFont.h:18
PrinterFont::FontType
FontType
Font Type
Definition: PrinterFont.h:96
PrinterFont::FONT_TYPE_A
@ FONT_TYPE_A
Definition: PrinterFont.h:100
PrinterFont::FONT_TYPE_B
@ FONT_TYPE_B
Definition: PrinterFont.h:104
PrinterFont::FontIntCharset
FontIntCharset
Font International Charset
Definition: PrinterFont.h:115
PrinterFont::FONT_CS_RUSSIAN
@ FONT_CS_RUSSIAN
Definition: PrinterFont.h:123
PrinterFont::FONT_CS_TURKISH
@ FONT_CS_TURKISH
Definition: PrinterFont.h:127
PrinterFont::FONT_CS_GREEK
@ FONT_CS_GREEK
Definition: PrinterFont.h:139
PrinterFont::FONT_CS_EASTEEUROPE
@ FONT_CS_EASTEEUROPE
Definition: PrinterFont.h:131
PrinterFont::FONT_CS_ISRAELI
@ FONT_CS_ISRAELI
Definition: PrinterFont.h:135
PrinterFont::FONT_CS_DEFAULT
@ FONT_CS_DEFAULT
Definition: PrinterFont.h:119
PrinterFont::FontJustification
FontJustification
Font Justification
Definition: PrinterFont.h:73
PrinterFont::FONT_JUSTIFICATION_CENTER
@ FONT_JUSTIFICATION_CENTER
Definition: PrinterFont.h:81
PrinterFont::FONT_JUSTIFICATION_RIGHT
@ FONT_JUSTIFICATION_RIGHT
Definition: PrinterFont.h:85
PrinterFont::FONT_JUSTIFICATION_LEFT
@ FONT_JUSTIFICATION_LEFT
Definition: PrinterFont.h:77
PrinterFont::FontSize
FontSize
Font Size
Definition: PrinterFont.h:30
PrinterFont::FONT_SIZE_X4
@ FONT_SIZE_X4
Definition: PrinterFont.h:46
PrinterFont::FONT_SIZE_X1
@ FONT_SIZE_X1
Definition: PrinterFont.h:34
PrinterFont::FONT_SIZE_X5
@ FONT_SIZE_X5
Definition: PrinterFont.h:50
PrinterFont::FONT_SIZE_X8
@ FONT_SIZE_X8
Definition: PrinterFont.h:62
PrinterFont::FONT_SIZE_X6
@ FONT_SIZE_X6
Definition: PrinterFont.h:54
PrinterFont::FONT_SIZE_X7
@ FONT_SIZE_X7
Definition: PrinterFont.h:58
PrinterFont::FONT_SIZE_X2
@ FONT_SIZE_X2
Definition: PrinterFont.h:38
PrinterFont::FONT_SIZE_X3
@ FONT_SIZE_X3
Definition: PrinterFont.h:42