KevinGong2013 / Printer

Swift ticket printer framework for ESC/POS-compatible thermal printers.
Apache License 2.0
147 stars 73 forks source link

Title size #18

Closed dromerobarria closed 4 years ago

dromerobarria commented 5 years ago

Hi, great work the best printer helper so far.

Any way to change the size of the title font, already try small but no quite I was looking for.

KevinGong2013 commented 5 years ago

you can use PredefinedAttribute custom title block.

KevinGong2013 commented 4 years ago
let customTitle = Text(content: "LARGE TITLE", predefined: .alignment(.center), .bold, .scale(.l3))
        var ticket = Ticket(
             Block(customTitle),
            .title("Restaurant"),
            .blank,
            ...
        )