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

Browsers apply extraneous spaces when letter-spacing #118

Open
r12a opened this issue May 11, 2021 · 1 comment
Open

Browsers apply extraneous spaces when letter-spacing #118

r12a opened this issue May 11, 2021 · 1 comment
Labels
doc:beng doc:deva doc:gujr doc:guru doc:taml gap i:spacing Text spacing l:bn Bengali language & script l:gu Gujurati language & script l:hi Hindi, Devanagari script l:pa Punjabi, Gurmukhi script l:ta Tamil language & script p:advanced s:beng Bengali script s:deva Devanagari script s:gujr Gurajati script s:guru Gurmukhi script s:taml Tamil script

Comments

@r12a
Copy link
Contributor

r12a commented May 11, 2021

This issue applies to all languages that use letter-spacing.

Currently browsers that apply letter-spacing do so by adding a space after every letter in the text that is tracked. This results in a superfluous space at the end of the range, which creates an inappropriate gap before the following text. Letter spacing at the end of a line makes the line look misaligned in justified or right-justified text. It also has implications for text that has other styling, such as an outline or a coloured background, at the same time as being stretched.

For more details, see this GitHub issue, which is being used to track this gap. Please add any discussion there, and not to this issue.

@r12a
Copy link
Contributor Author

r12a commented May 11, 2021

The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the Editor's draft of the document. Proposals for changes or discussion of the content can be made by adding comments below this point.

@r12a r12a added l:hi Hindi, Devanagari script l:bn Bengali language & script l:ta Tamil language & script l:gu Gujurati language & script l:pa Punjabi, Gurmukhi script labels May 1, 2024
@r12a r12a added s:gujr Gurajati script s:beng Bengali script s:deva Devanagari script s:guru Gurmukhi script s:taml Tamil script labels Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc:beng doc:deva doc:gujr doc:guru doc:taml gap i:spacing Text spacing l:bn Bengali language & script l:gu Gujurati language & script l:hi Hindi, Devanagari script l:pa Punjabi, Gurmukhi script l:ta Tamil language & script p:advanced s:beng Bengali script s:deva Devanagari script s:gujr Gurajati script s:guru Gurmukhi script s:taml Tamil script
Projects
None yet
Development

No branches or pull requests

1 participant