dfaker / embedding-to-png-script

Converts stable diffusion embeddings to loadable pngs
40 stars 3 forks source link

Unicode token not supported #1

Closed byzod closed 2 years ago

byzod commented 2 years ago

Use 中文字 as token shows □□□ in result image

dfaker commented 2 years ago

Are we using roboto as the default font or something else with Chinese character support? And does the same issue occur in x/y plot?

byzod commented 2 years ago

I didn't catch you, what font are we talking about? I didn't change anything about font, it's sd-webui default I think

What is x/y plot thing you mentioned? If you mean the filename of result image, it works perfectly with unicode characters. If you mean embedding-to-png feature in x/y plot, I don't know how to do that

dfaker commented 2 years ago

There's another script called "x/y plot" it uses the same mechanism for printing text out, just tested it and same boxes, I'll hunt down some Unicode fonts and check compatibility.

byzod commented 2 years ago

OK, it fails too, then this is a webui bug, I'll report there, you can close this

dfaker commented 2 years ago

The only bug on that side was in my code too, closed out now and it should all respect the font you set in settings.