mirror of
https://github.com/storytold/wordcraft.git
synced 2026-12-02 22:30:10 +00:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62c7baee64 | ||
|
|
3e5c6ce405 | ||
|
|
3fe111cc9f |
@@ -516,8 +516,8 @@ impl<'e> Breaker<'e> {
|
||||
// Word, measured with Arial at 10 and 20 pt, single, 1.15 and 1.5 spacing: a 30 pt picture
|
||||
// alone takes 30, 30 + 0.15 and 30 + 0.5 times the font's height, lowered 10 or 30 pt or
|
||||
// not; raised 10 pt, 10 more; a 6 pt one, the font's height; beside text and lowered
|
||||
// 10 pt, 30. Not on a line lowered further than the picture's height, which layout limits
|
||||
// to that height where Word's line keeps growing.
|
||||
// 10 pt, 30; lowered 30 pt, a 6 pt one makes a 30 pt line (`drawing` leaves the lowering
|
||||
// whole; exact spacing keeps it to the picture's height, see `extents`).
|
||||
let spacing = if let LineSpacing::Multiple(m) = rp.line_spacing { Some(m) } else { None };
|
||||
let pictures_alone = !text && obj_asc + obj_desc > 0.0 && spacing.is_some();
|
||||
let below = if pictures_alone { obj_desc } else { desc };
|
||||
|
||||
+4
-3
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user