[Webkit-unassigned] [Bug 20237] New: Zero width and space characters are displayed incorrectly if not contained in a fallback font.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 30 17:23:55 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=20237

           Summary: Zero width and space characters are displayed
                    incorrectly if not contained in a fallback font.
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: marv.decker at gmail.com


If I have a character like U+200B (non-breaking space) in a document, WebCore
will go ask the font system for it. Some fonts include a "glyph" for this
character with the correct rendering (nothing) and advance (space). I'm pretty
sure the fallback font shipped with Mac/Safari does this and all is well. The
same is true for Arial Unicode MS which ships with MS Office on Windows.

However, if these fonts are unavailable, this glyph will not be found in Arial
or Times and will be mapped to the 0 glyph (since it doesn't exist). This glyph
is a box in most fonts. You want this behavior for most nonexistant glyphs
since if you don't have a Chinese font installed, you want to see boxes rather
than nothing if you visit a Chinese site so you know you're missing something.
For characters that should be treated as space or zero width space, this is not
the case.

The same happens for U+200E (LTR marker) and the like. These should be rendered
as zero width spaces. When we get mapped to the 0 glyph, it turns into a box.

I think these two classes of characters need to be special cased to work
without a pan-Unicode font that includes these characters.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list