Joel Bodenmann Posted October 30, 2015 Report Share Posted October 30, 2015 An optional word-wrapping feature has just been added. More information can be found her: http://wiki.ugfx.org/index.php?title=Font_renderingMany thanks to Koryagin Dmitry (dkoryagin over at BitBucket) for this contribution.~ Tectu Link to comment Share on other sites More sharing options...
BAT Posted November 13, 2015 Report Share Posted November 13, 2015 Hello!I think there is a problem in the work function.gdispGDrawStringBox() and gdispGFillStringBox () calculating the vertical position before determining the number of lines used.(y + = (1 + cy - font-> height) / 2)If you get a few lines, then they are shifted downward in relation to the rectangle.Perhaps it is necessary to add the vertical alignment flags. Or something like that. Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted November 14, 2015 Author Report Share Posted November 14, 2015 Hello BAT and welcome to the community!Yep, you are right. That is definitely an issue. We will have a look at this in the following days.Thank you for bringing this to our attention!~ Tectu Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted November 14, 2015 Author Report Share Posted November 14, 2015 The issue has been fixed: https://bitbucket.org/Tectu/ugfx/commit ... b26edbbcd1Thank you for bringing this to our attention!~ Tectu Link to comment Share on other sites More sharing options...
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