Vice City: Multiplayer

VC:MP Discussion => Bugs and Crashes => Support => Closed Bug Reports => Topic started by: rww on Jun 09, 2016, 06:33 AM

Title: [BUG] GUI.FontSize more than 11 is invisible
Post by: rww on Jun 09, 2016, 06:33 AM
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
Title: Re: [BUG] GUI.FontSize more than 11 is invisible
Post by: EK.IceFlake on Oct 08, 2016, 03:38 PM
BUMP - This is very important :(
Title: Re: [BUG] GUI.FontSize more than 11 is invisible
Post by: vito on Oct 08, 2016, 07:21 PM
try 16 (or 20) and above then it will be visible again.
and bigger size = low fps for poor PC.
Title: Re: [BUG] GUI.FontSize more than 11 is invisible
Post by: EK.IceFlake on Oct 09, 2016, 11:39 AM
Still dont worked :(
Title: Re: [BUG] GUI.FontSize more than 11 is invisible
Post by: Stormeus on May 24, 2017, 01:57 AM
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.
Title: Re: [BUG] GUI.FontSize more than 11 is invisible
Post by: EK.IceFlake on May 24, 2017, 03:55 AM
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?
Title: Re: [BUG] GUI.FontSize more than 11 is invisible
Post by: 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.

(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.
Title: Re: [BUG] GUI.FontSize more than 11 is invisible
Post by: EK.IceFlake on May 24, 2017, 09:42 AM
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.

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