Replies: 3 comments 43 replies
-
It is hardcoded at https://github.com/koreader/crengine/blob/c4b6b9ee2a5e123f20955b80b29b3a0063863844/crengine/src/lvdocview.cpp#L2579-L2611 to be at min 1.2em (= 1.2 your normal font size) - unless I messed the computation. For me, with the text using the normal font size, it feels alright at various font sizes: We don't want to go as low as the L or R margin, we need more between the 2 columns for readability. |
Beta Was this translation helpful? Give feedback.
-
@poire-z: Wild idea: what about picking up the "line spacing" prop instead of hard-coding it to 1.2em? |
Beta Was this translation helpful? Give feedback.
-
It's lacking what you do with the "margin" at the end. int floor_margin = 1.2 * m_font_size;
int target_margin = m_pageMargins.left > m_pageMargins.right ? m_pageMargins.left : m_pageMargins.right;
int margin = 0;
int baked_margin = m_pageMargins.right + m_pageMargins.left;
if (baked_margin < floor_margin) {
margin = floor_margin - baked_margin;
}
else if (baked_margin > target_margin) {
if (target_margin > floor_margin)
margin = target_margin - baked_margin; // negative
else
margin = floor_margin - baked_margin; // negative
}
// Note: with negative values, we allow these 2 m_pageRects to
// overlap. But it seems there is no issue doing that.
m_pageRects[0].right = middle - margin / 2;
m_pageRects[1].left = middle + margin / 2; And had to re-picture what are rects, and m_pageMargins is a false rect, just a holder of 4 values. And realized that "middle" is just a point. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to make the borders on the L/R margins in the middle smaller?
Here in dual page portrait mode it is extrem, but in landscape mode it is not much different.
I have set L/R margins to zero already, but there is still a lot of space in the middle wasted.
Beta Was this translation helpful? Give feedback.
All reactions