![]() |
CustomiOSApi 1.11
|
This the container class to hold various font attributes More...
#import <PrinterFont.h>
Public Types | |
| enum | FontSize { FONT_SIZE_X1 = 0 , FONT_SIZE_X2 = 1 , FONT_SIZE_X3 = 2 , FONT_SIZE_X4 = 3 , FONT_SIZE_X5 = 4 , FONT_SIZE_X6 = 5 , FONT_SIZE_X7 = 6 , FONT_SIZE_X8 = 7 } |
| Font Size More... | |
| enum | FontJustification { FONT_JUSTIFICATION_LEFT = 0 , FONT_JUSTIFICATION_CENTER = 1 , FONT_JUSTIFICATION_RIGHT = 2 } |
| Font Justification More... | |
| enum | FontType { FONT_TYPE_A = 0 , FONT_TYPE_B = 1 , FONT_TYPE_1 = 5 , FONT_TYPE_2 = 6 , FONT_TYPE_3 = 7 , FONT_TYPE_4 = 8 , FONT_TYPE_5 = 9 } |
| Font Type More... | |
Instance Methods | |
| (enum FontSize) | - GetCharWidth |
| Get Character width ratio (default FONT_SIZE_X1) More... | |
| (void) | - SetCharWidth:value: |
| Set Character width ratio More... | |
| (enum FontSize) | - GetCharHeight |
| Get Character height ratio (default FONT_SIZE_X1) More... | |
| (void) | - SetCharHeight:value: |
| Set Character height ratio More... | |
| (Boolean) | - GetEmphasized |
| Get Font emphasied (default false) More... | |
| (void) | - SetEmphasized: |
| Set Font emphasied More... | |
| (Boolean) | - GetItalic |
| Get Font italic (default false) More... | |
| (void) | - SetItalic: |
| Set Font italic More... | |
| (Boolean) | - GetUnderline |
| Get Font underline (default false) More... | |
| (void) | - SetUnderline: |
| Set Font underline More... | |
| (enum FontJustification) | - GetJustification |
| Get Font justification: More... | |
| (void) | - SetJustification:value: |
| Set Font justification: More... | |
| (enum FontType) | - GetCharFontType |
| Get Font type: More... | |
| (void) | - SetCharFontType:value: |
| Set Font type: More... | |
| (NSInteger) | - GetLineSpacing |
| Returns current line spacing More... | |
| (void) | - SetLineSpacing:value: |
| Set the line spacing. Please refere to the device command manual for additional info. NOTE: All the values under the font height set line spacing to 0. More... | |
| (int) | - GetInternationalCharSet |
| Returns the international char set More... | |
| (void) | - SetInternationalCharSet:_interCharSet: |
| Sets the international char set More... | |
| (id) | - init [implementation] |
This the container class to hold various font attributes
| - (enum) FontJustification |
| - (enum) FontSize |
Font Size
| - (enum) FontType |
Font Type
| - (enum FontType) GetCharFontType |
Get Font type:
| - (enum FontSize) GetCharHeight |
Get Character height ratio (default FONT_SIZE_X1)
| - (enum FontSize) GetCharWidth |
Get Character width ratio (default FONT_SIZE_X1)
| - (Boolean) GetEmphasized |
Get Font emphasied (default false)
| - (NSInteger) GetInternationalCharSet |
Returns the international char set
| - (Boolean) GetItalic |
Get Font italic (default false)
| - (enum FontJustification) GetJustification |
Get Font justification:
| - (NSInteger) GetLineSpacing |
Returns current line spacing
| - (Boolean) GetUnderline |
Get Font underline (default false)
|
implementation |
| - (void) SetCharFontType: | (enum FontType) | ||
| value: | (NSError**) | error | |
Set Font type:
| value | Font value:
|
| error | Error pointer |
| - (void) SetCharHeight: | (enum FontSize) | ||
| value: | (NSError**) | error | |
Set Character height ratio
| value | Font height ratio Size |
| error | Error pointer |
| - (void) SetCharWidth: | (enum FontSize) | ||
| value: | (NSError**) | error | |
Set Character width ratio
| value | Font width ratio Size |
| error | Error pointer |
| - (void) SetEmphasized: | (Boolean) | value |
Set Font emphasied
| value | Emphasized value |
| - (void) SetInternationalCharSet: | (NSInteger) | ||
| _interCharSet: | (NSError**) | error | |
Sets the international char set
| _interCharSet | is the codepage value. Ex: 437 for "PC437 - USA". - 0 - Default.
|
| - (void) SetItalic: | (Boolean) | value |
Set Font italic
| value | Italic value |
| - (void) SetJustification: | (enum FontJustification) | ||
| value: | (NSError**) | error | |
Set Font justification:
| value | Justification value:
|
| error | Error pointer |
| - (void) SetLineSpacing: | (NSInteger) | ||
| value: | (NSError**) | error | |
Set the line spacing. Please refere to the device command manual for additional info. NOTE: All the values under the font height set line spacing to 0.
| value | line spacing |
| error | Error pointer |
| - (void) SetUnderline: | (Boolean) | value |
Set Font underline
| value | Underline value |