[haiku-bugs] Re: [Haiku] #11822: Implement B_UNDERSCORE_FACE

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 12 Mar 2019 12:29:38 -0000

#11822: Implement B_UNDERSCORE_FACE
----------------------------------+----------------------------
   Reporter:  sambuddhabasu1      |      Owner:  nobody
       Type:  enhancement         |     Status:  assigned
   Priority:  normal              |  Milestone:  R1
  Component:  Kits/Interface Kit  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:  8555
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------

Comment (by stippi):

 The AGG library used as the app_server vector drawing backend has some
 useful code for this. One could load a vector glyph, create a "faux bold"
 version of the glyph using agg::conv_contour, generate the underline
 vector path, and substract the faux-bold-glyph from the underline. Either
 using vector boolean operations, or scanline boolean operations (the later
 is also included in AGG), the re-combine with the original glyph. This
 will give an underline that has gaps for glyphs that extend below the
 baseline, such as 'y' or 'g'.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/11822#comment:4>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: