/// <summary> /// Sets the active font to this /// </summary> /// <param name="font">Font to use</param> public override void SetFont(ThermalFonts font) { if (font == ThermalFonts.NOP) { return; } // A == 11 CPI // B == 15 CPI // C == 20 CPI // Just change the CPI mode and then leave at Font A to avoid // having multiple configurables to set/clear switch (font) { case ThermalFonts.A: internalSend(CPI11); break; case ThermalFonts.B: internalSend(CPI15); break; case ThermalFonts.C: internalSend(CPI20); break; } }
/// <summary> /// Sets the active font to this /// </summary> /// <param name="font">Font to use</param> public override void SetFont(ThermalFonts font) { if (font == ThermalFonts.NOP) { return; } switch (font) { case ThermalFonts.A: internalSend(FontACmd); break; case ThermalFonts.B: internalSend(FontBCmd); break; case ThermalFonts.C: internalSend(FontCCmd); break; } }
/// <inheritdoc /> /// <summary> /// Sets the active font to this /// </summary> /// <param name="font">Font to use</param> public abstract void SetFont(ThermalFonts font);