getFontHeight method

int getFontHeight(
  1. PrinterTextStyle style
)

获取字体高度

fontType 字体类型

fontSize 字体大小

Implementation

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