[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] FreeType was ported to JavaScript
From: |
Behdad Esfahbod |
Subject: |
Re: [ft-devel] FreeType was ported to JavaScript |
Date: |
Tue, 23 Oct 2012 13:03:31 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 |
Yep. Emscripten is great. Let me also tell you that Emscripten has also been
used to crosscompile both HarfBuzz and GLyphy to JS+WebGL. Interesting times
indeed!
On 12-10-23 12:23 PM, Dave Crossland wrote:
> Hi
>
> Wow: http://www.syntensity.com/static/freetype.html
>
> "TrueType Fonts in JavaScript
>
> This is a demo of FreeType, an open source font engine written in C++,
> compiled to JavaScript using Emscripten. A TrueType font (Liberation
> Sans Bold) is loaded in FreeType and used to render text, all entirely
> in JavaScript.
>
> (Note: The demo is a proof of concept and not optimized for speed. For
> example, the font file is loaded and parsed every time text is
> rendered. Also, the code is a debug build with runtime checks for
> validity.)
>
> Why was this demo done? Just to show it's possible, and definitely not
> to suggest people should do things this way. If you want nice fonts on
> the web, use WOFF."
>
> I found this at https://github.com/kripken/emscripten/wiki
>