Re: ExtTextOut + Pango question

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

 



On Thu, 20 Apr 2006, nerdy wrote:

> Hello,
>
> I would like to know if there is any provision in pango to
> display a given text within a given clipping rectangle and
> starting at given position. Something like the the ExtTextOut
> function in MFC Windows API.

Pango itself doesn't do cliping, but almost all of its backends
do.  With cairo backend for example, all you need to do is to set
up a cairo clip, move_to, and render the pango layout.

behdad

> BOOL ExtTextOut(
>   HDC hdc,          // handle to DC
>   int X,            // x-coordinate of reference point
>   int Y,            // y-coordinate of reference point
>   UINT fuOptions,   // text-output options
>   CONST RECT* lprc, // optional dimensions
>   LPCTSTR lpString, // string
>   UINT cbCount,     // number of characters in string
>   CONST INT* lpDx   // array of spacing values
> );
>  Thanks,
> nerdy

--behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
	-- Dan Bern, "New American Language"
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux