-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Rotating a fontawesome icon #4460
Comments
Short answer: Yes, this can be done, but it requires some extra work. See #1286 and its demo code. Long answer: There have been plans to support rotated text (#705, #3032):
Not sure if this is still going, so for now, rotated text rendering is left entirely to the user. All the examples and demos I'm providing use the ImDrawList API. (If you don't want to use this API for whatever reason you can look at this comment which describes using Rotation in 90-degree increments is usually easier to handle since everything is straight up and down.
(June 16, 2016)
And from #705:
If 90-degree rotation is what you want, you'll find #705 and #3032 helpful. If you want any arbitrary rotation, take a look at #1286, though as mentioned above, non-90-degree angles are harder to manage (its demo code has a very crude clipping calculation system compared to the other examples I provided, along with the following known items):
So to sum up, here's a list of all the demo code I found: |
You can also generate your own font based on FontAwesome (or any other) SVG icons using this little tool: https://github.com/mnesarco/ff-batch |
Thank you both :) |
Hello,
I'm working with fontawesome icon through imgui and was wondering if there is any way to rotate an icon.
Fontawesome themselves have that option but using CSS and I am using imgui and c++.
The text was updated successfully, but these errors were encountered: