cheungj
12 years agoVisitor
Issues with roFont.getOneLineWidth
Has anyone encountered an issue with roFont.getOneLineWidth(string, max size) not returning the right width for a particular string for specific fonts
essentially what I have is an image canvas with a layer that has a piece of text that is only suppose to be on one line. the font is set but the fontsize is dynamic.
so for a particular font size say 50 what happens is when i use the roFont.getOneLineWidth it returns a rectangle width which is smaller then it is to fit the text on one line so it word wraps. has anyone encountered an issue like this with that method before?
essentially what I have is an image canvas with a layer that has a piece of text that is only suppose to be on one line. the font is set but the fontsize is dynamic.
so for a particular font size say 50 what happens is when i use the roFont.getOneLineWidth it returns a rectangle width which is smaller then it is to fit the text on one line so it word wraps. has anyone encountered an issue like this with that method before?