fullbleed 2.5.7__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.7 → fullbleed-2.5.8}/Cargo.lock +1 -1
- {fullbleed-2.5.7 → fullbleed-2.5.8}/Cargo.toml +1 -1
- {fullbleed-2.5.7 → fullbleed-2.5.8}/PKG-INFO +5 -2
- {fullbleed-2.5.7 → fullbleed-2.5.8}/README.md +4 -1
- {fullbleed-2.5.7 → fullbleed-2.5.8}/fullbleed-agent-contract.json +1 -1
- {fullbleed-2.5.7 → fullbleed-2.5.8}/llms.txt +1 -1
- {fullbleed-2.5.7 → fullbleed-2.5.8}/pyproject.toml +1 -1
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/font.rs +238 -29
- {fullbleed-2.5.7 → fullbleed-2.5.8}/COPYRIGHT +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/FONT_LICENSE_AUDIT.json +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/FONT_LICENSE_AUDIT.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/LICENSE +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/LICENSING.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/THIRD_PARTY_LICENSES.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/build.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/build_backend/fullbleed_build_backend.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/Cargo.lock +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/Cargo.toml +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/LICENSE +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/README.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/specs/fullbleed.audit_registry.v1.yaml +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/specs/section508_html_registry.v1.yaml +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/specs/wcag20aa_registry.v1.yaml +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/src/json.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/src/lib.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/src/sha256.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/docs/specs/fullbleed.a11y.verify.v1.schema.json +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/docs/specs/fullbleed.audit_registry.v1.yaml +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/docs/specs/fullbleed.pmr.v1.schema.json +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/docs/specs/section508_html_registry.v1.yaml +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/docs/specs/wcag20aa_registry.v1.yaml +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/__init__.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/__main__.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/_abi.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/accessibility/__init__.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/accessibility/engine.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/accessibility/runtime.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/accessibility/types.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/audit_prototype.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/audit_section508.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/audit_wcag.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/__init__.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/accessibility.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/cav/__init__.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/cav/_core.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/cav/agency_letter.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/cav/court_motion_form.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/cav/declaration_form.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/cav/instruction_sheet.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/cav/investment_portfolio_report.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/cav/marriage_record.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/cav/profiles.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/cav/recorded_plat.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/cav/redaction_request_form.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/cav/warranty_deed.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/core.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/primitives.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed/ui/style.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_assets/__init__.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_assets/bootstrap.min.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_assets/fonts/Inter-Variable.ttf +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_assets/fonts/NotoSans-Regular.ttf +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_assets/fonts/NotoSansMath-Regular.ttf +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_assets/fonts/NotoSansSymbols-Regular.ttf +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_assets/fonts/NotoSansSymbols2-Regular.ttf +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_assets/icons/bootstrap-icons.svg +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/__init__.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/__main__.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/agent.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/agent_acceptance.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/agent_contract.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/assets.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/cache.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/cli.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/finalize.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/mcp.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/__init__.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/.gitignore +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/AGENTS.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/COMPLIANCE.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/SCAFFOLDING.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/__init__.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/body.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/fb_ui.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/footer.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/header.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/primitives.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/styles/body.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/styles/footer.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/styles/header.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/components/styles/primitives.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/report.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/styles/report.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/init/styles/tokens.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/accessible/README.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/accessible/output/.gitignore +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/accessible/output/.gitkeep +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/accessible/report.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/accessible/styles/report.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/accessible/vendor/fonts/Inter-Variable.ttf +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/invoice/output/.gitignore +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/invoice/output/.gitkeep +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/invoice/report.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/invoice/templates/invoice.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/invoice/templates/invoice.html +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/COMPLIANCE.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/README.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/SCAFFOLDING.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/assets/brand-mark.svg +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/assets/reference-pattern.svg +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/__init__.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/appendix.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/architecture.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/cover.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/data_pages.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/fb_ui.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/primitives.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/appendix.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/architecture.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/cover.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/data.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/primitives.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/visuals.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/components/visuals.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/data/reference.json +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/output/.gitignore +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/report.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/styles/report.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/reference/styles/tokens.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/statement/output/.gitignore +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/statement/output/.gitkeep +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/statement/report.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/statement/templates/statement.css +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/scaffold_templates/new/statement/templates/statement.html +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_cli/watch.py +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/skills/fullbleed/SKILL.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/skills/fullbleed/agents/openai.yaml +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/skills/fullbleed/references/compliance.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/skills/fullbleed/references/selection.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/skills/fullbleed/references/workflows.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/assets.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/authoring.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/base14_metrics.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/base14_metrics_data.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/base64.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/canvas.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/chart.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/chart_document.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/css_native.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/css_queries.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/debug.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/doc_context.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/doc_template.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/document_metadata.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/error.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/finalize.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/flate_native.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/flowable.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/font_subset/cmap.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/font_subset.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/frame.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/glyph_report.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/html.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/html_dom.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/html_entities.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/html_entities_0.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/html_entities_1.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/html_entities_2.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/html_entities_3.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/html_entities_4.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/html_entities_5.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/icc.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/image_native.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/jit.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/jpeg_native.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/lib.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/math.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/metrics.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/native_shape.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/page_data.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/page_template.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/parallel.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf_encodings.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf_identity.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf_native.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf_print_contract.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf_profile.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf_raster/forms.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf_raster/shading/radial_bands.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf_raster/shading/tests.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf_raster/shading.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf_raster.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf_table.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf_vt.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdf_vt_inspect.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/pdfinspect.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/perf.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/plan.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/python/abi_exports.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/python/pdf_vt.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/python.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/python_abi.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/raster.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/raster_native.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/sfnt.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/sfnt_cff.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/sfnt_outline.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/spill.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/style.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/svg.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/table_header_tests.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/table_semantics.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/text_shape.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/types.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/unicode_data.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/src/xml.rs +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/Courier-Bold.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/Courier-BoldOblique.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/Courier-Oblique.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/Courier.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/Helvetica-Bold.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/Helvetica-BoldOblique.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/Helvetica-Oblique.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/Helvetica.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/MustRead.html +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/Symbol.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/Times-Bold.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/Times-BoldItalic.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/Times-Italic.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/Times-Roman.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/ZapfDingbats.afm +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/agl-LICENSE.md +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/agl-glyphlist.txt +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/agl-zapfdingbats.txt +0 -0
- {fullbleed-2.5.7 → fullbleed-2.5.8}/tools/data/base14/sources.json +0 -0
- {fullbleed-2.5.7 → 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
|
|
@@ -312,7 +312,7 @@ python -m pip install fullbleed
|
|
|
312
312
|
From a local wheel:
|
|
313
313
|
|
|
314
314
|
```bash
|
|
315
|
-
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
|
|
316
316
|
```
|
|
317
317
|
|
|
318
318
|
From a source checkout with Rust installed, no Python build package is needed:
|
|
@@ -1136,6 +1136,9 @@ PdfEngine(
|
|
|
1136
1136
|
)
|
|
1137
1137
|
```
|
|
1138
1138
|
|
|
1139
|
+
For regular/italic family selection and exact face mappings, see
|
|
1140
|
+
[Registering fonts](docs/font-registration.md).
|
|
1141
|
+
|
|
1139
1142
|
Module exports:
|
|
1140
1143
|
|
|
1141
1144
|
- `PdfEngine`
|
|
@@ -269,7 +269,7 @@ python -m pip install fullbleed
|
|
|
269
269
|
From a local wheel:
|
|
270
270
|
|
|
271
271
|
```bash
|
|
272
|
-
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
|
|
273
273
|
```
|
|
274
274
|
|
|
275
275
|
From a source checkout with Rust installed, no Python build package is needed:
|
|
@@ -1093,6 +1093,9 @@ PdfEngine(
|
|
|
1093
1093
|
)
|
|
1094
1094
|
```
|
|
1095
1095
|
|
|
1096
|
+
For regular/italic family selection and exact face mappings, see
|
|
1097
|
+
[Registering fonts](docs/font-registration.md).
|
|
1098
|
+
|
|
1096
1099
|
Module exports:
|
|
1097
1100
|
|
|
1098
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 {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fullbleed-2.5.7 → fullbleed-2.5.8}/crates/fullbleed_audit_contract/specs/wcag20aa_registry.v1.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_assets/fonts/NotoSansSymbols-Regular.ttf
RENAMED
|
File without changes
|
{fullbleed-2.5.7 → fullbleed-2.5.8}/python/fullbleed_assets/fonts/NotoSansSymbols2-Regular.ttf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|