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

Support Right-To-Left languages #272

Open
Ashraf-Ali-aa opened this issue Jun 5, 2018 · 11 comments
Open

Support Right-To-Left languages #272

Ashraf-Ali-aa opened this issue Jun 5, 2018 · 11 comments

Comments

@Ashraf-Ali-aa
Copy link

Hi is it possible to add text reshaping using https://github.com/mapmeld/js-arabic-reshaper am currently trying to edit Arabic font but when I use the test drive mode the font is not rendered correctly, also have a look at https://fontrapid.com/ their real-time preview is cool especially the live tweaks

p.s Glyphr-Studio is an excellent tool 👍

@mattlag
Copy link
Member

mattlag commented Jun 6, 2018

I will take a look - i'm always up for learning about something new!

@mattlag
Copy link
Member

mattlag commented Jul 31, 2018

Hello!

Unfortunately, this looks like it depends on Ligatures... we use OpenType.js to read/write OTF files, so direct support for contextual alternates and ligatures is not available to us. We can use Ligatures exported to SVG fonts, then convert to OTF... this is not ideal, but this is our current work-around.

I know OpenType.js project is working on contextual alternate support. So this may be fixed in the future. I think the second thing that Glyphr Studio does not currently support is RTL languages.

So, besides the RTL issue, does the current set of Ligatures features in Glyphr Studio support what you are trying to do? Or is there some other advanced contextual alternate functionality that is missing?

@Ashraf-Ali-aa
Copy link
Author

@mattlag thanks for looking into the issue, yes apart from RTL support Glyphr Studio does have all the other features required to create RTL fonts

@mattlag
Copy link
Member

mattlag commented Aug 1, 2018

Great, thank you for your answer. I don't have any experience with RTL languages, so having your input is valuable.

I'm actually going to change the title of this to "Support RTL Languages" as a feature idea so I don't forget the context. I'll have to look into OpenType.js support for RTL, so i'm not sure if I have an idea of when it might possibly be addressed.

@mattlag mattlag changed the title Text reshaping Support Right-To-Left languages Aug 1, 2018
@Jolg42
Copy link

Jolg42 commented Aug 1, 2018

@mattlag Actually ligatures & contextual alternates are implemented, see https://github.com/nodebox/opentype.js/blob/master/test/substitution.js for an example 😉

@mattlag
Copy link
Member

mattlag commented Aug 1, 2018

@Jolg42 thank you! I knew you all were working on it, but I haven't had time to dig in and see what has been completed. This is very exciting! 🎉

While I have you on the line :-) do you know offhand the status of writing GPOS tables for Kerning? I took a quick look, and it seems like only reading tables is available(?)

@Jolg42
Copy link

Jolg42 commented Aug 1, 2018

@mattlag So indeed only GPOS reading of only a few of the formats and reading of kern table is available right now for kerning.

@mattlag
Copy link
Member

mattlag commented Aug 1, 2018

@Jolg42 thank you for confirming. Ligatures is exciting within itself - thank you for the work 😄

@gurtstroubrant
Copy link

I am creating Arabic version of a Latin font for a limit use as a display font. I have found that most of the ligatures work but not all of them. For example these 3 glyphs should join: سيت
I will try and find a workaround
ps I agree with Ashraf this is great software.

@mattlag
Copy link
Member

mattlag commented Sep 25, 2018

@gurtstroubrant if you could email me the project text file, and tell me which ligature is not working, I can look into it... this is a new feature so there may be bugs :-)

[email protected]

@gurtstroubrant
Copy link

Sure. I am going to try and ascertain if there what is not working and will send it to you.

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

No branches or pull requests

4 participants