Re: ExtTextOut + Pango question
- From: Behdad Esfahbod <behdad cs toronto edu>
- To: nerdy <nerds_ebook1 yahoo com>
- Cc: gtk-devel-list gnome org, gtk-app-devel-list gnome org, gtk-i18n-list gnome org, gtk-list gnome org
- Subject: Re: ExtTextOut + Pango question
- Date: Thu, 20 Apr 2006 10:56:38 -0400 (EDT)
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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]