Subpixel typeface.js

Subpixel typeface.js Image
A subpixel version of typeface.js script

This is a subpixel version of typeface.js script, available on the original page:

Please note the limitations:

  • background-color tag is required for the enclosing Div; otherwise the text will have a default white background.
  • This script will revert to non-subpixel version with Internet Explorer. It will work only with browsers that support HTML5 canvas, such as Firefox, Chrome, Opera, Safari.
  • The loading time can be rather slow for large text paragraphs. It is meant for using mostly with captions.

Example code:

<script src="typeface-0.15-subpixel.js"></script>
<script src="optimer_regular.typeface.js"></script>

<div class="typeface-js"
     style="font-family: Optimer;font-size:32px;background-color:#FFFFFF;">
    This is an example of a text rendered with subpixel typeface.js.

Please refer to the original typeface.js web page for downloading/converting fonts.