Hi!
I'm trying to draw some text with a cliprect, but it doesn't work like expected. At the moment I use a little workaround, but this will break if the clipping for imlib_text_draw(...) changes sometime. So I ask now... The following example demonstrates the problem (Only the lower half of the text is drawn). Sascha P.S. Please CC your answers to me, because I'm currently not subscribed to this list. #include <X11/Xlib.h> #include <Imlib2.h> int main(int argc, char **argv) { Imlib_Image img; Imlib_Font font; int w = 80, h = 60; int clip_x = 10, clip_y = 10, clip_w = 60, clip_h = 40; img = imlib_create_image(w, h); imlib_context_set_image(img); imlib_context_set_color(255, 255, 255, 255); imlib_image_fill_rectangle(0, 0, w, h); imlib_context_set_cliprect(clip_x, clip_y, clip_w, clip_h); imlib_context_set_color(0, 0, 255, 255); imlib_image_fill_rectangle(0, 0, w, h); imlib_context_set_color(255, 0, 0, 255); imlib_add_path_to_font_path("/usr/X11R6/lib/X11/fonts/TrueType"); font = imlib_load_font("Arial/12"); imlib_context_set_font(font); imlib_text_draw(clip_x, clip_y, "XXXXXXXXXXXXXXX"); imlib_image_set_format("png"); imlib_save_image("cliprect_test.png"); return 0; } ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel