[Mono-list] Fontsize in Pango.Layout
Elmar Haneke
elmar at haneke.de
Fri Jun 6 03:47:45 EDT 2008
> You need to call pango_cairo_context_set_resolution to do this (on the Pango context). You can get the resolution easily through the Screen.Resolution property of a Gtk.Widget.
Changing
Pango.Layout layout = Pango.CairoHelper.CreateLayout(cc);
to
Pango.Layout layout=Pango.CairoHelper.CreateLayout(cc);
Pango.CairoHelper.ContextSetResolution(layout.Context,72);
did solve the Problem.
Elmar
More information about the Mono-list
mailing list