Unicode symbols and invalid images
colab code
!mkdir /usr/local/lib/python3.7/dist-packages/trdg/fonts/kzdigits !cp /content/fonts/. /usr/local/lib/python3.7/dist-packages/trdg/fonts/kzdigits/
e.g. Verdana.ttf
generator = GeneratorFromRandom( blur=0, random_blur=False, random_skew=True, language='kzdigits' )
print(generator.generator.fonts) #Verdana.ttf
Sometimes the generator produces a valid image

Sometimes not

The ₸ sign is not displayed.
I'm a bit confused. Are both of those generated with generator.generator.fonts = ['Verdana.ttf']?
I was confused as well. Seems like fonts are ignored. The fonts were supposed to be loaded internally by specifying language='kzdigits'
@avber @Belval
This bug happens because the font doesn't support the character. I added a function to check that and this bug dissappears.