folkert <[email protected]> wrote:

> I'm trying to draw text to a bitmap. It should fit the height of the
> bitmap and the width can be extended whenever required.
> Getting the width right works fine but the height is a problem: a, b,
> c fit nicely but g, q and _ fall below the bottom.

You have to add the maximum ascender and the maximum descender of
allt the glyphs to get the minimum bitmap height. For example:
<https://github.com/ldo/python_freetype_examples/blob/master/render_text>

_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to