Skip to content

A free open source IT asset/license management system

add vertical stacking to L7162B and fonts

Godfrey Ma668aa60b27b
diff --git a/app/Models/Labels/Sheets/Avery/L7162_B.php b/app/Models/Labels/Sheets/Avery/L7162_B.php
index c0b8bda3ad..05d694adc0 100644
--- a/app/Models/Labels/Sheets/Avery/L7162_B.php
+++ b/app/Models/Labels/Sheets/Avery/L7162_B.php
@@ -131,19 +131,28 @@ class L7162_B extends L7162
return true;
}
+ public function getTextRenderMode(): string
+ {
+ return 'vertical_stack';
+ }
protected function getContentEditorConfig(): array
{
return [
- 'barcode_size' => $this->getBarcodeSize(),
+ 'barcode_size' => 4,
'barcode_margin' => $this->getBarcodeMargin(),
+ 'tag_font' => 'freemono',
'tag_font_size' => $this->getTagSize(),
'logo_max_width' => $this->getLogoMaxWidth(),
- 'title_font_size' => $this->getTitleSize(),
- 'title_margin' => $this->getTitleMargin(),
+ 'title_font' => 'freesans',
+ 'title_font_size' => 3.2,
+ 'title_margin' => .2,
+ 'field_label_font' => 'freesans',
'field_label_font_size' => $this->getLabelSize(),
'field_label_margin' => $this->getLabelMargin(),
- 'field_value_font_size' => $this->getFieldSize(),
+ 'field_label_value_font' => 'freemono',
+ 'field_value_font_size' => 3.2,
'field_value_margin' => $this->getFieldMargin(),
+ 'text_render_mode' => $this->getTextRenderMode(),
];
}