freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Is there a way to generate character font on-the-fly according


From: Tom Bishop, Wenlin Institute
Subject: Re: [ft] Is there a way to generate character font on-the-fly according to the encode?
Date: Mon, 14 Mar 2011 13:35:33 -0700

On Mar 13, 2011, at 11:13 PM, dennis dang wrote:

> Hi Werner,
> 
> Thank you very much for the information. The CDL model might be what I need.
> 
> Now I have a prototype which takes special description (using existing CJK 
> characters) and produces the composed character as an image, and the new 
> character is sure not encoded. However I have no idea what to do next, to 
> display/edit as usual ways the un-encoded character.

The way we do that with Wenlin CDL is, we have a customized text editor that 
recognizes <cdl>...</cdl> elements, embedded in what may otherwise be plain 
text. Each CDL description is displayed as a single CJK character. The CDL 
interpreter converts each CDL description into outlines for each strokes, which 
can be output as TrueType, Postscript, SVG, etc. For displaying on the screen, 
the interpreter (built into the text editor) produces FreeType outlines, which 
get rasterized by FreeType, then sent to the screen as bitmaps. This can be 
done without assigning a private-use code point to the character. (We do also 
use a lot of private-use code points.)

Converting a CDL description into an outline is complicated, and probably too 
off-topic to discuss on the FreeType list. Thanks for your interest in CDL, and 
thanks to Werner for mentioning it! I'm happy to answer questions about it.

Best wishes,

Tom

> 
> Thanks & Regards,
> dennis
> 
> 
> On Sun, Mar 13, 2011 at 11:57 PM, Werner LEMBERG <address@hidden> wrote:
> 
> > Is there a way to generate character font on-the-fly according to
> > the encode?
> 
> Not with FreeType (our library is primarily meant to rasterize
> existing outlines).  However, have a look at those two links:
> 
>  http://www.wenlin.com/cdl/
>  http://www.tug.org/TUGboat/Articles/tb24-1/yiu.pdf
> 
> There's certainly more in the web.
> 
> 
>    Werner
> 
> _______________________________________________
> Freetype mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/freetype


文林 Wenlin Institute, Inc.        Software for Learning Chinese
E-mail: address@hidden     Web: http://www.wenlin.com
Telephone: 1-877-4-WENLIN (1-877-493-6546)
☯








reply via email to

[Prev in Thread] Current Thread [Next in Thread]