dope_card_rows_per_page

Function dope_card_rows_per_page 

Source
pub fn dope_card_rows_per_page(font_scale: f32) -> usize
Expand description

Data rows the two-column table fits on one page at font_scale.

Split out of generate_dope_card_pdf (which now calls it, so there is exactly one copy of this arithmetic) for callers that must report a page count without holding the document: the bridge’s card.pdf returns page_count in its response, and a second, independent copy of the layout maths there could silently drift from the pagination the generator actually performed.

font_scale is clamped to FONT_SCALE_RANGE exactly as the generator clamps it.