fullbleed 2.5.6__tar.gz → 2.5.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fullbleed-2.5.6 → fullbleed-2.5.8}/Cargo.lock +1 -1
- {fullbleed-2.5.6 → fullbleed-2.5.8}/Cargo.toml +1 -1
- {fullbleed-2.5.6 → fullbleed-2.5.8}/PKG-INFO +49 -7
- {fullbleed-2.5.6 → fullbleed-2.5.8}/README.md +48 -6
- {fullbleed-2.5.6 → fullbleed-2.5.8}/fullbleed-agent-contract.json +1 -1
- {fullbleed-2.5.6 → fullbleed-2.5.8}/llms.txt +1 -1
- {fullbleed-2.5.6 → fullbleed-2.5.8}/pyproject.toml +1 -1
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/font.rs +238 -29
- fullbleed-2.5.8/src/font_subset/cmap.rs +329 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/font_subset.rs +160 -4
- {fullbleed-2.5.6 → fullbleed-2.5.8}/COPYRIGHT +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/FONT_LICENSE_AUDIT.json +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/FONT_LICENSE_AUDIT.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/LICENSE +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/LICENSING.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/THIRD_PARTY_LICENSES.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/build.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/build_backend/fullbleed_build_backend.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/Cargo.lock +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/Cargo.toml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/LICENSE +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/README.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/specs/fullbleed.audit_registry.v1.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/specs/section508_html_registry.v1.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/specs/wcag20aa_registry.v1.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/src/json.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/src/lib.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/src/sha256.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/docs/specs/fullbleed.a11y.verify.v1.schema.json +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/docs/specs/fullbleed.audit_registry.v1.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/docs/specs/fullbleed.pmr.v1.schema.json +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/docs/specs/section508_html_registry.v1.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/docs/specs/wcag20aa_registry.v1.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/__main__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/_abi.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/accessibility/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/accessibility/engine.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/accessibility/runtime.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/accessibility/types.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/audit_prototype.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/audit_section508.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/audit_wcag.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/accessibility.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/cav/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/cav/_core.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/cav/agency_letter.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/cav/court_motion_form.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/cav/declaration_form.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/cav/instruction_sheet.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/cav/investment_portfolio_report.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/cav/marriage_record.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/cav/profiles.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/cav/recorded_plat.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/cav/redaction_request_form.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/cav/warranty_deed.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/core.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/primitives.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed/ui/style.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_assets/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_assets/bootstrap.min.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_assets/fonts/Inter-Variable.ttf +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_assets/fonts/NotoSans-Regular.ttf +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_assets/fonts/NotoSansMath-Regular.ttf +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_assets/fonts/NotoSansSymbols-Regular.ttf +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_assets/fonts/NotoSansSymbols2-Regular.ttf +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_assets/icons/bootstrap-icons.svg +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/__main__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/agent.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/agent_acceptance.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/agent_contract.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/assets.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/cache.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/cli.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/finalize.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/mcp.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/.gitignore +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/AGENTS.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/COMPLIANCE.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/SCAFFOLDING.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/body.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/fb_ui.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/footer.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/header.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/primitives.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/styles/body.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/styles/footer.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/styles/header.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/styles/primitives.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/report.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/styles/report.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/styles/tokens.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/accessible/README.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/accessible/output/.gitignore +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/accessible/output/.gitkeep +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/accessible/report.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/accessible/styles/report.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/accessible/vendor/fonts/Inter-Variable.ttf +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/invoice/output/.gitignore +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/invoice/output/.gitkeep +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/invoice/report.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/invoice/templates/invoice.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/invoice/templates/invoice.html +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/COMPLIANCE.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/README.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/SCAFFOLDING.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/assets/brand-mark.svg +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/assets/reference-pattern.svg +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/appendix.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/architecture.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/cover.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/data_pages.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/fb_ui.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/primitives.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/appendix.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/architecture.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/cover.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/data.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/primitives.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/visuals.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/visuals.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/data/reference.json +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/output/.gitignore +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/report.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/styles/report.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/styles/tokens.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/statement/output/.gitignore +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/statement/output/.gitkeep +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/statement/report.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/statement/templates/statement.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/statement/templates/statement.html +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/python/fullbleed_cli/watch.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/skills/fullbleed/SKILL.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/skills/fullbleed/agents/openai.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/skills/fullbleed/references/compliance.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/skills/fullbleed/references/selection.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/skills/fullbleed/references/workflows.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/assets.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/authoring.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/base14_metrics.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/base14_metrics_data.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/base64.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/canvas.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/chart.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/chart_document.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/css_native.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/css_queries.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/debug.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/doc_context.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/doc_template.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/document_metadata.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/error.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/finalize.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/flate_native.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/flowable.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/frame.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/glyph_report.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/html.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/html_dom.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/html_entities.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/html_entities_0.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/html_entities_1.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/html_entities_2.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/html_entities_3.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/html_entities_4.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/html_entities_5.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/icc.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/image_native.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/jit.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/jpeg_native.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/lib.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/math.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/metrics.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/native_shape.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/page_data.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/page_template.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/parallel.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf_encodings.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf_identity.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf_native.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf_print_contract.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf_profile.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf_raster/forms.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf_raster/shading/radial_bands.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf_raster/shading/tests.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf_raster/shading.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf_raster.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf_table.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf_vt.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdf_vt_inspect.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/pdfinspect.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/perf.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/plan.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/python/abi_exports.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/python/pdf_vt.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/python.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/python_abi.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/raster.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/raster_native.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/sfnt.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/sfnt_cff.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/sfnt_outline.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/spill.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/style.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/svg.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/table_header_tests.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/table_semantics.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/text_shape.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/types.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/unicode_data.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/src/xml.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/Courier-Bold.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/Courier-BoldOblique.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/Courier-Oblique.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/Courier.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/Helvetica-Bold.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/Helvetica-BoldOblique.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/Helvetica-Oblique.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/Helvetica.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/MustRead.html +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/Symbol.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/Times-Bold.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/Times-BoldItalic.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/Times-Italic.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/Times-Roman.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/ZapfDingbats.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/agl-LICENSE.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/agl-glyphlist.txt +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/agl-zapfdingbats.txt +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/data/base14/sources.json +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.8}/tools/generate_base14_metrics.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fullbleed
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.8
|
|
4
4
|
Classifier: Development Status :: 5 - Production/Stable
|
|
5
5
|
Classifier: License :: OSI Approved :: MIT License
|
|
6
6
|
Classifier: Operating System :: MacOS
|
|
@@ -44,11 +44,11 @@ Project-URL: Repository, https://github.com/fullbleed-engine/fullbleed-official
|
|
|
44
44
|
<!-- SPDX-License-Identifier: MIT -->
|
|
45
45
|
# Fullbleed PDF Engine
|
|
46
46
|
|
|
47
|
-
**Create PDFs from
|
|
47
|
+
**Create PDFs from HTML and CSS in Python, Rust, Node.js, and C#. MIT licensed.**
|
|
48
48
|
|
|
49
|
-
Build invoices, reports, statements, and variable-data print jobs with a deterministic Rust engine
|
|
49
|
+
Build invoices, reports, statements, and variable-data print jobs with a deterministic Rust engine. Use the native Rust API, the Python package, or the optional Node.js and .NET integrations. The Python wheel includes the engine, fonts, and CLI with no required third-party Python packages or system PDF stack. The Node package includes the WebAssembly engine and fonts; the .NET package includes native libraries for in-process rendering.
|
|
50
50
|
|
|
51
|
-
[Try in your browser](https://docs.fullbleed.dev/playground/) · [Documentation](https://docs.fullbleed.dev/) · [Examples](https://docs.fullbleed.dev/examples/) · [PyPI](https://pypi.org/project/fullbleed/) · [Release notes](https://github.com/fullbleed-engine/fullbleed-official/releases) · [MIT license](LICENSE)
|
|
51
|
+
[Try in your browser](https://docs.fullbleed.dev/playground/) · [Documentation](https://docs.fullbleed.dev/) · [Examples](https://docs.fullbleed.dev/examples/) · [PyPI](https://pypi.org/project/fullbleed/) · [crates.io](https://crates.io/crates/fullbleed) · [npm](https://www.npmjs.com/package/fullbleed) · [Release notes](https://github.com/fullbleed-engine/fullbleed-official/releases) · [MIT license](LICENSE)
|
|
52
52
|
|
|
53
53
|
<p>
|
|
54
54
|
<a href="https://docs.fullbleed.dev/assets/showcase/invoice.pdf"><img src="https://docs.fullbleed.dev/assets/showcase/invoice-1.png" width="48%" alt="Northstar Studio invoice rendered by Fullbleed, with serif typography and forest-green tables"></a>
|
|
@@ -57,10 +57,25 @@ Build invoices, reports, statements, and variable-data print jobs with a determi
|
|
|
57
57
|
|
|
58
58
|
Actual Fullbleed output. Open either preview for its PDF, or [explore all four designs with complete HTML/CSS, data, and licensed fonts](https://docs.fullbleed.dev/examples/).
|
|
59
59
|
|
|
60
|
+
## Choose your language
|
|
61
|
+
|
|
62
|
+
| Language | Install | Start building |
|
|
63
|
+
| --- | --- | --- |
|
|
64
|
+
| Python | `python -m pip install fullbleed` | [Python quickstart](https://docs.fullbleed.dev/getting-started/quickstart/) |
|
|
65
|
+
| Rust | `cargo add fullbleed` | [Native Rust quickstart](https://docs.fullbleed.dev/getting-started/rust/) |
|
|
66
|
+
| Node.js / TypeScript | `npm install fullbleed` | [Node quickstart](https://docs.fullbleed.dev/getting-started/node/) · [Next.js PDF download](https://docs.fullbleed.dev/guides/nextjs-pdf/) |
|
|
67
|
+
| C# / .NET | `dotnet add package FullBleed.DotNet --version 0.1.2` | [C# quickstart and designed invoice](https://docs.fullbleed.dev/getting-started/dotnet/) |
|
|
68
|
+
|
|
69
|
+
The Node integration is independently versioned and covers ordinary PDF generation.
|
|
70
|
+
The independently versioned .NET package targets .NET 8, with native rendering, compiled bindings, and previews. Its separate CLI adapter requires the Python CLI.
|
|
71
|
+
The Python package provides the complete CLI, including compiled variable-data jobs and print profiles; the Rust guide covers the native API.
|
|
72
|
+
|
|
60
73
|
## Your first PDF
|
|
61
74
|
|
|
62
75
|
Start in the [HTML/CSS playground](https://docs.fullbleed.dev/playground/) to edit a designed invoice or report and download a real PDF. It runs locally in your browser with no account or document upload. You can also use the [Python notebook in Colab](https://colab.research.google.com/github/fullbleed-engine/fullbleed-official/blob/master/examples/notebooks/first_invoice.ipynb), or start with a local script:
|
|
63
76
|
|
|
77
|
+
### Python
|
|
78
|
+
|
|
64
79
|
Python 3.10–3.14 on Windows, macOS, or Linux:
|
|
65
80
|
|
|
66
81
|
```bash
|
|
@@ -81,9 +96,32 @@ Path("invoice.pdf").write_bytes(pdf)
|
|
|
81
96
|
|
|
82
97
|
Open `invoice.pdf`. The [quickstart](https://docs.fullbleed.dev/getting-started/quickstart/) adds fonts, previews, and a complete project. The runnable source is in [`examples/quickstart/hello.py`](examples/quickstart/hello.py).
|
|
83
98
|
|
|
84
|
-
|
|
99
|
+
### Node.js
|
|
100
|
+
|
|
101
|
+
Use Node.js 22 or newer. Run `npm install fullbleed`, save this as `invoice.mjs`, then run `node invoice.mjs`:
|
|
102
|
+
|
|
103
|
+
```javascript
|
|
104
|
+
import { writeFile } from 'node:fs/promises';
|
|
105
|
+
import { renderPdf } from 'fullbleed';
|
|
85
106
|
|
|
86
|
-
|
|
107
|
+
const result = await renderPdf({
|
|
108
|
+
html: '<h1>Invoice INV-1042</h1><p>Consulting: USD 1,200.00</p>',
|
|
109
|
+
css: '@page { size: A4; margin: 20mm } h1 { color: #175c52 }',
|
|
110
|
+
previewDpi: 96,
|
|
111
|
+
});
|
|
112
|
+
await writeFile('invoice.pdf', result.pdf);
|
|
113
|
+
await writeFile('invoice.png', result.previews[0]);
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Open `invoice.pdf` or its PNG preview. The [Node.js quickstart](https://docs.fullbleed.dev/getting-started/node/) includes a downloadable designed invoice project. The separate [Node package](https://github.com/fullbleed-engine/fullbleed-node) supports ESM, CommonJS, and TypeScript. For an application route, use the [Next.js starter](https://docs.fullbleed.dev/guides/nextjs-pdf/).
|
|
117
|
+
|
|
118
|
+
### Rust
|
|
119
|
+
|
|
120
|
+
Start with the [native Rust quickstart](https://docs.fullbleed.dev/getting-started/rust/). The [`fullbleed` crate](https://crates.io/crates/fullbleed) exposes `FullBleed::builder()` and `render_to_buffer(...)`, with no Python requirement. The guide includes runnable invoice and report examples with explicit fonts and PNG previews, plus the [Rust API reference](https://docs.rs/fullbleed/2.5.6/fullbleed/).
|
|
121
|
+
|
|
122
|
+
### C# and .NET
|
|
123
|
+
|
|
124
|
+
Install [`FullBleed.DotNet`](https://www.nuget.org/packages/FullBleed.DotNet/0.1.2) in a .NET 8 project and follow the [C# quickstart](https://docs.fullbleed.dev/getting-started/dotnet/). The guide includes a runnable invoice with explicit fonts and HTML/CSS source. Native rendering runs inside the .NET process on Windows x64, Linux x64, Intel macOS, and Apple Silicon macOS, without a Python or browser runtime.
|
|
87
125
|
|
|
88
126
|
## Choose your starting point
|
|
89
127
|
|
|
@@ -92,6 +130,7 @@ Open `invoice.pdf`. The [quickstart](https://docs.fullbleed.dev/getting-started/
|
|
|
92
130
|
| Distinctive invoices, reports, notices, and statements | [Designed showcase with fonts and source](examples/design_showcase) |
|
|
93
131
|
| A native Rust application | [Rust quickstart and runnable examples](https://docs.fullbleed.dev/getting-started/rust/) |
|
|
94
132
|
| A Node.js or TypeScript application | [Node quickstart and designed invoice project](https://docs.fullbleed.dev/getting-started/node/) |
|
|
133
|
+
| A C# or .NET application | [NuGet quickstart and designed invoice](https://docs.fullbleed.dev/getting-started/dotnet/) |
|
|
95
134
|
| An invoice from JSON | [Complete, checked example](examples/agent_workflows) |
|
|
96
135
|
| Automatic rebuilds while editing HTML/CSS (2.5.0+) | [Watch-mode invoice example](examples/render_watch) |
|
|
97
136
|
| Catch PDF changes in pull requests | [Standalone project with a reviewed baseline and CI workflow](examples/pdf_regression) |
|
|
@@ -273,7 +312,7 @@ python -m pip install fullbleed
|
|
|
273
312
|
From a local wheel:
|
|
274
313
|
|
|
275
314
|
```bash
|
|
276
|
-
python -m pip install C:\path\to\fullbleed-2.5.
|
|
315
|
+
python -m pip install C:\path\to\fullbleed-2.5.8-cp310-abi3-win_amd64.whl
|
|
277
316
|
```
|
|
278
317
|
|
|
279
318
|
From a source checkout with Rust installed, no Python build package is needed:
|
|
@@ -1097,6 +1136,9 @@ PdfEngine(
|
|
|
1097
1136
|
)
|
|
1098
1137
|
```
|
|
1099
1138
|
|
|
1139
|
+
For regular/italic family selection and exact face mappings, see
|
|
1140
|
+
[Registering fonts](docs/font-registration.md).
|
|
1141
|
+
|
|
1100
1142
|
Module exports:
|
|
1101
1143
|
|
|
1102
1144
|
- `PdfEngine`
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<!-- SPDX-License-Identifier: MIT -->
|
|
2
2
|
# Fullbleed PDF Engine
|
|
3
3
|
|
|
4
|
-
**Create PDFs from
|
|
4
|
+
**Create PDFs from HTML and CSS in Python, Rust, Node.js, and C#. MIT licensed.**
|
|
5
5
|
|
|
6
|
-
Build invoices, reports, statements, and variable-data print jobs with a deterministic Rust engine
|
|
6
|
+
Build invoices, reports, statements, and variable-data print jobs with a deterministic Rust engine. Use the native Rust API, the Python package, or the optional Node.js and .NET integrations. The Python wheel includes the engine, fonts, and CLI with no required third-party Python packages or system PDF stack. The Node package includes the WebAssembly engine and fonts; the .NET package includes native libraries for in-process rendering.
|
|
7
7
|
|
|
8
|
-
[Try in your browser](https://docs.fullbleed.dev/playground/) · [Documentation](https://docs.fullbleed.dev/) · [Examples](https://docs.fullbleed.dev/examples/) · [PyPI](https://pypi.org/project/fullbleed/) · [Release notes](https://github.com/fullbleed-engine/fullbleed-official/releases) · [MIT license](LICENSE)
|
|
8
|
+
[Try in your browser](https://docs.fullbleed.dev/playground/) · [Documentation](https://docs.fullbleed.dev/) · [Examples](https://docs.fullbleed.dev/examples/) · [PyPI](https://pypi.org/project/fullbleed/) · [crates.io](https://crates.io/crates/fullbleed) · [npm](https://www.npmjs.com/package/fullbleed) · [Release notes](https://github.com/fullbleed-engine/fullbleed-official/releases) · [MIT license](LICENSE)
|
|
9
9
|
|
|
10
10
|
<p>
|
|
11
11
|
<a href="https://docs.fullbleed.dev/assets/showcase/invoice.pdf"><img src="https://docs.fullbleed.dev/assets/showcase/invoice-1.png" width="48%" alt="Northstar Studio invoice rendered by Fullbleed, with serif typography and forest-green tables"></a>
|
|
@@ -14,10 +14,25 @@ Build invoices, reports, statements, and variable-data print jobs with a determi
|
|
|
14
14
|
|
|
15
15
|
Actual Fullbleed output. Open either preview for its PDF, or [explore all four designs with complete HTML/CSS, data, and licensed fonts](https://docs.fullbleed.dev/examples/).
|
|
16
16
|
|
|
17
|
+
## Choose your language
|
|
18
|
+
|
|
19
|
+
| Language | Install | Start building |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| Python | `python -m pip install fullbleed` | [Python quickstart](https://docs.fullbleed.dev/getting-started/quickstart/) |
|
|
22
|
+
| Rust | `cargo add fullbleed` | [Native Rust quickstart](https://docs.fullbleed.dev/getting-started/rust/) |
|
|
23
|
+
| Node.js / TypeScript | `npm install fullbleed` | [Node quickstart](https://docs.fullbleed.dev/getting-started/node/) · [Next.js PDF download](https://docs.fullbleed.dev/guides/nextjs-pdf/) |
|
|
24
|
+
| C# / .NET | `dotnet add package FullBleed.DotNet --version 0.1.2` | [C# quickstart and designed invoice](https://docs.fullbleed.dev/getting-started/dotnet/) |
|
|
25
|
+
|
|
26
|
+
The Node integration is independently versioned and covers ordinary PDF generation.
|
|
27
|
+
The independently versioned .NET package targets .NET 8, with native rendering, compiled bindings, and previews. Its separate CLI adapter requires the Python CLI.
|
|
28
|
+
The Python package provides the complete CLI, including compiled variable-data jobs and print profiles; the Rust guide covers the native API.
|
|
29
|
+
|
|
17
30
|
## Your first PDF
|
|
18
31
|
|
|
19
32
|
Start in the [HTML/CSS playground](https://docs.fullbleed.dev/playground/) to edit a designed invoice or report and download a real PDF. It runs locally in your browser with no account or document upload. You can also use the [Python notebook in Colab](https://colab.research.google.com/github/fullbleed-engine/fullbleed-official/blob/master/examples/notebooks/first_invoice.ipynb), or start with a local script:
|
|
20
33
|
|
|
34
|
+
### Python
|
|
35
|
+
|
|
21
36
|
Python 3.10–3.14 on Windows, macOS, or Linux:
|
|
22
37
|
|
|
23
38
|
```bash
|
|
@@ -38,9 +53,32 @@ Path("invoice.pdf").write_bytes(pdf)
|
|
|
38
53
|
|
|
39
54
|
Open `invoice.pdf`. The [quickstart](https://docs.fullbleed.dev/getting-started/quickstart/) adds fonts, previews, and a complete project. The runnable source is in [`examples/quickstart/hello.py`](examples/quickstart/hello.py).
|
|
40
55
|
|
|
41
|
-
|
|
56
|
+
### Node.js
|
|
57
|
+
|
|
58
|
+
Use Node.js 22 or newer. Run `npm install fullbleed`, save this as `invoice.mjs`, then run `node invoice.mjs`:
|
|
59
|
+
|
|
60
|
+
```javascript
|
|
61
|
+
import { writeFile } from 'node:fs/promises';
|
|
62
|
+
import { renderPdf } from 'fullbleed';
|
|
42
63
|
|
|
43
|
-
|
|
64
|
+
const result = await renderPdf({
|
|
65
|
+
html: '<h1>Invoice INV-1042</h1><p>Consulting: USD 1,200.00</p>',
|
|
66
|
+
css: '@page { size: A4; margin: 20mm } h1 { color: #175c52 }',
|
|
67
|
+
previewDpi: 96,
|
|
68
|
+
});
|
|
69
|
+
await writeFile('invoice.pdf', result.pdf);
|
|
70
|
+
await writeFile('invoice.png', result.previews[0]);
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Open `invoice.pdf` or its PNG preview. The [Node.js quickstart](https://docs.fullbleed.dev/getting-started/node/) includes a downloadable designed invoice project. The separate [Node package](https://github.com/fullbleed-engine/fullbleed-node) supports ESM, CommonJS, and TypeScript. For an application route, use the [Next.js starter](https://docs.fullbleed.dev/guides/nextjs-pdf/).
|
|
74
|
+
|
|
75
|
+
### Rust
|
|
76
|
+
|
|
77
|
+
Start with the [native Rust quickstart](https://docs.fullbleed.dev/getting-started/rust/). The [`fullbleed` crate](https://crates.io/crates/fullbleed) exposes `FullBleed::builder()` and `render_to_buffer(...)`, with no Python requirement. The guide includes runnable invoice and report examples with explicit fonts and PNG previews, plus the [Rust API reference](https://docs.rs/fullbleed/2.5.6/fullbleed/).
|
|
78
|
+
|
|
79
|
+
### C# and .NET
|
|
80
|
+
|
|
81
|
+
Install [`FullBleed.DotNet`](https://www.nuget.org/packages/FullBleed.DotNet/0.1.2) in a .NET 8 project and follow the [C# quickstart](https://docs.fullbleed.dev/getting-started/dotnet/). The guide includes a runnable invoice with explicit fonts and HTML/CSS source. Native rendering runs inside the .NET process on Windows x64, Linux x64, Intel macOS, and Apple Silicon macOS, without a Python or browser runtime.
|
|
44
82
|
|
|
45
83
|
## Choose your starting point
|
|
46
84
|
|
|
@@ -49,6 +87,7 @@ Open `invoice.pdf`. The [quickstart](https://docs.fullbleed.dev/getting-started/
|
|
|
49
87
|
| Distinctive invoices, reports, notices, and statements | [Designed showcase with fonts and source](examples/design_showcase) |
|
|
50
88
|
| A native Rust application | [Rust quickstart and runnable examples](https://docs.fullbleed.dev/getting-started/rust/) |
|
|
51
89
|
| A Node.js or TypeScript application | [Node quickstart and designed invoice project](https://docs.fullbleed.dev/getting-started/node/) |
|
|
90
|
+
| A C# or .NET application | [NuGet quickstart and designed invoice](https://docs.fullbleed.dev/getting-started/dotnet/) |
|
|
52
91
|
| An invoice from JSON | [Complete, checked example](examples/agent_workflows) |
|
|
53
92
|
| Automatic rebuilds while editing HTML/CSS (2.5.0+) | [Watch-mode invoice example](examples/render_watch) |
|
|
54
93
|
| Catch PDF changes in pull requests | [Standalone project with a reviewed baseline and CI workflow](examples/pdf_regression) |
|
|
@@ -230,7 +269,7 @@ python -m pip install fullbleed
|
|
|
230
269
|
From a local wheel:
|
|
231
270
|
|
|
232
271
|
```bash
|
|
233
|
-
python -m pip install C:\path\to\fullbleed-2.5.
|
|
272
|
+
python -m pip install C:\path\to\fullbleed-2.5.8-cp310-abi3-win_amd64.whl
|
|
234
273
|
```
|
|
235
274
|
|
|
236
275
|
From a source checkout with Rust installed, no Python build package is needed:
|
|
@@ -1054,6 +1093,9 @@ PdfEngine(
|
|
|
1054
1093
|
)
|
|
1055
1094
|
```
|
|
1056
1095
|
|
|
1096
|
+
For regular/italic family selection and exact face mappings, see
|
|
1097
|
+
[Registering fonts](docs/font-registration.md).
|
|
1098
|
+
|
|
1057
1099
|
Module exports:
|
|
1058
1100
|
|
|
1059
1101
|
- `PdfEngine`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Fullbleed PDF Engine
|
|
2
2
|
|
|
3
|
-
> Fullbleed 2.5.
|
|
3
|
+
> Fullbleed 2.5.8 is a deterministic, self-contained document-generation runtime for Python and Rust. It turns structured data plus static HTML/CSS into validated PDF documents without a browser.
|
|
4
4
|
|
|
5
5
|
The installed runtime is authoritative. Do not infer its API from this file or from remembered release knowledge. Start with:
|
|
6
6
|
|
|
@@ -5,7 +5,7 @@ backend-path = ["build_backend"]
|
|
|
5
5
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "fullbleed"
|
|
8
|
-
version = "2.5.
|
|
8
|
+
version = "2.5.8"
|
|
9
9
|
description = "Deterministic Python PDF engine for reports, invoices, accessible documents, print-ready output, and compiled VDP"
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
requires-python = ">=3.10"
|
|
@@ -160,6 +160,7 @@ impl TextWidthCache {
|
|
|
160
160
|
pub(crate) struct FontRegistry {
|
|
161
161
|
fonts: Vec<RegisteredFont>,
|
|
162
162
|
lookup: HashMap<String, usize>,
|
|
163
|
+
family_aliases: BTreeSet<String>,
|
|
163
164
|
use_full_unicode_metrics: bool,
|
|
164
165
|
text_width_cache: Mutex<TextWidthCache>,
|
|
165
166
|
font_subset_cache: Mutex<FontSubsetCache>,
|
|
@@ -267,6 +268,7 @@ pub(crate) struct RegisteredFont {
|
|
|
267
268
|
pub(crate) name: String,
|
|
268
269
|
pub(crate) data: Vec<u8>,
|
|
269
270
|
fingerprint: [u8; 32],
|
|
271
|
+
family_default_rank: (bool, u8, u16),
|
|
270
272
|
pub(crate) metrics: FontMetrics,
|
|
271
273
|
pub(crate) program_kind: FontProgramKind,
|
|
272
274
|
#[cfg_attr(not(feature = "python"), allow(dead_code))]
|
|
@@ -337,6 +339,7 @@ impl FontRegistry {
|
|
|
337
339
|
Self {
|
|
338
340
|
fonts: Vec::new(),
|
|
339
341
|
lookup: HashMap::new(),
|
|
342
|
+
family_aliases: BTreeSet::new(),
|
|
340
343
|
use_full_unicode_metrics: true,
|
|
341
344
|
text_width_cache: Mutex::new(TextWidthCache::new(20_000)),
|
|
342
345
|
font_subset_cache: Mutex::new(FontSubsetCache::new()),
|
|
@@ -352,8 +355,9 @@ impl FontRegistry {
|
|
|
352
355
|
let Ok(entries) = fs::read_dir(path) else {
|
|
353
356
|
return;
|
|
354
357
|
};
|
|
355
|
-
|
|
356
|
-
|
|
358
|
+
let mut paths: Vec<_> = entries.flatten().map(|entry| entry.path()).collect();
|
|
359
|
+
paths.sort();
|
|
360
|
+
for path in paths {
|
|
357
361
|
if path.is_file() {
|
|
358
362
|
self.register_file_with_source(path.as_path(), RegisteredFontSourceKind::Directory);
|
|
359
363
|
}
|
|
@@ -394,8 +398,9 @@ impl FontRegistry {
|
|
|
394
398
|
continue;
|
|
395
399
|
};
|
|
396
400
|
|
|
397
|
-
let
|
|
401
|
+
let names = font_names(&face, path);
|
|
398
402
|
let (metrics, program_kind) = FontMetrics::from_face(&face);
|
|
403
|
+
let family_default_rank = family_default_rank(&face);
|
|
399
404
|
let index = self.fonts.len();
|
|
400
405
|
let identifier = if matches!(ext.as_str(), "ttc" | "otc") {
|
|
401
406
|
format!("{}#{}", path.to_string_lossy(), face_index)
|
|
@@ -403,8 +408,9 @@ impl FontRegistry {
|
|
|
403
408
|
path.to_string_lossy().to_string()
|
|
404
409
|
};
|
|
405
410
|
self.fonts.push(RegisteredFont {
|
|
406
|
-
name:
|
|
411
|
+
name: names.primary.clone(),
|
|
407
412
|
fingerprint: sfnt_cache_fingerprint(&face_data),
|
|
413
|
+
family_default_rank,
|
|
408
414
|
data: face_data,
|
|
409
415
|
metrics,
|
|
410
416
|
program_kind,
|
|
@@ -414,16 +420,7 @@ impl FontRegistry {
|
|
|
414
420
|
},
|
|
415
421
|
});
|
|
416
422
|
|
|
417
|
-
|
|
418
|
-
all_aliases.push(name);
|
|
419
|
-
all_aliases.extend(aliases);
|
|
420
|
-
for alias in all_aliases {
|
|
421
|
-
let key = normalize_name(&alias);
|
|
422
|
-
if key.is_empty() || self.lookup.contains_key(&key) {
|
|
423
|
-
continue;
|
|
424
|
-
}
|
|
425
|
-
self.lookup.insert(key, index);
|
|
426
|
-
}
|
|
423
|
+
self.register_names(index, names);
|
|
427
424
|
}
|
|
428
425
|
}
|
|
429
426
|
|
|
@@ -469,12 +466,15 @@ impl FontRegistry {
|
|
|
469
466
|
)));
|
|
470
467
|
};
|
|
471
468
|
|
|
472
|
-
let
|
|
469
|
+
let names = font_names(&face, Path::new(source));
|
|
470
|
+
let name = names.primary.clone();
|
|
473
471
|
let (metrics, program_kind) = FontMetrics::from_face(&face);
|
|
472
|
+
let family_default_rank = family_default_rank(&face);
|
|
474
473
|
let index = self.fonts.len();
|
|
475
474
|
self.fonts.push(RegisteredFont {
|
|
476
475
|
name: name.clone(),
|
|
477
476
|
fingerprint: sfnt_cache_fingerprint(&data),
|
|
477
|
+
family_default_rank,
|
|
478
478
|
data,
|
|
479
479
|
metrics,
|
|
480
480
|
program_kind,
|
|
@@ -486,18 +486,46 @@ impl FontRegistry {
|
|
|
486
486
|
},
|
|
487
487
|
});
|
|
488
488
|
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
489
|
+
self.register_names(index, names);
|
|
490
|
+
|
|
491
|
+
Ok(name)
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
fn register_names(&mut self, index: usize, names: FontNames) {
|
|
495
|
+
let families: BTreeSet<_> = names
|
|
496
|
+
.families
|
|
497
|
+
.iter()
|
|
498
|
+
.map(|name| normalize_name(name))
|
|
499
|
+
.filter(|name| !name.is_empty())
|
|
500
|
+
.collect();
|
|
501
|
+
// Face-specific names and caller-provided aliases keep first-registration
|
|
502
|
+
// priority. They take precedence over an incidental family alias.
|
|
503
|
+
for alias in std::iter::once(names.primary).chain(names.aliases) {
|
|
493
504
|
let key = normalize_name(&alias);
|
|
494
|
-
if key.is_empty() ||
|
|
505
|
+
if key.is_empty() || families.contains(&key) {
|
|
495
506
|
continue;
|
|
496
507
|
}
|
|
497
|
-
self.
|
|
508
|
+
if self.family_aliases.remove(&key) {
|
|
509
|
+
self.lookup.insert(key, index);
|
|
510
|
+
} else {
|
|
511
|
+
self.lookup.entry(key).or_insert(index);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
// A family without a CSS @font-face mapping starts at normal/400. Do
|
|
515
|
+
// not let directory order or an italic-first bundle choose that face.
|
|
516
|
+
// Equal-rank duplicates retain the caller's registration priority.
|
|
517
|
+
for key in families {
|
|
518
|
+
if let Some(&previous) = self.lookup.get(&key) {
|
|
519
|
+
if !self.family_aliases.contains(&key)
|
|
520
|
+
|| self.fonts[previous].family_default_rank
|
|
521
|
+
<= self.fonts[index].family_default_rank
|
|
522
|
+
{
|
|
523
|
+
continue;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
self.lookup.insert(key.clone(), index);
|
|
527
|
+
self.family_aliases.insert(key);
|
|
498
528
|
}
|
|
499
|
-
|
|
500
|
-
Ok(name)
|
|
501
529
|
}
|
|
502
530
|
|
|
503
531
|
pub(crate) fn resolve(&self, name: &str) -> Option<&RegisteredFont> {
|
|
@@ -1811,10 +1839,42 @@ fn scale_i16(value: i16, scale: f32) -> i16 {
|
|
|
1811
1839
|
scaled.clamp(i16::MIN as i32, i16::MAX as i32) as i16
|
|
1812
1840
|
}
|
|
1813
1841
|
|
|
1814
|
-
|
|
1842
|
+
// Default (normal, weight 400) family matching. Explicit CSS @font-face
|
|
1843
|
+
// descriptors and styled variant selection remain responsible for other styles.
|
|
1844
|
+
fn family_default_rank(face: &SfntFace<'_>) -> (bool, u8, u16) {
|
|
1845
|
+
let selection = face
|
|
1846
|
+
.table(*b"OS/2")
|
|
1847
|
+
.and_then(|table| font_be_u16(table, 62))
|
|
1848
|
+
.unwrap_or(0);
|
|
1849
|
+
let mac_style = face
|
|
1850
|
+
.table(*b"head")
|
|
1851
|
+
.and_then(|table| font_be_u16(table, 44))
|
|
1852
|
+
.unwrap_or(0);
|
|
1853
|
+
let slanted = selection & 0x201 != 0
|
|
1854
|
+
|| mac_style & 2 != 0
|
|
1855
|
+
|| face.italic_angle().is_some_and(|angle| angle != 0.0);
|
|
1856
|
+
let weight = face.weight_class();
|
|
1857
|
+
// CSS's 400 fallback order is 400..500, below 400, then above 500.
|
|
1858
|
+
let (group, distance) = match weight {
|
|
1859
|
+
400..=500 => (0, weight - 400),
|
|
1860
|
+
0..=399 => (1, 400 - weight),
|
|
1861
|
+
_ => (2, weight - 500),
|
|
1862
|
+
};
|
|
1863
|
+
(slanted, group, distance)
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
struct FontNames {
|
|
1867
|
+
primary: String,
|
|
1868
|
+
families: Vec<String>,
|
|
1869
|
+
aliases: Vec<String>,
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
fn font_names(face: &SfntFace<'_>, path: &Path) -> FontNames {
|
|
1815
1873
|
use sfnt::name_id;
|
|
1816
1874
|
|
|
1817
1875
|
let mut family = None;
|
|
1876
|
+
let mut legacy_family = None;
|
|
1877
|
+
let mut typographic_family = None;
|
|
1818
1878
|
let mut full = None;
|
|
1819
1879
|
let mut post = None;
|
|
1820
1880
|
|
|
@@ -1825,7 +1885,15 @@ fn font_names(face: &SfntFace<'_>, path: &Path) -> (String, Vec<String>) {
|
|
|
1825
1885
|
match entry.name_id {
|
|
1826
1886
|
name_id::TYPOGRAPHIC_FAMILY | name_id::FAMILY => {
|
|
1827
1887
|
if family.is_none() {
|
|
1828
|
-
family = Some(name);
|
|
1888
|
+
family = Some(name.clone());
|
|
1889
|
+
}
|
|
1890
|
+
let target = if entry.name_id == name_id::TYPOGRAPHIC_FAMILY {
|
|
1891
|
+
&mut typographic_family
|
|
1892
|
+
} else {
|
|
1893
|
+
&mut legacy_family
|
|
1894
|
+
};
|
|
1895
|
+
if target.is_none() {
|
|
1896
|
+
*target = Some(name);
|
|
1829
1897
|
}
|
|
1830
1898
|
}
|
|
1831
1899
|
name_id::FULL_NAME => {
|
|
@@ -1854,13 +1922,20 @@ fn font_names(face: &SfntFace<'_>, path: &Path) -> (String, Vec<String>) {
|
|
|
1854
1922
|
.unwrap_or_else(|| "EmbeddedFont".to_string());
|
|
1855
1923
|
|
|
1856
1924
|
let mut aliases = Vec::new();
|
|
1857
|
-
for candidate in [
|
|
1925
|
+
for candidate in [full, post, stem].into_iter().flatten() {
|
|
1858
1926
|
if candidate != primary {
|
|
1859
1927
|
aliases.push(candidate);
|
|
1860
1928
|
}
|
|
1861
1929
|
}
|
|
1862
1930
|
|
|
1863
|
-
|
|
1931
|
+
FontNames {
|
|
1932
|
+
primary,
|
|
1933
|
+
families: [legacy_family, typographic_family]
|
|
1934
|
+
.into_iter()
|
|
1935
|
+
.flatten()
|
|
1936
|
+
.collect(),
|
|
1937
|
+
aliases,
|
|
1938
|
+
}
|
|
1864
1939
|
}
|
|
1865
1940
|
|
|
1866
1941
|
fn decode_font_name(entry: sfnt::NameRecord<'_>) -> Option<String> {
|
|
@@ -1877,8 +1952,7 @@ pub(crate) fn font_primary_name_from_bytes(
|
|
|
1877
1952
|
let Ok(face) = SfntFace::parse(data, face_index) else {
|
|
1878
1953
|
return None;
|
|
1879
1954
|
};
|
|
1880
|
-
|
|
1881
|
-
Some(primary)
|
|
1955
|
+
Some(font_names(&face, Path::new(source)).primary)
|
|
1882
1956
|
}
|
|
1883
1957
|
|
|
1884
1958
|
#[cfg(test)]
|
|
@@ -1897,6 +1971,141 @@ mod tests {
|
|
|
1897
1971
|
const NOTO_MATH: &[u8] =
|
|
1898
1972
|
include_bytes!("../python/fullbleed_assets/fonts/NotoSansMath-Regular.ttf");
|
|
1899
1973
|
const INTER: &[u8] = include_bytes!("../python/fullbleed_assets/fonts/Inter-Variable.ttf");
|
|
1974
|
+
const DM_REGULAR: &[u8] =
|
|
1975
|
+
include_bytes!("../examples/design_showcase/fonts/DMSerifDisplay-Regular.ttf");
|
|
1976
|
+
const DM_ITALIC: &[u8] =
|
|
1977
|
+
include_bytes!("../examples/design_showcase/fonts/DMSerifDisplay-Italic.ttf");
|
|
1978
|
+
|
|
1979
|
+
fn font_with_field(source: &[u8], tag: &[u8; 4], offset: usize, value: &[u8]) -> Vec<u8> {
|
|
1980
|
+
let mut font = source.to_vec();
|
|
1981
|
+
for index in 0..font_be_u16(source, 4).unwrap() as usize {
|
|
1982
|
+
let record = 12 + index * 16;
|
|
1983
|
+
if &source[record..record + 4] == tag {
|
|
1984
|
+
let start = font_be_u32(source, record + 8).unwrap() as usize + offset;
|
|
1985
|
+
font[start..start + value.len()].copy_from_slice(value);
|
|
1986
|
+
return font;
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
panic!("test font is missing a required table");
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
#[test]
|
|
1993
|
+
fn family_default_prefers_normal_weight_with_css_400_fallback_order() {
|
|
1994
|
+
for (weights, expected) in [([700, 400], 400), ([300, 500], 500), ([600, 300], 300)] {
|
|
1995
|
+
for order in [weights, [weights[1], weights[0]]] {
|
|
1996
|
+
let mut registry = FontRegistry::new();
|
|
1997
|
+
for weight in order {
|
|
1998
|
+
let font = font_with_field(DM_REGULAR, b"OS/2", 4, &u16::to_be_bytes(weight));
|
|
1999
|
+
registry.register_bytes(font, None).unwrap();
|
|
2000
|
+
}
|
|
2001
|
+
assert_eq!(
|
|
2002
|
+
registry
|
|
2003
|
+
.resolve("DM Serif Display")
|
|
2004
|
+
.unwrap()
|
|
2005
|
+
.metrics
|
|
2006
|
+
.weight_class,
|
|
2007
|
+
expected
|
|
2008
|
+
);
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
#[test]
|
|
2014
|
+
fn family_default_honors_slanted_flags_even_with_zero_post_angle() {
|
|
2015
|
+
let no_angle = font_with_field(DM_ITALIC, b"post", 4, &[0; 4]);
|
|
2016
|
+
let os2_only = font_with_field(&no_angle, b"head", 44, &[0; 2]);
|
|
2017
|
+
let head_only = font_with_field(&no_angle, b"OS/2", 62, &[0; 2]);
|
|
2018
|
+
for italic in [os2_only, head_only] {
|
|
2019
|
+
let mut registry = FontRegistry::new();
|
|
2020
|
+
registry.register_bytes(italic, None).unwrap();
|
|
2021
|
+
registry.register_bytes(DM_REGULAR.to_vec(), None).unwrap();
|
|
2022
|
+
assert_eq!(
|
|
2023
|
+
registry.resolve("DM Serif Display").unwrap().name,
|
|
2024
|
+
"DMSerifDisplay-Regular"
|
|
2025
|
+
);
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
#[test]
|
|
2030
|
+
fn family_default_uses_regular_in_both_registration_orders() {
|
|
2031
|
+
for fonts in [[DM_ITALIC, DM_REGULAR], [DM_REGULAR, DM_ITALIC]] {
|
|
2032
|
+
let mut registry = FontRegistry::new();
|
|
2033
|
+
for font in fonts {
|
|
2034
|
+
registry.register_bytes(font.to_vec(), None).unwrap();
|
|
2035
|
+
}
|
|
2036
|
+
assert_eq!(
|
|
2037
|
+
registry.resolve("'DM Serif Display'").unwrap().name,
|
|
2038
|
+
"DMSerifDisplay-Regular"
|
|
2039
|
+
);
|
|
2040
|
+
assert_eq!(
|
|
2041
|
+
registry.resolve("DM Serif Display Italic").unwrap().name,
|
|
2042
|
+
"DMSerifDisplay-Italic"
|
|
2043
|
+
);
|
|
2044
|
+
assert_eq!(
|
|
2045
|
+
registry.resolve("DMSerifDisplay-Regular").unwrap().name,
|
|
2046
|
+
"DMSerifDisplay-Regular"
|
|
2047
|
+
);
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
#[test]
|
|
2052
|
+
fn family_defaults_do_not_replace_explicit_font_aliases() {
|
|
2053
|
+
let mut registry = FontRegistry::new();
|
|
2054
|
+
registry
|
|
2055
|
+
.register_bytes(DM_ITALIC.to_vec(), Some("Brand.ttf"))
|
|
2056
|
+
.unwrap();
|
|
2057
|
+
registry
|
|
2058
|
+
.register_bundle_font_bytes(DM_REGULAR.to_vec(), Some("Brand.ttf"))
|
|
2059
|
+
.unwrap();
|
|
2060
|
+
assert_eq!(
|
|
2061
|
+
registry.resolve("Brand").unwrap().name,
|
|
2062
|
+
"DMSerifDisplay-Italic"
|
|
2063
|
+
);
|
|
2064
|
+
assert_eq!(
|
|
2065
|
+
registry.resolve("DM Serif Display").unwrap().name,
|
|
2066
|
+
"DMSerifDisplay-Regular"
|
|
2067
|
+
);
|
|
2068
|
+
// A supplied alias can deliberately coincide with another font's family.
|
|
2069
|
+
for fonts in [[DM_REGULAR, NOTO], [NOTO, DM_REGULAR]] {
|
|
2070
|
+
let mut registry = FontRegistry::new();
|
|
2071
|
+
for font in fonts {
|
|
2072
|
+
let alias = if font == NOTO {
|
|
2073
|
+
Some("DM Serif Display.ttf")
|
|
2074
|
+
} else {
|
|
2075
|
+
None
|
|
2076
|
+
};
|
|
2077
|
+
registry.register_bytes(font.to_vec(), alias).unwrap();
|
|
2078
|
+
}
|
|
2079
|
+
assert_eq!(
|
|
2080
|
+
registry.resolve("DM Serif Display").unwrap().name,
|
|
2081
|
+
"NotoSans-Regular"
|
|
2082
|
+
);
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
#[test]
|
|
2087
|
+
fn newly_registered_regular_face_uses_its_own_metrics_and_subset_cache() {
|
|
2088
|
+
let mut registry = FontRegistry::new();
|
|
2089
|
+
registry.register_bytes(DM_ITALIC.to_vec(), None).unwrap();
|
|
2090
|
+
let size = Pt::from_f32(20.0);
|
|
2091
|
+
let text = "Typography should follow style.";
|
|
2092
|
+
let italic_width = registry.measure_text_width("DM Serif Display", size, text);
|
|
2093
|
+
let glyphs = BTreeSet::from([0, 1, 2]);
|
|
2094
|
+
let italic_subset = registry
|
|
2095
|
+
.cached_truetype_subset("DM Serif Display", &glyphs)
|
|
2096
|
+
.unwrap();
|
|
2097
|
+
registry.register_bytes(DM_REGULAR.to_vec(), None).unwrap();
|
|
2098
|
+
let regular_width = registry.measure_text_width("DM Serif Display", size, text);
|
|
2099
|
+
assert_ne!(italic_width, regular_width);
|
|
2100
|
+
assert_eq!(
|
|
2101
|
+
regular_width,
|
|
2102
|
+
registry.measure_text_width("DMSerifDisplay-Regular", size, text)
|
|
2103
|
+
);
|
|
2104
|
+
let regular_subset = registry
|
|
2105
|
+
.cached_truetype_subset("DM Serif Display", &glyphs)
|
|
2106
|
+
.unwrap();
|
|
2107
|
+
assert!(!Arc::ptr_eq(&italic_subset, ®ular_subset));
|
|
2108
|
+
}
|
|
1900
2109
|
|
|
1901
2110
|
fn name(platform_id: PlatformId, encoding_id: u16, bytes: &[u8]) -> NameRecord<'_> {
|
|
1902
2111
|
NameRecord {
|