Alaska Software Inc. - Subscript / Superscript
Username: Password:
AuthorTopic: Subscript / Superscript
Scott KriseSubscript / Superscript
on Wed, 15 Jan 2020 13:07:24 -0500
Hello,

What must I do to print super/sub script numbers on a printed page or on 
the screen?

Thanks,

Scott
Scott KriseRe: Subscript / Superscript
on Mon, 20 Jan 2020 10:05:28 -0500
Another piece of information on this issue.

So through my text editor, I have the option to select the super/sub script 
numbers I need to show on my screen / printed reports...so my program looks 
correct, however when I print them or view them on the screen, I see a 
different character where the number should be. I know its something to do 
with the font / ascii set im using...but not sure what I must do to correct.

I believe I used setcodePage(255) to print special characters in the past, 
but that’s not doing the trick this time.


"Scott Krise" wrote in message 
news:27e51eab$6a380dc5$bf1e0@news.alaska-software.com...

Hello,

What must I do to print super/sub script numbers on a printed page or on
the screen?

Thanks,

Scott
Andreas Gehrs-Pahl
Re: Subscript / Superscript
on Sun, 26 Jan 2020 07:33:17 -0500
Scott,

Do you have some code? What CharSet setting do you use. Do you use an ANSI 
or OEM font in your editor? Do you use GUI or text mode apps? Do you print 
with Gra... functions or text mode QOut().

Too many uncertainties and unanswered questions. But the most likely issue 
could be a wrong CharSet, resulting in implicit ANSI/OEM conversions and/or 
the usage of a font that doesn't contain the required characters (glyphs). 

Using XbpFont:CodePage := 255 would select the OEM (DOS) CodePage. As there 
are neither Superscript nor Subscript digits (nor letters) in the DOS (OEM) 
character set (besides the superscript digit 2), this can't possibly work.

So, what characters do you actually use? Take a look at this page, and let 
us know: https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts

And some source code -- and maybe some images that show what you see and 
what you expect/want to see -- would go a long way in helping you here.

Andreas

Andreas Gehrs-Pahl
Absolute Software, LLC

phone: (989) 723-9927
email: Andreas@AbsoluteSoftwareLLC.com
web:   http://www.AbsoluteSoftwareLLC.com
[F]:   https://www.facebook.com/AbsoluteSoftwareLLC