DOC: Add thumbnail for font_indexing gallery example#31502
DOC: Add thumbnail for font_indexing gallery example#31502gulatikrishav wants to merge 2 commits intomatplotlib:mainfrom
Conversation
|
Thanak! Can you please paste the proposed image into the PR summary? |
|
|
Done! I've added the thumbnail image to the PR description. |
|
What's that figure supposed to illustrate about font indexing? |
|
The current thumbnail shows a sample of DejaVuSans glyphs (A-C, a-c, 0-2) as a visual stand-in since the example produces no plot output. I can revise it to better illustrate the font indexing concept — perhaps showing glyph indices alongside characters, or a kerning pair visualization. What would you suggest? |
What do you mean by that? |
|
By 'glyph indices alongside characters' I meant something like this: By 'kerning pair visualization' I meant showing two characters like AV with the distance between them labeled, since the example also computes how much the font tightens or loosens spacing between specific letter pairs. Would that work as a thumbnail? |
|
Hey, just wanted to follow up. Let me know what you think! |
|
I'm not exactly following your proposal so can you please make a mock up? |
The font_indexing example was missing a thumbnail in the gallery
because it produces no plot output — it only prints font metrics
to stdout.
A custom SVG thumbnail showing a sample of DejaVuSans glyphs has
been created and added to doc/_static/font_indexing_thumbnail.svg.
The sphinx_gallery_thumbnail_path directive has been added to the
example file to point to this image.
Closes #17479
I used Claude (Anthropic) to help guide me through the contribution
process as a first-time contributor.