Qalculate / libqalculate

Qalculate! library and CLI
https://qalculate.github.io/
GNU General Public License v2.0
1.78k stars 144 forks source link

Only powers from 2 to 9 are shown in superscript #682

Open lkintact opened 1 month ago

lkintact commented 1 month ago
  1. Run qalc
  2. Execute 2^9. qalc displays 2⁹ = 512, as expected.
  3. Execute 2^10. qalc displays 2^10 = 1024, while perhaps it should display 2¹⁰ = 1024
  4. Execute 2^-9. qalc displays 2^−9 = 1/512 = 0.001953125, while perhaps it should display 2⁻⁹ = 1/512 = 0.001953125.

OS: Arch Linux Terminal: UXTerm Qalculate! 5.2.0.

hanna-kn commented 1 month ago

Multiple consecutive Unicode exponents generally looks bad with monospaced fonts. Apart from the wide spacing, many common monospaced fonts does not include superscript minus and zero, causing vertical misalignment and inconsistent appearance. Superscript minus might be misaligned even when displayed using the same font.