Description
GUI.FontSize more than 11 is invisible (if use AddChild to GUIWindow, max 12).
Reproducible
Always
What you were doing when the bug happened
This works:
Test = GUILabel(VectorScreen(ScreenWidth / 2,ScreenHeight / 1.07),Colour(255,255,187),"example");
Test.AddFlags(GUI_FLAG_VISIBLE);
Test.FontFlags = GUI_FFLAG_OUTLINE | GUI_FFLAG_BOLD;
Test.FontName = "Tahoma";
Test.FontSize = 11;
But this isn't works
Test = GUILabel(VectorScreen(ScreenWidth / 2,ScreenHeight / 1.07),Colour(255,255,187),"example");
Test.AddFlags(GUI_FLAG_VISIBLE);
Test.FontFlags = GUI_FFLAG_OUTLINE | GUI_FFLAG_BOLD;
Test.FontName = "Tahoma";
Test.FontSize = 12;
What you think caused the bug
idk
BUMP - This is very important :(
try 16 (or 20) and above then it will be visible again.
and bigger size = low fps for poor PC.
Still dont worked :(
Closing as unreproducible on the latest internal build:
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FMRc0UFo.png&hash=88c7c0dc5ab06bde00a026b17e3c9aac00f46c35)
Using this client-side code:
size <- GUI.GetScreenSize()
ScreenWidth <- size.X;
ScreenHeight <- size.Y;
Test <- GUILabel(VectorScreen(ScreenWidth / 2,50),Colour(255,255,187),"example");
Test.AddFlags(GUI_FLAG_VISIBLE);
Test.FontFlags = GUI_FFLAG_OUTLINE | GUI_FFLAG_BOLD;
Test.FontName = "Tahoma";
Test.FontSize = 255;
I will note that the upper bound on FontSize is 255 by design, though.
Quote from: Stormeus on May 24, 2017, 01:57 AMClosing as unreproducible on the latest internal build:
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FMRc0UFo.png&hash=88c7c0dc5ab06bde00a026b17e3c9aac00f46c35)
Using this client-side code:
size <- GUI.GetScreenSize()
ScreenWidth <- size.X;
ScreenHeight <- size.Y;
Test <- GUILabel(VectorScreen(ScreenWidth / 2,50),Colour(255,255,187),"example");
Test.AddFlags(GUI_FLAG_VISIBLE);
Test.FontFlags = GUI_FFLAG_OUTLINE | GUI_FFLAG_BOLD;
Test.FontName = "Tahoma";
Test.FontSize = 255;
I will note that the upper bound on FontSize is 255 by design, though.
Font sizes behave differently on different fonts.
Can you try 21 on Segoe UI?
Quote from: EK.IceFlake on May 24, 2017, 03:55 AMFont sizes behave differently on different fonts.
Can you try 21 on Segoe UI?
Calibri, Arial and Georgia all work for me on various sizes.
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FJLmWIdF.png&hash=eb267a70d550b6445a0b166e6ea4d4a2a58f40a3)
There are certain fonts that don't load on any sizes such as "Segoe UI" and "Comic Sans MS," and this seems to be an issue with loading fonts whose names are longer than one word, but that's a separate issue entirely.
Quote from: Stormeus on May 24, 2017, 09:34 AMQuote from: EK.IceFlake on May 24, 2017, 03:55 AMFont sizes behave differently on different fonts.
Can you try 21 on Segoe UI?
Calibri, Arial and Georgia all work for me on various sizes.
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FJLmWIdF.png&hash=eb267a70d550b6445a0b166e6ea4d4a2a58f40a3)
There are certain fonts that don't load on any sizes such as "Segoe UI" and "Comic Sans MS," and this seems to be an issue with loading fonts whose names are longer than one word, but that's a separate issue entirely.
I've successfully loaded Segoe UI on 11 font size, but increasing it doesn't work while other fonts would work at the same size.
this.Title <- GUILabel(VectorScreen(0, 0), Color(255, 255, 255), "Notification center")
.SetTypeface("Segoe UI", 11, Color(255, 255, 255))
.SetParent(this.TitleBar)
.Float(FloatLocation.CenterRight)
.Offset(VectorScreen(32, 0));
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FimPaL1h.png&hash=e9391e300c880da52b34ee3e1c9d53a5ff9a9189)