Superscript text in label

632 views
Skip to first unread message

maspiers

unread,
Mar 30, 2009, 10:33:55 AM3/30/09
to MapInfo-L
I'd like to label some points with text which includes the units -
cubic metres, in this case - using a superscript. Is this possible? I
can't see any reference to this in the helpfile or in previous threads
here, and I can't see a superscript character anywhwere in Charmap.


Gamiz Ribelles, Sergi (Regsa)

unread,
Mar 30, 2009, 10:56:11 AM3/30/09
to mapi...@googlegroups.com

Maspiers,
you can use ANSI codes. I.e. just type Alt+0179 for cubic exponent (³), or Alt+0179 for square exponent (²). ANSI Alt+0179 is the same than ASCII Alt+253. Remember those numbers must be from the numericpad keys.
Look for ANSI codes tables, so you can find the codes for °, ¼,½, ¾ and much more.

hth

Sergi Gàmiz Ribelles (627481954)
REGS DE CATALUNYA S.A. (www.regsa.es)
Unitat de Promoció de Regadius i Concentració Parcel·lària
c/General Brito, 6, 5è
25007 Lleida
tel. 973222838   fax 973222627
s...@regsa.cat <mailto:s...@regsa.cat



-----Mensaje original-----
De: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com]En
nombre de maspiers
Enviado el: lunes, 30 de marzo de 2009 16:34
Para: MapInfo-L
Asunto: [MI-L] Superscript text in label

Lars I. Nielsen (GisPro)

unread,
Mar 30, 2009, 10:53:48 AM3/30/09
to mapi...@googlegroups.com
Superscript 2 - "squared" - is Chr$(178)

Superscript 3 - "cubed" - is Chr$(179)

If you need other superscript formatting, you're out of luck, even if you have a font full of superscripts. MapInfo doesn't allow mixing fonts in a single label, afaik.

Best regards / Med venlig hilsen
Lars I. Nielsen
GIS & DB Integrator
GisPro


maspiers skrev:

Barbara Carroll

unread,
Mar 30, 2009, 11:00:31 AM3/30/09
to mapi...@googlegroups.com

What about subscripts???

 

Barbara

Gentreau

unread,
Mar 30, 2009, 2:06:47 PM3/30/09
to mapi...@googlegroups.com
Try compiling and running this:
 
include "mapbasic.def"
 
Declare sub Main
  
Sub Main
Dim i As integer
 
Print Chr$(12)
 
For i = 32 To 255
 Print "Chr$(" & i & ")=" & Chr$(i)
Next
 
End Sub


From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Barbara Carroll
Sent: Monday, March 30, 2009 3:01 PM

To: mapi...@googlegroups.com
Subject: [MI-L] Re: Superscript text in label

Nebojsa Pesic

unread,
Mar 30, 2009, 2:34:24 PM3/30/09
to Gentreau


I'm using next 'trick' (you have image below):


1) Insert layer you want to label twice (blue filled square as reservoirs for this example)

2) For the first layer I set invisible symbol and Label it with upper left positon (name of the reservoir)

3) For the second layer I set regular symbol and Label it with lower left position (capacity of reservoir and elevation)




-- 

Nebojša Pešic, B.Sc. C.E.

Technical Sector - GIS group

JKP "Naissus", Waterworks and Sewerage Company of Niš

Serbia

mailto:nebojs...@naissus.co.rs

http://www.jkpnaissus.co.rs/

labele.jpg

Nebojsa Pesic

unread,
Mar 30, 2009, 2:42:27 PM3/30/09
to Nebojsa Pesic

Nebojsa (Monday, March 30, 2009, 8:34:24 PM):


>


I'm using next 'trick' (you have image below):


1) Insert layer you want to label twice (blue filled square as reservoirs for this example)

2) For the first layer I set invisible symbol and Label it with upper left positon (name of the reservoir)

3) For the second layer I set regular symbol and Label it with lower left position (capacity of reservoir and elevation)





I forgot to say: for the second layer I'm using smaller font size for labels :)


-- 

Nebojša Pešic, B.Sc. C.E.

Technical Sector - GIS group

JKP "Naissus", Waterworks and Sewerage Company of Niš

Serbia

maspiers

unread,
Mar 31, 2009, 4:10:11 AM3/31/09
to MapInfo-L
Thanks. That's just what I needed.

On Mar 30, 3:53 pm, "Lars I. Nielsen (GisPro)" <L...@gispro.dk> wrote:
> Superscript 2 - "squared" - is Chr$(178)
> Superscript 3 - "cubed" - is Chr$(179)
> If you need other superscript formatting, you're out of luck, even if you have a font full of superscripts. MapInfo doesn't allow mixing fonts in a single label, afaik.Best regards / Med venlig hilsen Lars I. Nielsen GIS & DB Integrator GisPro
Reply all
Reply to author
Forward
0 new messages