[HarfBuzz] Getting character bitmap

Behdad Esfahbod behdad at behdad.org
Fri Jan 13 19:06:41 UTC 2023


Hi Sagar,

HarfBuzz does not have a rasterizer so you can't get that from HarfBuzz.
You have two options:

  1. Use FreeType library,

  2. If you have a graphics library with a rasterizer capable of handling
the moveTo/lineTo/curveTo model, you can use the hb-draw API to draw to it.

Hope that helps,

behdad
http://behdad.org/


On Fri, Jan 13, 2023 at 10:06 AM Sagar Acharya <sagaracharya at tutanota.com>
wrote:

> I have ttf file of the font that I want the bitmap of. In black and white
> mapped to 0 and 1, I want a set of 16x16 set of all characters.
>
> How do I do it?
>
> 1110001111
> 1111101111
> 1110001111
> 1110101111
> 1110001111
>
> Something like above. How do I get it from ttf?
> Thanking you
> Sagar Acharya
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20230113/95fe4cc7/attachment.htm>


More information about the HarfBuzz mailing list