Release v2.2.2: Fix Fedora 41 ReportLab ps2tt('dejavu-bold') font family mapping and add bundled Vera.ttf fallback + PLAN-COMPREHENSIVE-MCP-AND-CHATBOT-REST-API-CAPABILITY-EXPOSURE

This commit is contained in:
Hermes Agent committed 2026-12-01 01:20:52 +00:00
1 parent 2a882853a9
commit b465312e3d
41 files changed
+196 -153

No files matched your search

+6
View File
@@ -587,6 +587,12 @@ def test_ipld_quant_and_mcp_server() -> None:
)
pdf_res = compile_markdown_to_pdf(md_test, pdf_test, title="Dark-Mode Torture Test")
assert pdf_res["dark_mode_style"] == "group_3_stealth_basalt"
from reportlab.lib.fonts import ps2tt
from hyperstitionstud_io.publishing.fonts import _reportlab_vera_fallback
assert ps2tt("DejaVu-Bold") == ("dejavu", 1, 0)
assert ps2tt("DejaVuMono-Bold") == ("dejavumono", 1, 0)
assert _reportlab_vera_fallback("DejaVuSans-Bold.ttf") is not None
r_pdf = PdfReader(str(pdf_test))
pdf_txt = "\n".join(pg.extract_text() or "" for pg in r_pdf.pages)
assert "<br/>" not in pdf_txt and "\\mathbb" not in pdf_txt and "\\Delta" not in pdf_txt