I don't think you can scale text, but there are two other things that are useful for that:Thorham wrote:How can I set the scale of a custom GUI? By default, elements like fonts always have the same size, regardless of the screen resolution. Any way to change this?
Yeah, I was afraid that might be the case. I wanted to change some part of the existing GUI, but it will never look right in all available resolutions now.minmay wrote:I don't think you can scale text, but there are two other things that are useful for that:
1. GraphicsContext.font() can change the typeface between "tiny", "small", "medium", and "large".
2. GraphicsContext.drawParagraph() can draw a string with a specific width, inserting newlines when necessary, and returns the width and height of the resulting text area.
You can always draw the characters manually with GraphicsContext.drawImage2().Thorham wrote:Yeah, I was afraid that might be the case. I wanted to change some part of the existing GUI, but it will never look right in all available resolutions now.minmay wrote:I don't think you can scale text, but there are two other things that are useful for that:
1. GraphicsContext.font() can change the typeface between "tiny", "small", "medium", and "large".
2. GraphicsContext.drawParagraph() can draw a string with a specific width, inserting newlines when necessary, and returns the width and height of the resulting text area.
Was afraid of that, too Thanks anyway.minmay wrote:You can always draw the characters manually with GraphicsContext.drawImage2().
LOL! Simple enough. 1d4?Drakkan wrote:how many gifts I will find under the xmas tree this year ?