On Sat, Feb 13, 2010 at 5:11 PM, Matt Gushee <[email protected]> wrote:

> I am looking for examples of how to use the freetype vocabulary, but I
> can't seem to find anything relevant. In fact, I grepped the entire
> Factor source tree for 'FT_Init_FreeType', but didn't find it anywhere
> except for its definition in freetype.factor. I also grepped for 'face'
> in a couple of likely locations (ui and opengl subtrees) but didn't find
> that string used anywhere in reference to fonts, so I am very puzzled.
> Can anyone suggest documents or code examples that I can look at?

The ui.text library probably does what you want. It uses the native
text APIs on every platform (Core Text on OS X, Uniscribe on Windows,
and Pango on X11), so Freetype is not necessary. ui.text is very easy
to use:

USING: fonts ui.text images.viewer ;
<font>
    "Helvetica" >>name
    60 >>size
    t >>italic?
"Hello world" string>image
drop image.

-Joe

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to