<div dir="ltr">Hi Sagar,<div><br></div><div>HarfBuzz does not have a rasterizer so you can't get that from HarfBuzz. You have two options:</div><div><br></div><div> 1. Use FreeType library,</div><div><br></div><div> 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.</div><div><br></div><div>Hope that helps,</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 13, 2023 at 10:06 AM Sagar Acharya <<a href="mailto:sagaracharya@tutanota.com">sagaracharya@tutanota.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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.<br>
<br>
How do I do it?<br>
<br>
1110001111<br>
1111101111<br>
1110001111<br>
1110101111<br>
1110001111<br>
<br>
Something like above. How do I get it from ttf?<br>
Thanking you<br>
Sagar Acharya<br>
</blockquote></div>