-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Labels
Comments
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
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
Thanks for the help. I got it to work.
I use OpenSCAD to design structures for model railroads. I build front end programs which collect the design parameters for walls, roofing, windows and so forth, but was stuck on how to place text on a tool for designing a circus tent (visit http://daackm.github.io to see what I do).
I appreciate the information you shared with me.
Dave Ackmann
From: Tyler Tork ***@***.***
Sent: Friday, May 10, 2024 11:05 AM
To: openscad/openscad
Cc: daackm; Author
Subject: Re: [openscad/openscad] 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 (Issue #5130)
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.
—
Reply to this email directly, view it on GitHub <#5130 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOG4JVDYGVR5PM4RJO6OAULZBTV3RAVCNFSM6AAAAABHQZOZRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUHA3DAOJWGU> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AOG4JVEUYZ6RWCNUSMY6HC3ZBTV3RA5CNFSM6AAAAABHQZOZRCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT5OWQSK.gif> Message ID: ***@***.***>
|
Thanks for the help. I got it to work.
I use OpenSCAD to design structures for model railroads. I build front end programs which collect the design parameters for walls, roofing, windows and so forth, but was stuck on how to place text on a tool for designing a circus tent (visit http://daackm.github.io to see what I do).
I appreciate the information you shared with me.
Dave Ackmann
From: Torsten Paul ***@***.***
Sent: Friday, May 10, 2024 12:42 PM
To: openscad/openscad
Cc: daackm; Author
Subject: Re: [openscad/openscad] Character "degrees" not rendering (Issue #5130)
Yes, try with this: text(str("23", chr(186)), font = "Liberation Sans:style=Regular");
image.png (view on web) <https://github.com/openscad/openscad/assets/1330241/2d4f01cd-b772-4c45-abb6-7fe2092c5b82>
What Operating System are you using?
—
Reply to this email directly, view it on GitHub <#5130 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOG4JVFTF6LXXNJPC5UAFBLZBUBGTAVCNFSM6AAAAABHQZOZRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBVGAYTKNRVG4> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AOG4JVGNHGLZSSRGO7BY5BDZBUBGTA5CNFSM6AAAAABHQZOZRCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT5O76WS.gif> Message ID: ***@***.***>
|
Once the remaining issues are solved, #5114 will provide a way to filter for fonts having specific glyphs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: