andrey-ushakov / esc_pos_utils

Basic Flutter/Dart classes for ESC/POS printing
BSD 3-Clause "New" or "Revised" License
147 stars 329 forks source link

ask for change on _getMaxCharsPerLine function #75

Open fatimaown1993 opened 2 years ago

fatimaown1993 commented 2 years ago

hi after checking there is no condition for the PaperSize.mm72 in _getMaxCharsPerLine function I hope you consider this.

like this for example:

int _getMaxCharsPerLine(PosFontType? font) { if (_paperSize == PaperSize.mm58) { return (font == null || font == PosFontType.fontA) ? 32 : 42; } else if (_paperSize == PaperSize.mm72) { return (font == null || font == PosFontType.fontA) ? 42 : 42; } else { return (font == null || font == PosFontType.fontA) ? 48 : 64; } }