getFontWidth method

int getFontWidth(
  1. PrinterTextStyle style
)

获取字体宽度

fontType 字体类型

fontSize 字体大小

Implementation

int getFontWidth(PrinterTextStyle style) {
  return style.fontSize! * _fontMap[style.fontType!]!.fontBaseWidth;
}