On Thu, Mar 29, 2018 at 12:58:44PM +0200, rastersoft wrote:
> Hi:
> 
> [get the Gtk font type and size]
> 
> >>> No, you seriously don't.
> >>> Unless you want to do something fancy, all you need to do would be (in
> >>>    "draw" handler):
> 
> >> Well, that's the point: I want to do "something fancy". That's the
> >> problem O:)
> 
> > Describe your usecase then - my crystal ball is *still* out of order.
> > Perhaps what you think as "fancy" actually isn't.
> 
> Ops, sorry: I'm reworking a backup utility that I wrote (cronopete), and 
> I added a timeline with the backups (you can see an screenshot at 
> http://www.rastersoft.com/cronopete_screenshot.png ). As you can see, at 
> the left is the timeline and it has the days, months and years. I think 
> those should use the same typography than the standard Gtk widgets, but 
> reducing the size to 2/3. The same for the titles in each "pseudowindow" 
> (they have a visual effect: they go forward and backwards when you move 
> through the timeline).
>
...I must be missing something here...
You can change font size in a layout. The scrolling might be tricky, but
just eyeballing it, sounds like something that can be done by showing
the layout twice at different coords in different clips
(cairo_save/cairo_restore brackets).

So...?

(Only thing I'm not quite sure about right now is if gtk fully initializes
font description in a layout, cause I vaguely recall that it might
not... though maybe that was just wrt. theming API...)

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to