sudipshil9862 / fonts-compare

fonts rendering and comparing
GNU General Public License v2.0
5 stars 2 forks source link

better not to choose random second font #36

Closed juhp closed 1 year ago

juhp commented 1 year ago

I think it might be nicer/better and more predictable if fonts-compare just chose the second fc-match -s font rather than choosing a random one each time.

sudipshil9862 commented 1 year ago

I think selecting second option from fc-match -s may lead to wrong output $ fc-match -s :lang=bn family style Lohit Bengali:style=Regular Noto Sans:style=Regular Nimbus Sans:style=Regular Lohit Gujarati:style=Regular Lohit Marathi:style=Regular Lohit Tamil:style=Regular Lohit Kannada:style=Regular Lohit Telugu:style=Regular Noto Sans Bengali:style=Regular Droid Arabic Kufi:style=Regular Droid Sans Armenian:style=Regular Droid Sans Ethiopic:style=Regular Droid Sans Fallback:style=Regular Droid Sans Georgian:style=Regular Droid Sans Hebrew:style=Regular Droid Sans Japanese:style=Regular Droid Sans Thai:style=Regular Lohit Odia:style=Regular Lohit Devanagari:style=Regular Noto Sans Gujarati:style=Regular Source Code Pro:style=Regular Noto Sans Devanagari:style=Regular Noto Sans Kannada:style=Regular Noto Sans Tamil:style=Regular Noto Sans Telugu:style=Regular D050000L:style=Regular Cantarell:style=Regular D050000L:style=Regular Standard Symbols PS:style=Regular

we can go with fc-list with second best font $ fc-list :lang=bn family style Noto Sans Bengali SemiCondensed:style=Regular Noto Sans Bengali,Noto Sans Bengali Black:style=Black,Regular Noto Sans Bengali,Noto Sans Bengali Light:style=Light,Regular Noto Sans Bengali,Noto Sans Bengali ExtraBold:style=ExtraBold,Regular Noto Sans Bengali,Noto Sans Bengali ExtraLight:style=ExtraLight,Regular Lohit Assamese:style=Regular Noto Sans Bengali ExtraCondensed:style=Regular Noto Sans Bengali Condensed:style=Regular Noto Sans Bengali:style=Regular Noto Sans Bengali,Noto Sans Bengali Medium:style=Medium,Regular Noto Sans Bengali,Noto Sans Bengali Thin:style=Thin,Regular Noto Sans Bengali:style=Bold Noto Sans Bengali,Noto Sans Bengali SemiBold:style=SemiBold,Regular