[haiku-bugs] Re: [Haiku] #12511: Text Becomes Invisible in Div With Opacity Set <1

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Mon, 31 Oct 2016 15:43:18 -0000

#12511: Text Becomes Invisible in Div With Opacity Set <1
----------------------------------------+----------------------------------
   Reporter:  achmafooma                |      Owner:  jua
       Type:  bug                       |     Status:  assigned
   Priority:  normal                    |  Milestone:  R1
  Component:  Applications/WebPositive  |    Version:  R1/Development
 Resolution:                            |   Keywords:  opacity div text
 Blocked By:                            |  color
Has a Patch:  0                         |   Blocking:
                                        |   Platform:  All
----------------------------------------+----------------------------------
Changes (by pulkomandy):

 * blocking:  12493 =>


Comment:

 What happens here:

 The opacity triggers the creation of a layer for drawing in WebKit.
 However, we apparently don't support drawing a string "with offsets" as it
 is done by WebKit (AS_DRAW_STRING_WITH_OFFSETS). My guess is because
 support for that is still missing in BPicture.

 A normal DrawString works as expected, but it doesn't exactly match glyph
 metrics from webkit, so the text is not exactly at the right place, which
 creates some other (more subtle) rendering problems. This is why the "with
 offset" version was added in the first place.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12511#comment:5>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: