Skip to content

Template mode does not print bold #25

Description

@Bjornar97

Hi. Im using template mode. In the template text is set to Arial in semibold. When printing through this library using network printer it does not come out in semibold. If I print using the P-touch program, it does come out in semibold.

Printer: Brother QL-820NWB

Code:

$this->printer = new Printer(new Template($template, $this->stream));

$this->printer->addCommand(new Command\ObjectCommand('productName', utf8_decode($this->product->name)));
$this->printer->addCommand(new Command\ObjectCommand("barcode", $this->product->id));
$this->printer->addCommand(new Command\ObjectCommand("price", "{$product->price_with_mva},-"));

$this->printer->addCommand(new Command\Cut(Command\Cut::FULL));

$this->printer->printLabel();

Template files I have tested with:
Templates.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions