[haiku-bugs] Re: [Haiku] #16221: Web+: Garbled text on Github

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 08 Jan 2021 16:36:20 -0000

#16221: Web+: Garbled text on Github
---------------------------------------+----------------------------
  Reporter:  bitigchi                  |      Owner:  pulkomandy
      Type:  bug                       |     Status:  reopened
  Priority:  normal                    |  Milestone:  R1/beta3
 Component:  Applications/WebPositive  |    Version:  R1/Development
Resolution:                            |   Keywords:
Blocked By:  16213                     |   Blocking:
  Platform:  All                       |
---------------------------------------+----------------------------
Comment (by madmax):

We are getting it in the string but with the plane nixed: the UTF8 for
 0xf30d instead of the one for 0x1f30d.

 This one looks like a confusion between codepoints and glyph indexes.
 Glyph is unsigned short, I guess it's more for a glyph index inside a font
 and not a codepoint. In that case code like
 
[https://github.com/haiku/webkit/blob/90d5fec996134cc8bda5e73ce770ec0a13d2197b/Source/WebCore/platform/graphics/haiku/GlyphPageTreeNodeHaiku.cpp#L61
 this] or
 
[https://github.com/haiku/webkit/blob/90d5fec996134cc8bda5e73ce770ec0a13d2197b/Source/WebCore/platform/graphics/haiku/FontHaiku.cpp#L98
 this] would be wrong. Maybe widening Glyph and considering it equal to a
 codepoint would solve that or is it too bold a hack and would need the
 review of lots of webkit core code? (That is, if we don't have something
 in BFont or wherever that would give the required data)
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16221#comment:20>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: