getMaxChars method

int getMaxChars(
  1. FontSize fontSize
)

Implementation

int getMaxChars(FontSize fontSize) {
  switch (fontSize) {
    case FontSize.compressed:
      return maxCharsCompressed;
    case FontSize.normal:
      return maxChars;
    case FontSize.doubleWidth:
      return maxChars ~/ 2;
    case FontSize.big:
      return maxChars ~/ 2;
    default:
      return maxChars;
  }
}