star-micronics / StarXpand-SDK-Android

StarXpand SDK for Android is a software development kit for supporting application development for Star Micronics devices.
https://star-m.jp/starxpandsdk-oml.html
Other
13 stars 0 forks source link

Is there any way to increase font size without making bold or dark? #21

Closed SidSpPlus closed 5 months ago

Tatsuki-Yamamoto2731 commented 6 months ago

@SidSpPlus You may be able to use MagnificationParameter.

You can refer this page for the usage.

Could you please try it?

SidSpPlus commented 6 months ago

ICommandBuilder builder = StarIoExt.createCommandBuilder(StarIoExt.Emulation.EscPosMobile); builder.appendMultiple(("Hello this is for the Testing"+"1" + "\n").getBytes(encoding), 1, 1); // Your text here

I am using this for printing

but with this if i try to increase font size its stretch and become dark
SidSpPlus commented 6 months ago

Any feedback?

SidSpPlus commented 6 months ago

@Tatsuki-Yamamoto2731 Any solution for this?

SidSpPlus commented 6 months ago

@Tatsuki-Yamamoto2731 Hello

Tatsuki-Yamamoto2731 commented 6 months ago

@SidSpPlus According to your comment, I think you are using StarPRNT SDK (here is StarXpand SDK issue). Unfortunately, appendMultiple() cannot increase font size without making it bold or dark. This is because if the width is doubled, the letter thickness is also doubled.

If you must increase font size without making it bold or dark, the only way is to make printing data as an image (graphic) and use appendBitmap().

SidSpPlus commented 6 months ago

@Tatsuki-Yamamoto2731 Thank you.