Skip to content
New issue

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

tibeten generating(ligature)issue #309

Closed
Paul-bl opened this issue Jul 4, 2023 · 1 comment
Closed

tibeten generating(ligature)issue #309

Paul-bl opened this issue Jul 4, 2023 · 1 comment

Comments

@Paul-bl
Copy link

Paul-bl commented Jul 4, 2023

I noticed that the ligature functionality seems to be not working as expected. Regardless of the font I use, the ligatures do not appear in the generated data.
For example:
imageshould beimagebut the generator output is image, it just simply put character together.

@Paul-bl
Copy link
Author

Paul-bl commented Jul 6, 2023

I have fixed it, I need to add font_size,layout_engine="rapm" argument when loading font, to use ramp I need to install it by pip.
in funtion def _generate_horizontal_text() of computer_text_generator.py image_font = ImageFont.truetype(font=font, size=font_size) ->image_font = ImageFont.truetype(font=font, size=font_size,layout_engine="rapm")

@Paul-bl Paul-bl closed this as completed Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant