Skip to content
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

Character "degrees" not rendering #5130

Closed
daackm opened this issue May 10, 2024 · 5 comments
Closed

Character "degrees" not rendering #5130

daackm opened this issue May 10, 2024 · 5 comments

Comments

@daackm
Copy link

daackm commented May 10, 2024

Is there a way to get a degree symbol to display in a text function? I have tried creating a string of chr(186) and printing that , but it gives something like a square. Thanks

@MethylBromide
Copy link

I believe you are getting the right character code, but using a font (maybe the default font?) that doesn't contain an image for that character.

@t-paul t-paul changed the title is there a way to get a degree symbol to display in a text function? I have tried creating a string of chr(186) and printing that , but it gives something like a square. Thanks Character "degrees" not rendering May 10, 2024
@t-paul
Copy link
Member

t-paul commented May 10, 2024

Yes, try with this: text(str("23", chr(186)), font = "Liberation Sans:style=Regular");

What Operating System are you using?

@daackm
Copy link
Author

daackm commented May 10, 2024 via email

@daackm
Copy link
Author

daackm commented May 10, 2024 via email

@t-paul
Copy link
Member

t-paul commented May 11, 2024

Once the remaining issues are solved, #5114 will provide a way to filter for fonts having specific glyphs.

@t-paul t-paul closed this as completed May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants