CEGUI 0.6.2b Quick Font Scaling Question
Posted: Fri Nov 27, 2009 16:38
Hello,
I just started implementing a custom Font wrapper class to my software, but I am having difficulty implementing font scaling (a feature which seems extremely easy to implement in 0.7.x). I have used the PointSize property to set the font's pixel size to 7 so that it will display properly on a 640x480 resolution and could be scaled on larger resolutions. My goal is to be able to have the font display within the same proportions, for example, on a 1024x768 resolution like the rest of the window (proportions being the same relative size to the window). I have set the native resolution after constructing the font object with the method provided, and then attempted to scale it by using the notifyScreenResolution method. Currently, the font gets smaller (logically, of course) on the larger resolutions. As I am quite new to CEGUI, I feel that this is a simple and quick issue. Any feedback would be greatly appreciated.
Best regards,
ReGeX
I just started implementing a custom Font wrapper class to my software, but I am having difficulty implementing font scaling (a feature which seems extremely easy to implement in 0.7.x). I have used the PointSize property to set the font's pixel size to 7 so that it will display properly on a 640x480 resolution and could be scaled on larger resolutions. My goal is to be able to have the font display within the same proportions, for example, on a 1024x768 resolution like the rest of the window (proportions being the same relative size to the window). I have set the native resolution after constructing the font object with the method provided, and then attempted to scale it by using the notifyScreenResolution method. Currently, the font gets smaller (logically, of course) on the larger resolutions. As I am quite new to CEGUI, I feel that this is a simple and quick issue. Any feedback would be greatly appreciated.
Best regards,
ReGeX