Skip to content

Instantly share code, notes, and snippets.

@trampster
Created March 17, 2013 05:17
Show Gist options
  • Save trampster/5180244 to your computer and use it in GitHub Desktop.
Save trampster/5180244 to your computer and use it in GitHub Desktop.
Superscript in GTK#
var superscriptTag = new TextTag("SuperScript");
//make the font smaller
superscriptTag.SizePoints = (baseFontSize/2);
//turn on the Rise settings
superscriptTag.RiseSet = true;
//move up
superscriptTag.Rise = (baseFontSize * 3 / 4) * 1024;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment