<div dir="ltr">Hi Karl Berry. Thank for your response<div><span style="font-size:12.8px">> FreeType doesn't support bitmaps </span><span style="font-size:12.8px">directly, does it?</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Yes FreeType doesn't support bitmaps directly. It takes an outline font and rasterizes it into bitmaps internally (without creating an additional bitmap file) </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">> </span><span style="font-size:12.8px">So the real question is why you want to use mf instead of mftrace?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Actually with using mftrace in my current setup, the process looks complex i.e. input .mf to FreeType, </span></div><div><span style="font-size:12.8px">send .mf to mftrace for converting it into any outline font (Type1 in my case), then passing this newly </span></div><div><span style="font-size:12.8px">created outline to default FreeType driver modules, these driver modules then do default working and </span></div><div><span style="font-size:12.8px">i can display styled fonts etc. Plus the main reason that i want to use mf program is that i want to use it</span></div><div><span style="font-size:12.8px"> as an external program </span><span style="font-size:12.8px">that inputs</span><span style="font-size:12.8px"> a bitmap file to FreeType, then FreeType sends this bitmap file to programs</span></div><div><span style="font-size:12.8px"> like VFlib (that say that they can support bitmap files like .gf and .pk) so, that these processed files can be used for printing and previewing stuff. </span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 16, 2018 at 7:43 AM, Karl Berry <span dir="ltr"><<a href="mailto:karl@freefriends.org" target="_blank">karl@freefriends.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ammar,<br>
<span class=""><br>
    What is the main task of this library if a .gf or .pk file is input?<br>
<br>
</span>I have nothing to do with vflib, but I gather the purpose of vflib<br>
(<a href="https://core.ac.uk/display/21783721" rel="noreferrer" target="_blank">https://core.ac.uk/display/<wbr>21783721</a>) is to rasterize outline formats<br>
into bitmaps. So if it's given a bitmap (gf or pk), it seems there's<br>
nothing much for it to do, essentially just pass back the input.<br>
<br>
This is why mftrace is called in your present setup -- to go the other<br>
direction, from Metafont's bitmap output to outlines, which (as far as I<br>
know) is what freetype needs.  (freetype doesn't support bitmaps<br>
directly, does it?)<br>
<br>
So the real question is why you want to use mf instead of mftrace.<br>
Put that way, it seems an impedance mismatch ... -k<br>
<br>
P.S. The only alternative option I can think of in this area is to use<br>
MetaPost (mpost) instead of mf. But it is far from a drop-in replacement<br>
when it comes to font creation. MetaType1<br>
(<a href="https://ctan.org/pkg/metatype1" rel="noreferrer" target="_blank">https://ctan.org/pkg/<wbr>metatype1</a>), written by the GUST font developers,<br>
attempts to ameliorate this, but it is also far from a simple install<br>
and use ... good luck ...<br>
</blockquote></div><br></div>