In the general case, no you can't anti alias a ttf font in advance. A ttf (True Type) font, is defined as a vector outline, so the font cannot contain an anti aliased form.

Anti aliasing happens when the font is rendered to a bitmap output device. The rendering process is specific to the output device, and depends on the resolution and greyscale depth of the output device. Typical anti aliasing is done for low resolution devices with high greyscale depth. (eg computer screens), but not for high resolution devices with low greyscale depth. (eg laser printers).

Having said all that, If you can explain in more detail what you are trying to do then there may be a solution. For example, on some systems, the font libraries will create and store a cache of font glyphs pre-rendered at common resolutions and grey-scale depths. There are probably ways to pre-populate that cache before it is used.


In reply to Re: anti aliasing fonts by chrestomanci
in thread anti aliasing fonts by vishnu.prasad

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.