Help me, I want to draw true type fonts in a window

Maxim Levitsky maximlevitsky at gmail.com
Wed Jun 25 09:54:59 PDT 2008


Nicolas Mailhot wrote:
> Le mardi 24 juin 2008 à 10:40 -0300, Lucas a écrit :
> 
> Hi Lucas,
> 
>> I´m learning how to program with xft.h lib . I have a problem with my 
>> first code. I need to draw a true type string in a window. Can somebody 
>> help me to fix it?
> 
> Please don't ever try to draw text directly with xft. Use a high-level
> library like pango or cairo instead. Modern unicode text and opentype
> fonts have many complexities (mainly for non-latin scripts, but even
> latin language layouting can involve complex logic) and if you try to
> manage them yourself you'll fail miserably. Even huge projects like
> OpenOffice.org are now trying to dump their own font/text logic to use
> common text libraries.
Small, question just curios, is it possible to draw Unicode strings with Cairo?

As I know gnome uses pango for text layouting (choosing which chars to draw)
Qt has its own text layouting.

Freetype is used to convert glyphs to images.

If I want to draw Unicode text independently of pango, and QT, what options do I have?


> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg




More information about the xorg mailing list