-1

I want to use the following unicode characters in python to display the unit W_rms.

However it seems the subscript "r" is different to the others:

W_rms

I used the following codes:

>>> print('w\u1d63\u2098\u209b')
wᵣₘₛ

Any help is appreciated.

I tried to change the order of the codes, did not resolve the issue.

Mark Tolonen
  • 166,664
  • 26
  • 169
  • 251
  • 1
    Just guessing because you didn't write the code in the questions (and I do not open random links from random people). `W_rms` means `W_{r}ms`, so only r is subscript. `_` apply only on next item. Write as `W_{rms}`. And learn how to better ask questions – Giacomo Catenazzi Mar 24 '23 at 11:01

1 Answers1

0

It depends on your font. The differing characters use a fallback font when the one used doesn't support the glyph. In Windows Notepad for example, Cambria font looks perfect, but Consolas looks like your image. According to the Character Map utility, Consolas doesn't define the "ms" characters, but Cambria does.

Consolas: Consolas font image

Cambria: Cambria font image

Mark Tolonen
  • 166,664
  • 26
  • 169
  • 251