You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import fontconfig
# the given char
char = ''
char = char.decode('utf-8')
# the list of font paths
font_conf = fontconfig.FcFont(font_path)
if font_conf.has_char(char):
print('1')
else:
print('0')
I am using my own fonts to generate texts. However, in many cases, small rectangles are drawn to image instead of actual text. How can I avoid that?
sample image
The text was updated successfully, but these errors were encountered: