[BUG] GUI.FontSize more than 11 is invisible

Started by rww, Jun 09, 2016, 06:33 AM

Previous topic - Next topic

rww

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
Join to Irrelevant Club Discord: https://discord.gg/MsPPZ5uV4X

EK.IceFlake


vito

try 16 (or 20) and above then it will be visible again.
and bigger size = low fps for poor PC.

EK.IceFlake


Stormeus

Closing as unreproducible on the latest internal build:



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.

EK.IceFlake

Quote from: Stormeus on May 24, 2017, 01:57 AMClosing as unreproducible on the latest internal build:



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?

Stormeus

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.



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.

EK.IceFlake

Quote from: Stormeus on May 24, 2017, 09:34 AM
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.



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));