Opened 6 years ago

Last modified 3 weeks ago

#11822 assigned enhancement

Implement B_UNDERSCORE_FACE

Reported by: sambuddhabasu1 Owned by: nobody
Priority: normal Milestone: R1
Component: Kits/Interface Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking: #8555
Platform: All

Description

B_UNDERSCORE_FACE has to be implemented to be used as a font face.

Change History (6)

comment:1 by anevilyak, 6 years ago

Component: User InterfaceKits/Interface Kit
Owner: changed from stippi to axeld

comment:2 by jscipione, 6 years ago

Blocking: 8555 added

B_UNDERSCORE_FACE has to be implemented before we can fix #8555

comment:3 by axeld, 3 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:4 by stippi, 17 months ago

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'.

comment:5 by KapiX, 5 weeks ago

Owner: changed from nobody to KapiX
Status: assignedin-progress

comment:6 by KapiX, 3 weeks ago

Owner: changed from KapiX to nobody
Status: in-progressassigned

My experiments: https://review.haiku-os.org/c/haiku/+/3041

I'm not interested in looking further into this for now.

Note: See TracTickets for help on using tickets.