Closed joazlazer closed 7 years ago
The scale
tag has a limitation when align="center"
or "right"
where if the text spans more than one line, it will not receive the proper alignment and will instead simply be "left"
aligned. However, this appears to be a more general limitation with the text rendering and alignment structure and not with the new feature.
I'm going to start merging these PRs, just be warned that my IntelliJ is configured to reformat using "proper" brackets, so sooner or later there will be a cleanup commit including a project-wide reformat like I do every now and then. (Yeah I'm not a fan of Egyptian brackets. ;P )
The only concern I have about this is that I tried very hard to keep the font sizes as multiples of screen pixels, like the GUI scaling does, to avoid having distorted fonts, and these free-scaled titles are going to look somewhat "warped" due to texcoord rounding, unless you use very high res fonts. But eh, can't do miracles.
scale
attribute to the<p>
tag which accepts a decimal (specifically afloat
)<p scale="2">This text is twice as large</p>
GlStateManager.scale(scale, scale, 1f);
to scale the text rendering<title>
tag to add havescale="1.5"
and removeitalics="true"
float scale
parameter to each of the text-rendering methods that allow scaled text