[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: render 3 glyphes into the one buffer
From: |
Alexei Podtelezhnikov |
Subject: |
Re: render 3 glyphes into the one buffer |
Date: |
Tue, 3 Aug 2021 08:47:10 -0400 |
> Question 1: Possible to render glyphs directly into te one big bitmap ?
If you are ready to manage the buffer yourselves and carefully track
the pen coordinates for proper layout, you might be able to use
FT_Outline_Render with FT_RASTER_FLAG_DIRECT and some callback
function.
https://www.freetype.org/freetype2/docs/reference/ft2-outline_processing.html#ft_outline_render
This is what a lot of games use when they do not want to rely on a
heavy layout engine like Cairo.
Alexei