Paint ligature boxes as their component letters
This commit is contained in:
1 parent
67915402a6
commit
ff3fff343d
3 files changed
+32
-3
No files matched your search
@@ -1600,6 +1600,24 @@ mod tests {
|
||||
assert_eq!(before, after);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ligature_boxes_paint_their_component_letters() {
|
||||
let unit = Unit::paragraph(1, "office");
|
||||
let page = Page {
|
||||
items: unit.items,
|
||||
insertions: Vec::new(),
|
||||
marks: Vec::new(),
|
||||
floats: Vec::new(),
|
||||
sources: Vec::new(),
|
||||
hash: 0,
|
||||
};
|
||||
let list = page.display_list();
|
||||
assert!(list.items.iter().any(|item| matches!(
|
||||
item,
|
||||
crate::render::DisplayItem::Text { text, .. } if text == "ff"
|
||||
)));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn paragraph_widths_come_from_cmr10_not_fixed_cells() {
|
||||
let width = |source: &str| {
|
||||
|
||||
Reference in new issue
Block a user