labelize 0.2.0

Fast Rust engine to parse ZPL & EPL label data and render to PNG/PDF. CLI, HTTP microservice, or library. Open-source Labelary alternative.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::field_alignment::FieldAlignment;
use super::font::FontInfo;
use super::label_element::LabelElement;
use super::label_position::LabelPosition;
use super::reverse_print::ReversePrint;

#[derive(Clone, Debug)]
pub struct FieldInfo {
    pub reverse_print: ReversePrint,
    pub element: Option<Box<LabelElement>>,
    pub font: FontInfo,
    pub position: LabelPosition,
    pub alignment: FieldAlignment,
    pub width: i32,
    pub width_ratio: f64,
    pub height: i32,
    pub current_charset: i32,
}