Opened 10 years ago

Closed 3 years ago

#11822 closed enhancement (fixed)

Implement B_UNDERSCORE_FACE

Reported by: sambuddhabasu1 Owned by: nobody
Priority: normal Milestone: R1/beta4
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 (7)

comment:1 by anevilyak, 10 years ago

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

comment:2 by jscipione, 10 years ago

Blocking: 8555 added

B_UNDERSCORE_FACE has to be implemented before we can fix #8555

comment:3 by axeld, 8 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:4 by stippi, 6 years 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, 4 years ago

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

comment:6 by KapiX, 4 years 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.

comment:7 by pulkomandy, 3 years ago

Milestone: R1R1/beta4
Resolution: fixed
Status: assignedclosed

Merged in hrev55254.

Note: See TracTickets for help on using tickets.