Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align FXL auto mode on Reflow’s auto-pagination #113

Open
JayPanoz opened this issue Mar 3, 2025 · 0 comments
Open

Align FXL auto mode on Reflow’s auto-pagination #113

JayPanoz opened this issue Mar 3, 2025 · 0 comments

Comments

@JayPanoz
Copy link
Contributor

JayPanoz commented Mar 3, 2025

For reflowable text, we are using two line-lengths to handle the number of columns:

  • minimalLineLength: undefined | null | number (of characters)
  • optimalLineLength: number (of characters)

This allows to target an optimal number of characters per line, taking various settings into account e.g. font-family, letter-spacing, etc., resulting in a practical width computed from all these settings. Then this number is used to check how many multiple we can fit into the container.

Of course the same logic can’t be applied to FXL, which is very different by nature, but we should have an equivalent that allows to switch from a single page to a two-page spread e.g. a breakpoint, and that should be part of the Preferences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant