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

vaev-layout: Refact builder reflecting block/inline outside-display b… #33

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

pauloamed
Copy link
Contributor

…ehaviour and better inline handling.

@pauloamed pauloamed marked this pull request as ready for review March 18, 2025 08:46
@pauloamed pauloamed force-pushed the palm-build-inline-box branch 3 times, most recently from d567ffe to 1f7b6e1 Compare March 20, 2025 10:29
@@ -45,6 +45,10 @@ struct PdfPrinter : public FilePrinter {
for (auto& [_, value] : fontManager.mapping._els) {
auto& [id, fontFace] = value;

if (not fontFace.is<Text::TtfFontface>()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fallback font or panic?


stack.add(makeRc<Scene::Text>(frag.metrics.borderBox().topStart().cast<f64>(), *prose));
if (auto ic = frag.box->content.is<InlineBox>()) {
stack.add(makeRc<Scene::Text>(frag.metrics.contentBox().topStart().cast<f64>(), ic->prose));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check with clem about borderbox->contentbox

@pauloamed pauloamed force-pushed the palm-build-inline-box branch 2 times, most recently from da19c9d to bbe16a8 Compare March 20, 2025 12:19
@pauloamed pauloamed force-pushed the palm-build-inline-box branch from bbe16a8 to 9030075 Compare March 20, 2025 13:59
@pauloamed pauloamed force-pushed the palm-build-inline-box branch from 2569971 to 00bf848 Compare March 20, 2025 14:42
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

Successfully merging this pull request may close these issues.

1 participant