Re: Dimensions in pixels of a draw Area to obtain a plot on a A4 paper

2018-04-21 Thread arkkimede
Ok! I can use the pdf format but the dimensions of the draw area? Il Sab 21 Apr 2018, 07:31 Nicola Fontana ha scritto: > Il Sat, 21 Apr 2018 04:01:21 +0200 arkkimede > scrisse: > > > HI! > > I've realized an App with GTK3 and the library CAIRO to plot results of > > measurements. > > I use the

Re: Dimensions in pixels of a draw Area to obtain a plot on a A4 paper

2018-04-21 Thread Yuri Khan
On Sat, Apr 21, 2018 at 2:19 PM, arkkimede wrote: > Ok! I can use the pdf format but the dimensions of the draw area? The PDF format does not operate in pixels. Instead, it uses points. A point is 1/72 of an inch. An inch is 25.4 millimeters. A standard A4 sheet is 210 mm wide, 297 mm high. Most

line-wrapped and ellipsized in GtkCellRendererText

2018-04-21 Thread Alex
Dear gtk-devs, I am using a GtkCellRendererText for a cell, and I want to have the text in this cell be line-wrapped and ellipsized if it is longer than 3 lines. - It works fine to set the property "wrap-mode" to e.g.  PANGO_WRAP_WORD_CHAR - It works fine to set the property "ellipsize" to e.g.

Re: Dimensions in pixels of a draw Area to obtain a plot on a A4 paper

2018-04-21 Thread Yuri Khan
On Sat, Apr 21, 2018 at 3:17 PM, arkkimede wrote: > Thanks to Nicola and Yuri for the suggestions! > Let me summarize: > > 1. Use pdf instead of png > 2. Define the dimension of pdf in points; > > The last open point is: how to get a "preview" on the screen (this time in > pixels) to decide whethe