Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upProper tab stops for preformatted text #7788
Open
Labels
Comments
mbrubeck
referenced
this issue
in mbrubeck/servo
Sep 29, 2015
Harfbuzz now renders tabs with a "missing character" glyph by default, so we need to filter them out ourselves after computing an advance.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently we advance by eight spaces for each tab character ('\t', U+0009) in preformatted text: https://github.com/servo/servo/blob/master/components/gfx/text/shaping/harfbuzz.rs#L514
Instead, tabs should advance to the next multiple of the tab-stop width:
— http://www.w3.org/TR/CSS2/text.html#white-space-model