Skip to content

Angstrom symbol #862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alaingdl opened this issue Dec 28, 2020 · 3 comments
Closed

Angstrom symbol #862

alaingdl opened this issue Dec 28, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@alaingdl
Copy link
Contributor

As reported in a bug report on SF (deprecated), the Angstrom symbol is not well displayed in current GDL version
(tuto here [https://idlangstrom.wordpress.com/2011/03/31/angstrom-character-and-other-astronomical-stuff-for-idl/])

angstrom1 = '!6!sA!r!u!9 %!6!n' ;(to create the symbol)
angstrom2 = '!3' + STRING(197B) + '!X' ;(to use octal notation)
XYOUTS, 0.5, 0.5, /Normal, CharSize=2.0, 'Symbol: ' + angstrom1
XYOUTS, 0.5, 0.25, /Normal, CharSize=2.0, 'Symbol: ' + angstrom2
@GillesDuvert GillesDuvert added the bug Something isn't working label Jan 2, 2021
@GillesDuvert
Copy link
Contributor

Hershey tables in GDL are incomplete (help welcome) and indeed, STRING(197B) is not an Angstrom. Related: showfont works, but simplex roman table goes only to 127, not 255. Gothic variants are absent.
On the positive side codes 123..127 are wrong in IDL (they duplicate 91..95) and are CORRECT within GDL.

GillesDuvert added a commit to GillesDuvert/gdl that referenced this issue Mar 14, 2021
@GillesDuvert
Copy link
Contributor

According to the IDL doc !Z(U+00c5) is the thing to do.
Anyway, the future GDL release will handle STRING(197B) gracefully.

@GillesDuvert
Copy link
Contributor

solved in #882

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants