Re: [Tuxpaint-devel] Font scoring method
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Albert C. <aca...@gm...> - 2022-12-17 19:25:04
|
> I've looked into the font scoring method in 'dirwalk.c' and 'fonts.c'. > > The function 'charset_works()' scores up the given font if ALL > characters passed to it are correctely rendered. > > However, it seems to have nothing to do with checking if the font > renders given characters distinctly. I was not able to understand what > qsort() in charset_works() do. > > > I confirmed that adding Japanese characters to the translations for the > strings used for scoring works to place the font supporting Japanese > characters on top. > > The result is good but I am not so confident it is a correct way as > originaly intended in font scoring method. That was the original intent when I wrote the code. You should not need to add any code for Japanese. Simply adjust the translation to contain a few Japanese characters, particularly ones that may be rendered indistinctly, and the scoring should work. |