-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to open getter for Style properties #68
Comments
Plus, some of the printers are behaving weird with style setting(justification setting not working). I want to do some adaptations with custom style and no reflection. |
Hi @OumaSyuu, public class Chinese {
int FS = 0x1c;
void exec(EscPos escpos) throws IOException {
/**
public function textChinese(string $str = "")
{
$this -> connector -> write(self::FS . "&");
$str = \UConverter::transcode($str, "GBK", "UTF-8");
$this -> buffer -> writeTextRaw((string)$str);
$this -> connector -> write(self::FS . ".");
}
**/
escpos.write(FS).write("&");
String text = "艾德蒙 AOC E2450SWH 23.6吋 LED液晶寬螢幕特價$ 19900\n\n";
byte [] x = text.getBytes("BIG5");
escpos.write(x,0,x.length);
escpos.write(FS).write(".");
escpos.feed(5).cut(EscPos.CutMode.FULL);
}
Ok, some printers can't recognize the textStyle commands, you can try the textprintmodestyle. text print mode style class / more explanation
Hey, you found one architectural problem. I need to transform the attributes in protect instead of privates ! I'll do the corrections to the next release. And then you will be able to make your own inherited style commands. |
Thanks for help. It works. |
Hi, I want to know is it possible to open getter for Style properties:
I have got pos printers that support Chinese characters. And the underline setting is not working on Chinese characters(need to write command "FS-"). I
ve tried to override getConfigBytes with custom style class, but I can
t access the underline property.The text was updated successfully, but these errors were encountered: