Open qarmin opened 1 year ago
layer.use_text( format!("{} ", header), FONT_SIZE, Mm(position.x), Mm(PAGE_HEIGHT - position.y - idx as f32 * 5.0), &fonts[&Fonts::RobotoRegular], ); layer.write_text(*data, &fonts[&Fonts::RobotoBold]); layer.use_text( format!("{} ", header), FONT_SIZE, Mm(position.x), Mm(PAGE_HEIGHT - position.y - idx as f32 * 5.0 - 20.0), &fonts[&Fonts::RobotoBold], ); layer.write_text(*data, &fonts[&Fonts::RobotoRegular]);
First part should be writeten with one font and second(after :) with another, but this not works
In fpdf2 with similar construction I got such output
First part should be writeten with one font and second(after :) with another, but this not works
In fpdf2 with similar construction I got such output