[Gtk-sharp-list] Cairo UTF8 text problem

Artur Silic artursilic at yahoo.com
Mon Apr 6 13:02:35 EDT 2009


Hello,

I am using Mono C# wrapper to Cairo on Win32. When try to plot text, if the
text contains non-ascii chars, the text plotting fails. All other drawing
(and ascii text plotting) works perfectly. Do you have any ideas? Thanks a
lot.


Artur Silic

P.S. Sample code:

Works:
            cr.SelectFontFace("Sans", FontSlant.Normal, FontWeight.Bold);
            double x1 = style.ThresholdizeSize(relativeSizeOnScreen, 10);
            cr.SetFontSize(x1);
            cr.MoveTo(Location);
            cr.ShowText("aaaa");
            cr.Fill();

Does not work:
            cr.SelectFontFace("Sans", FontSlant.Normal, FontWeight.Bold);
            double x1 = style.ThresholdizeSize(relativeSizeOnScreen, 10);
            cr.SetFontSize(x1);
            cr.MoveTo(Location);
            cr.ShowText("ćuprija na đipu");
            cr.Fill();





-- 
View this message in context: http://www.nabble.com/Cairo-UTF8-text-problem-tp22913055p22913055.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.



More information about the Gtk-sharp-list mailing list