examples: language testing example?
hi there, It would be cool to add some code, which allows to check what languages does our OS support, and how does it change after adding some default font. it could be useful to complete a set of default fonts.
This is super useful, super, super... But I'm not sure we could cover that much OS...
@AllenDang Not sure if this is related to this thread, but you can detect system language like this:
package main
import (
"fmt"
"github.com/HACKERALERT/jibber_jabber"
)
func main(){
d,_ := jibber_jabber.DetectIETF()
fmt.Println(d) // en-CA for me (Canadian English)
}
But I'm not sure we could cover that much OS...
I meant to add a code (like a set of labels using as much as possible foreign characters) so we users can see which characters (fonts) are missing in his OS and make it easier to Need your help to add more language support by creating a PR or telling me the OS default font name for your language.
hi there, It would be cool to add some code, which allows to check what languages does our OS support, and how does it change after adding some default font. it could be useful to complete a set of default fonts.
On Windows, might that checking work using OS language packs ? Doesn't installing an additional system locale also add the required fonts ?
Even though that would remove the possibility that the user has a font that supports chinese (or anything else) but doesn't have the language pack installed.
You could also loop over the fonts in the system font store to check if they have glyphs for specific character ranges. https://docs.microsoft.com/en-us/typography/opentype/spec/cmap
https://github.com/ocornut/imgui/issues/2403