We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
The text was updated successfully, but these errors were encountered:
I'm a bit confused. Are both of those generated with generator.generator.fonts = ['Verdana.ttf']?
generator.generator.fonts = ['Verdana.ttf']
Sorry, something went wrong.
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.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: