Skip to content

Problem rendering Unicode characters through Pillow with DejaVuSans #67

@vicariousdrama

Description

@vicariousdrama

See the following log output

Getting Raretoshi information for user RRizzling
Using cached data from 1647482490
Holding 89 is video/mp4 which is unsupported.
Picking another at random. Check count 1.
Holding 83 is image/gif which is unsupported.
Picking another at random. Check count 2.
Picked holding 75 titled Un₿eliever V with ipfshash QmXwt9GFbe6R8R9giVMcqeavAsrUsjnh51V5kHLS5VCPdH

The title of the work is Un₿eliever V with the bitcoin symbol.

However the generated image ends up showing the empty box for unicode characters like this.

The font in use in the vicarioustext file is /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf

May need to use a different font, at least for raretoshi.

Run with the following to reproduce

./raretoshi.py RRizzling 75

Tested with the /usr/share/fonts/truetype/noto/NotoMono-Regular.ttf font but it also fails

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpanel:raretoshiIssues affecting the raretoshi panel

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions