fontSize static method

List<int> fontSize(
  1. int width,
  2. int height
)

Implementation

static List<int> fontSize(int width, int height) {
  // GS ! n - Seleccionar tamaƱo de caracteres
  int size = (width.clamp(1, 8) - 1) | ((height.clamp(1, 8) - 1) << 4);
  return [0x1D, 0x21, size];
}