| CustomiOSApi 1.06

- Main Page
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Functions Enumerations Enumerator Pages
Public Types | Instance Methods | List of all members
PrinterFont Class Reference

This the container class to hold various font attributes More...

## 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 More...
enum | FontIntCharset { FONT_CS_DEFAULT = 0, FONT_CS_RUSSIAN = 1, FONT_CS_TURKISH = 2, FONT_CS_EASTEEUROPE = 3, FONT_CS_ISRAELI = 4, FONT_CS_GREEK = 5 }
| Font International Charset More...

## Instance Methods
(enum FontSize) | - GetCharWidth
| Get Character width ratio (default FONT_SIZE_X1) More...
(void) | - SetCharWidth::
| Set Character width ratio More...
(enum FontSize) | - GetCharHeight
| Get Character height ratio (default FONT_SIZE_X1) More...
(void) | - SetCharHeight::
| 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::
| Set Font justification: More...
(enum FontType) | - GetCharFontType
| Get Font type: More...
(void) | - SetCharFontType::
| Set Font type: More...
(enum FontIntCharset) | - GetInternationalCharSet
| Get Font international char set: More...
(void) | - SetInternationalCharSet::
| Get Font international char set: More...
(NSStringEncoding) | - GetEncodingCharSet
| Get Font international char encoding (Only if loaded on printer) More...
(void) | - SetEncodingCharSet::
| Set Font international char encoding (Only if loaded on printer) More...
(id) | - init`[implementation]`

## Detailed Description

This the container class to hold various font attributes

## Member Enumeration Documentation

- (enum) FontIntCharset

Font International Charset

Enumerator
FONT_CS_DEFAULT | Indicates that the International Charset is the Printer Default
FONT_CS_RUSSIAN | Indicates that the International Charset is Russian (PC866)
FONT_CS_TURKISH | Indicates that the International Charset is Turkish (PC857)
FONT_CS_EASTEEUROPE | Indicates that the International Charset is East Europe (PC852)
FONT_CS_ISRAELI | Indicates that the International Charset is Israeli (PC862)
FONT_CS_GREEK | Indicates that the International Charset is Greek (PC737)

- (enum) FontJustification

Font Justification

Enumerator
FONT_JUSTIFICATION_LEFT | Indicates that the Font Justification is Left
FONT_JUSTIFICATION_CENTER | Indicates that the Font Justification is Center
FONT_JUSTIFICATION_RIGHT | Indicates that the Font Justification is Right

- (enum) FontSize

Font Size

Enumerator
FONT_SIZE_X1 | Indicates that the Font Size is 1X
FONT_SIZE_X2 | Indicates that the Font Size is 2X
FONT_SIZE_X3 | Indicates that the Font Size is 3X
FONT_SIZE_X4 | Indicates that the Font Size is 4X
FONT_SIZE_X5 | Indicates that the Font Size is 5X
FONT_SIZE_X6 | Indicates that the Font Size is 6X
FONT_SIZE_X7 | Indicates that the Font Size is 7X
FONT_SIZE_X8 | Indicates that the Font Size is 8X

- (enum) FontType

Font Type

Enumerator
FONT_TYPE_A | Indicates that the Font Type is A
FONT_TYPE_B | Indicates that the Font Type is B

## Method Documentation

- (enum FontType) GetCharFontType |  |  |

Get Font type:

- FONT_TYPE_A - Font A.
- FONT_TYPE_B - Font B.

- (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)

- (NSStringEncoding) GetEncodingCharSet |  |  |

Get Font international char encoding (Only if loaded on printer)

NSStringEncoding references

- (enum FontIntCharset) GetInternationalCharSet |  |  |

Get Font international char set:

- FONT_CS_DEFAULT - Printer Default.
- FONT_CS_RUSSIAN - RUSSIAN (Only if loaded on printer).
- FONT_CS_TURKISH - TURKISH (Only if loaded on printer).
- FONT_CS_EASTEEUROPE - EAST EUROPE (Only if loaded on printer).
- FONT_CS_ISRAELI - ISRAELI (Only if loaded on printer).
- FONT_CS_GREEK - GREEK (Only if loaded on printer).

- (Boolean) GetItalic |  |  |

Get Font italic (default false)

- (enum FontJustification) GetJustification |  |  |

Get Font justification:

- FONT_JUSTIFICATION_LEFT - left
- FONT_JUSTIFICATION_CENTER - center
- FONT_JUSTIFICATION_RIGHT - right

- (Boolean) GetUnderline |  |  |

Get Font underline (default false)

- (id) init |  |  |
| implementation

- (void) SetCharFontType: |  | (enum FontType) | value
: |  | (NSError**) | error

Set Font type:

Parameters

  value | Font value: FONT_TYPE_A - Font A. FONT_TYPE_B - Font B.
  error | Error pointer

- (void) SetCharHeight: |  | (enum FontSize) | value
: |  | (NSError**) | error

Set Character height ratio

Parameters

  value | Font height ratio Size
  error | Error pointer

- (void) SetCharWidth: |  | (enum FontSize) | value
: |  | (NSError**) | error

Set Character width ratio

Parameters

  value | Font width ratio Size
  error | Error pointer

- (void) SetEmphasized: |  | (Boolean) | value |

Set Font emphasied

Parameters

  value | Emphasized value

- (void) SetEncodingCharSet: |  | (NSStringEncoding) | value
: |  | (NSError**) | error

Set Font international char encoding (Only if loaded on printer)

Parameters

  value | Font international char encoding NSStringEncoding references
  error | Error pointer

- (void) SetInternationalCharSet: |  | (enum FontIntCharset) | value
: |  | (NSError**) | error

Get Font international char set:

Parameters

  value | Font international char set value: FONT_CS_DEFAULT - Printer Default. FONT_CS_RUSSIAN - RUSSIAN (Only if loaded on printer). FONT_CS_TURKISH - TURKISH (Only if loaded on printer). FONT_CS_EASTEEUROPE - EAST EUROPE (Only if loaded on printer). FONT_CS_ISRAELI - ISRAELI (Only if loaded on printer). FONT_CS_GREEK - GREEK (Only if loaded on printer).
  error | Error pointer

- (void) SetItalic: |  | (Boolean) | value |

Set Font italic

Parameters

  value | Italic value

- (void) SetJustification: |  | (enum FontJustification) | value
: |  | (NSError**) | error

Set Font justification:

Parameters

  value | Justification value: FONT_JUSTIFICATION_LEFT - left FONT_JUSTIFICATION_CENTER - center FONT_JUSTIFICATION_RIGHT - right
  error | Error pointer

- (void) SetUnderline: |  | (Boolean) | value |

Set Font underline

Parameters

  value | Underline value