Opened 3 years ago
Closed 3 years ago
#17593 closed bug (fixed)
WebPositive soft hyphen draws a little box character
Reported by: | thebuck | Owned by: | madmax |
---|---|---|---|
Priority: | low | Milestone: | R1/beta4 |
Component: | Applications/WebPositive | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
The control character U+00AD SOFT HYPHEN
, written in HTML as ­
, ­
or ­
does work as expected (breaks word when neccessary showing a dash), but always renders a little empty box additionally (without taking up extra space for it).
ThisLongLineIsATestcaseAndContainsSoftHyphensHereAndLaterOnAsWellThatIsHereAndLaterOnAsWellThatIsHereAndLaterOnAsWellThatIsHereAndLaterOnAsWellThatIsHereAndLaterOnAsWellThatIsHere
Attachments (2)
Change History (6)
comment:1 by , 3 years ago
by , 3 years ago
Attachment: | stylededit.png added |
---|
StyledEdit treats it like ASCII-minus on hrev55788, x86_64, QEMU
by , 3 years ago
Attachment: | webpositive.png added |
---|
WebPositive draws an extra box on hrev55788, x86_64, QEMU
comment:2 by , 3 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 3 years ago
Webkit "deletes" the soft hyphen and other characters that become invisible by substituting them with the deleted glyph (0xffff), which is right when processing text at the font glyph level. That is later sent to the app server as a Unicode string, though. I'm not sure 0xffff should be there, but at least it's conformant. That code point is defined in Unicode as a noncharacter, fonts don't have a glyph for that and we use the fallback character to represent it.
https://review.haiku-os.org/c/haiku/+/4984 adds noncharacters to the set of code points that get ignored if a font does not have glyphs for them.
comment:4 by , 3 years ago
Milestone: | Unscheduled → R1/beta4 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Patch merged in hrev55896.
Can you provide a screenshot? and also does this differ from rendering of other native applications?