SynthText icon indicating copy to clipboard operation
SynthText copied to clipboard

how to filter this ?

Open argman opened this issue 7 years ago • 4 comments

43_0 some chars is not rightly placed(maybe the reason of font), but i cannot find how to filter this in pygame

argman avatar Jun 08 '17 12:06 argman

I am not sure what is the cause for this. But this is most likely happening inside the render_curved function -- can you please try to reproduce this and check there what might be causing this?

ankush-me avatar Jun 08 '17 14:06 ankush-me

thanks for your reply, check must be added to make sure a char is supported by this font

text_size = font.get_metrics(text)
supported = len(filter(lambda t: t is None, text_size)) == 0
if not supported:
    continue

add before render_curved

argman avatar Jun 09 '17 02:06 argman

@argman : Can you please create a pull request with the patch?

ankush-me avatar Jun 22 '17 14:06 ankush-me

@argman Hey Can you please tell me whether you are able to run or not? We are trying from 2 months we needed some help?

subramanyakrishna avatar Sep 02 '21 11:09 subramanyakrishna