[cairo] text to postscript rendering
Jürgen Ladstätter
info at innova-studios.com
Wed Feb 27 05:03:50 PST 2008
Hi there,
ok already got it working - thanks a lot!
A simple question now, i used this code:
cairo_select_font_face (cr, "Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 90.0);
cairo_move_to (cr, 10.0, 135.0);
cairo_text_path(cr, "test text" );
and it works very well, but when i now use special characters like $, € there is no useful output. Anything known about that?
Are there any other functions to select fonts? Because i cant exchange "Sans" with any other font i have in MS Word.
Kind regards
-----Ursprüngliche Nachricht-----
Von: Behdad Esfahbod [mailto:behdad.esfahbod at gmail.com] Im Auftrag von Behdad Esfahbod
Gesendet: Mittwoch, 27. Februar 2008 11:37
An: info at innova-studios.com
Cc: cairo at cairographics.org
Betreff: Re: [cairo] text to postscript rendering
On Wed, 2008-02-27 at 05:28 -0500, Jürgen Ladstätter wrote:
>
> I found out that cairo can render to postscript as a backend and also
> has
> some text functions like cairo_show_text(), now my question is: does
> cairo
> render the output to curvelines (or simple lines), or does it only
> store
> font informations?
Yes, simply do cairo_text_path() followed by cairo_fill() or
cairo_stroke().
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo
mailing list