wctltya Posted February 19, 2017 Report Posted February 19, 2017 Is there a way to measure/get the text height? I'm looking for a solution to create/resize a label widget according to the text. I know that it can be calculated (roughly) from it's font size, but in case of word wrapping this will not work.
Joel Bodenmann Posted February 19, 2017 Report Posted February 19, 2017 font_t myFont; ... gdispGetFontMetric(myFont, fontHeight);
wctltya Posted February 19, 2017 Author Report Posted February 19, 2017 Thanks Joel. If it was possible to search into the uGFX doc's (http://api.ugfx.io/), perhaps I wouldn't have asked this question.
Joel Bodenmann Posted February 21, 2017 Report Posted February 21, 2017 Thank you for your feedback. We tested the built-in search feature of doxygen once and it's really bad in our opinion. It doesn't help unless you type in a word that exists exactly like that (eg. the proper function name or similar). Other than that, using Google and restricting the search results to api.ugfx.io is the proper & most helpful way.
inmarket Posted February 21, 2017 Report Posted February 21, 2017 The browser text search capability is also helpful.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now