-
Notifications
You must be signed in to change notification settings - Fork 598
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
Glyph layout - See Issue #442 #455
Conversation
@vk-github18 can you check this wiki and see if this can solve notofonts/noto-fonts#442 |
@codecracker2014 FopGlyphProcessor does glyph substitution, not glyph positioning, so it can not solve notofonts/noto-fonts#442 |
@vk-github18 can you share output with FopGlyphProcessor enabled. |
@codecracker2014 The output would not change with FopGlyphProcessor enabled, because it will not be called. The LayoutProcessor always calls showText(glyphVector), Output of Hindi example with LayoutProcessor enabled: |
Corrected position of next line
Output of example programs: |
@codecracker2014 , @vk-github18 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The results look good. Code is clean!
I need to provide another correction before merging. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
Code should be ok now, the result of the examples is: GlyphLayoutDocumentDinSpec91379.pdf |
It's a nice improvement. I think there still some issues with "apostrophes" or "acutes" like in c', or t'. But other glyphs are looking great. |
Thanks for merging the request. |
For reference I am adding a list of the sequences with codepoint and name. |
Everything fine. I assumed the display of "LATIN CAPITAL LETTER * WITH COMBINING COMMA ABOVE RIGHT" was wrong. But it is exactly as in the reference. Thank you again for this very nice PR 👍 |
@asturio You are right, the display of some letters with "COMBINING COMMA ABOVE RIGHT" is wrong, this is caused by a bug of the Noto Sans fonts, see https://github.com/googlefonts/noto-fonts/issues/1882 |
Pull request for issue #442 Accented Letters composed of Unicode base letter and combining accent are rendered incorrectly.
The position of glyphs is computed with statndard Java AWT methods.
The output should be correct for all characters and sequences of DIN SPEC 91379.
Eventually other scripts are also rendered correctly especially with Java versions >= 1.9 using HarfBuzz for rendering - this is not in the scope of this change.
See the example GlyphLayoutDinSpec91379.java