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

Advanced text layout #1295

Open
pointlessone opened this issue Feb 24, 2023 · 2 comments
Open

Advanced text layout #1295

pointlessone opened this issue Feb 24, 2023 · 2 comments

Comments

@pointlessone
Copy link
Member

pointlessone commented Feb 24, 2023

Right now (2.4.0 and all versions before) Prawn implements a very simple text layout. It basically renders individual code points. The code points are used as they are present in the input string. This works kinda OK for Latin-based alphabets and hieroglyphic alphabets that don't use any fancy font techniques but doesn't work at all for more complex scripts.

There are no issues for this but this basic font rendering also prevents use of ligatures or contextual alternatives provided by fonts.


This issue is a canonical explantation for the lack of support of certain scripts. Community is welcome to work on a more advanced text layout.

@jyxjjj
Copy link

jyxjjj commented Feb 28, 2024

I didn't understand, For example, will JetBrians Mono no ligatures? or with ligatures?
There was no ligature settings, should i open a new issue?

@pointlessone
Copy link
Member Author

@jyxjjj I believe the font does have ligatures but Prawn doesn't support ligatures. You can open a new issue but I'm not planning to work on anything like it in the near future. I will gladly accept a contribution though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants