Comments (3)
AlignTextToFramePadding()
is just supposed to align unframed texts to framed texts of the same font. Since it is immediate mode, it has no way to know in advance that you will change the font. Other than that, there are multiple potential ways to align different fonts (baseline, top, bottom, vertical center). So if you want to do that, you will need to handle the alignment yourself.
from imgui.
I would strongly advise against trying to do this at the moment (until our layout helpers allows per-element vertical centering). But if you have to do it it may be simpler that you manually adjust the cursor position prior to each call and not use AlignTextToFramePadding()
.
from imgui.
Thanks for the clarification! It makes sense why you can't.
from imgui.
Related Issues (20)
- "Getting Started" guide misleading step HOT 1
- Suggestion: Extend demo with full screen window / docking examples HOT 9
- Set default tab in TabBar HOT 1
- Suggestion: Add a TabItem that behaves like a Button HOT 3
- Gallery: Post your screenshots / code here (PART 20) HOT 3
- feat: API for Styling glyphs HOT 3
- Child Window Drawing Order HOT 19
- Changing the style of checkbox HOT 1
- Build error with recent version of dawn HOT 1
- When using MultiSelect with BoxSelect in a Table with ScrollY and BordersOuter, items sometimes get skipped HOT 4
- HoveredWindow state is no longer cleared after closing a secondary viewport HOT 1
- Incorrect set for FontScale in the SetCurrentWindow HOT 1
- Can't type Korean in the text box. HOT 1
- imgui_widgets.cpp gives 200+ errors HOT 1
- How can I size a table correctly for a given number of rows when using ImGuiTableFlags_ScrollX? HOT 1
- Image Loading Not Working
- Item-tooltip for group will disappear for a short time if the widget inside is clicked HOT 1
- Multi-viewport: window constrained to main viewport moves if it goes outside of viewport HOT 2
- Add a flag to disable Ctrl+Tab navigation HOT 1
- Renderer backend for the new SDL3 GPU API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui.