[Gtk-sharp-list] Superscript in TextView

Daniel Hughes trampster at gmail.com
Sun Mar 17 05:39:45 UTC 2013


I figured it out, I was reading the GTK 3 docs which tells me the
value of rise is in pixels. However in GTK 2 the value is actually in
Pano Units, 1024 units per pixel. I needed to set rise to a much
larger number before I could see any effect.

I created a blog post about it here:
http://trampster.blogspot.co.nz/2013/03/subscript-and-superscript-in-gtk.html

On Fri, Mar 15, 2013 at 10:47 AM, Daniel Hughes <trampster at gmail.com> wrote:
> I have tried setting RiseSet to true, both before and after setting Rise.
>
> It doesn't help.
>
> On Fri, Mar 15, 2013 at 1:47 AM, Marcelo Belentani de Bianchi
> <marcelobianchi at mail.com> wrote:
>> Hi Daniel,
>>
>> I never try, but did you check the testTag.RiseSet = true ?
>>
>> -mb
>>
>> At 14 Mar 2013 10:58:53 +0000 (UTC) from Daniel Hughes <trampster at gmail.com>:
>> How do I make a bit of text superscript in a GTK TextView.
>>
>> The docs say I should use the Rise property. However it doesn't work
>>
>> var textTag = new TextTag("ss");
>> textTag.SizePoints = 7;
>> textTag.Rise = 5;
>>
>> The text seems complete uneffected by any value I set on the Rise
>> property. The SizePoints is set in this example to prove that the
>> TextTag is getting applied, when I change SizePoints the text size
>> changes. However the Rise property does nothing.
>>
>> What am I doing wrong? How do I make text superscript?
>> _______________________________________________
>> Gtk-sharp-list maillist  -  Gtk-sharp-list@<a target="_blank" href="<a target="_blank" href="lists.ximian.com">lists.ximian.com</a>"><a target="_blank" href="lists.ximian.com">lists.ximian.com</a></a>
>> <a target="_blank" href="<a target="_blank" href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</a>"><a target="_blank" href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</a></a>
>> _______________________________________________
>> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list


More information about the Gtk-sharp-list mailing list