Commit d112216f by lujunyi

打印*号

parent e203ed88
......@@ -212,7 +212,7 @@ public function search()
// 计算当前记录的x坐标,每增加一个记录,x坐标就往后移动一些位置
$xCoordinate = $xStart + ($k % 3) * $horizontalSpacing;
// 固定药品名称12字符,数量单位12个字符,
$medicineText = sprintf('%-12s %-12s', $medicine['drug_name'], "{$medicine['num']}{$medicine['unit']}");
$medicineText = sprintf('%-12s %-12s', $medicine['drug_name'], "*{$medicine['num']}{$medicine['unit']}");
$img->text($medicineText, $xCoordinate, $yCoordinate, function ($font) {
$font->filename(public_path('static/fonts/SimHei.ttf'));
$font->size(40);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment