Skip to content

Fix #29: document and verify custom font support#31

Merged
bitomule merged 1 commit into
mainfrom
feature/fix-custom-font-support
May 9, 2026
Merged

Fix #29: document and verify custom font support#31
bitomule merged 1 commit into
mainfrom
feature/fix-custom-font-support

Conversation

@bitomule
Copy link
Copy Markdown
Owner

@bitomule bitomule commented May 9, 2026

Summary

  • Document how to use custom fonts in standard YAML content screenshots with font_family
  • Resolve relative .ttf, .otf, and .ttc font paths from the YAML config directory before rendering
  • Document HTML template font loading with assets and @font-face
  • Add YAML and HTML tests that copy a real local font file, render/generate screenshots, and verify asset staging

Closes #29

Tests

  • .venv/bin/pytest tests/test_generator.py tests/test_html_renderer.py -k "font or custom_font or template_custom_font or exposes_font" -q
  • .venv/bin/pytest tests/test_generator.py tests/test_html_renderer.py -q
  • .venv/bin/pytest -q

@bitomule bitomule changed the title Document and verify custom font support Fix #29: document and verify custom font support May 9, 2026
@bitomule bitomule self-assigned this May 9, 2026
@bitomule bitomule mentioned this pull request May 9, 2026
@bitomule bitomule merged commit eb853de into main May 9, 2026
7 checks passed
@bitomule bitomule deleted the feature/fix-custom-font-support branch May 9, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: missing custom font?

1 participant