-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: Export metrics for glyph scoring? Or return a list of top-scoring codepoints for each character. #126
Comments
Very interesting research. I used to have a simple scoring debug dump #ifdefed into part of the library; it was nowhere as comprehensive as this, but I also saw connecting glyphs (and "simple" glyphs -- i.e. borders and blocks, but few alphanumerics) doing well. I think we can address statistics in two steps:
How does that sound? |
4200 is a lot :-) Sure, we can chat sometime. Granted I haven't run k-means in a while. Are you on Discord or Matrix? |
Can make a matrix acct. Discord webclient is horribly heavy and slow. A 6x12 font has 2^(6*12) possible shapes, to get everything, which is 4,722,366,482,869,645,213,696 glyphs. 4000 glyphs doesn't cover much of that :) Would be nice to generate an optimal set for the PUA range someday. |
Ummm.... may I ask the concrete command you used for printing images with the BlapinusCMedium-12.pcf.gz font? I'm trying to reproduce the results but I could not get it using these glyphs. |
Added some more glyphs Manually adding more is getting into diminishing returns. While there's plenty of space left in the PUA range, I don't want to take it all up, so as to leave some for people's other uses.
What would be best scoring?I think the best would be a way for chafa to output the score of the selected glyph, the score of the next best glyph (to mesasure how much better a particular glyphs is from the nearest competitor) -- and optimally a b/w bitmap of the template it was trying to match. |
Side note -- @clort81 you've posted a lot of nice art, would you be ok if I featured some of it on the gallery page? If so, how would you like to be credited? I'd love to add a permanent link to your custom font too if it has a home in a permanent location. |
I'd like to have an export of top scored codepoints for each character - not just the best one, but a list of the best scoring glyphs with their codepoint and score number, for each character compared.
Maybe only via the api, or possibly to a file.
I'm just reserving space here others to weigh in with their thoughts on this.
It might be interesting if chafa could report somehow the ideal glyph it's seeking?
To provide something useful, I attach a .png of my current top 256 most popular glyphs, based on a mixed input set of 2300 images.
It was generated by a bash script running chafa:
Piped output to a big ansi file, then
Notice that most of these are 'connecting' which means they connect some region(s) between the 4 cardinal directions.
Remember our input images do not know or care where our chatacter boundaries are. When thinking about matching glyphs, don't assume things will line up to your font.
chafa_blapinus_high_score_list.txt.gz
BlapinusCMedium-12.pcf.gz (this is WIP and mappings WILL change)
Obligatory Blapinus pic, 140 columns, 47 lines.
baroque-fantasy-city.ans.gz
Here's a sample where you can more easily see the importance of joining-glyphs for rendering real pictures. Since we have no ability to shift the input image to automatically best-match available glyphs, we need particularly horizontal connecting glyphs, at various y locations, including diagonal.
I could go on for pages about the subject. But it would be quite helpful to get an imagemap of poor scoring glyphs (with significant deviation) highlighted in some way, in the output image. Or maybe in an interactive editor.
An even more illustrative example:
Resolving text and icons:
The text was updated successfully, but these errors were encountered: