freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

render 3 glyphes into the one buffer


From: Vitaliy Fadeev
Subject: render 3 glyphes into the one buffer
Date: Tue, 03 Aug 2021 15:15:39 +0700
User-agent: Evolution 3.40.0-1

Hi!

Goal: render 3 glyphes into the one buffer ( see attached picture )

Problem: FreeType render each glyph into the separate bitmap. Then need
copy bitmap into the target big bitmap.

Question 1: Possible to render glyphs directly into te one big bitmap ?

Question 2: What is true way for rendering 3 glyphes into the one big
preallocated bitmap ? 

Some like a:

    bigBuffer = malloc( w * h * N )

    FT_....  say FT use bigBuffer

    foreach c in text:
        FT_Load_Glyph
        FT_Render_Glyph
        FT_... update offset position: top, left

Possible ?

Attachment: glyphes-one-pixmap.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]