Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Subscript in Title Bar?

 
Scott Florez
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to use subscript in the title bar/task bar on applications? I am wanting to use H2O (with a subscript 2, as in water), but I can't seem to figure it out. Superscript seems to work for me, though, so I figure subscript can work. Thanks.
 
Kirill Grouchnikov
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you get the superscript to work? If you're using a specific Unicode character for that, you'll just have to find the matching Unicode for the subscript character. Note that this still may fail if this symbol is not found in the matching font that is used to paint the title pane (depends whether you're running under OS-decorated or LAF-decorated mode).
 
Scott Florez
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Kirill Grouchnikov:
How did you get the superscript to work? If you're using a specific Unicode character for that, you'll just have to find the matching Unicode for the subscript character. Note that this still may fail if this symbol is not found in the matching font that is used to paint the title pane (depends whether you're running under OS-decorated or LAF-decorated mode).


I used the alt-key code (hold down alt and punch a 4 digit number) to get the superscript 2. However, the alt-key codes I've found for subscript don't work.
 
Paul Clapham
Sheriff
Pie
Posts: 20769
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then don't use those keystrokes. Use appropriate Unicode escapes. The subscript and superscript digits are in this section of Unicode.
 
Scott Florez
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Clapham:
Then don't use those keystrokes. Use appropriate Unicode escapes. The subscript and superscript digits are in this section of Unicode.


Thanks for the tip. I haven't used unicode before, so here's what I tried:


Is that the right syntax? It's showing a small square on the title bar instead of the subscript 2. Thanks for the help!
 
Paul Clapham
Sheriff
Pie
Posts: 20769
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the right syntax. If you see a square box it means that the font you are using can't render that character.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic