With GDI you can retrieve the LSB (left side bearing) and width of text by using GetCharABCWidthsW
. However, there is no equivalent for the bottom side bearing that I can find. With DirectWrite it's included with DWRITE_GLYPH_METRICS
but I cannot find the equivalent for GDI. Just wondering why this seems to be missing, and any other way to retrieve it?
As far as why I need the information, I have run into a rare font that has a negative bottom side bearing that needs to be accounted for during the render process. If it's not, then the glyph gets partly cut off.