Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

Fontbug

Straithy

New member
Joined
Feb 21, 2021
Messages
9
Reaction score
0
Points
0
Hey, i have a weird font bug. If i add a font to my HUD it shows me a "§" and yea xd
pls help
 
how do you add the font?
More Details please
 
For people to be able to help you you need to provide at least the following information:
- Show code
- How you display text
- What result you get
- What result do you expect to get

Otherwise you just can't get any type of help.
 
how do you add the font?
More Details please

FontCode:

public static FontUtils MenuXentura = new FontUtils("Comfortaa", Font.PLAIN, 17);
----
Arraylist Font Added:

if (hud.font.isEnabled())
hud.MenuClient.drawStringWithShadow(getModuleRenderString(module), finishedX - (hud.BORDERMODE.getValue() == HUD.bordermode.RIGHT ? hud.borderWidth.getValue() - 2 : 0), finishedY - 3, color);
else
mc.fontRendererObj.drawStringWithShadow(getModuleRenderString(module), finishedX - (hud.BORDERMODE.getValue() == HUD.bordermode.RIGHT ? hud.borderWidth.getValue() - 2 : 0), finishedY - 1, color);
if (delete()) {
if (hud.MODECOLORS.getValue() == HUD.colors.RANDOM) {
if (hud.modColors.get(module) != null) {
hud.modColors.remove(module);
}
}
Client.INSTANCE.getArraylistManager().getArrayMembers().remove(this);
}
--
Fontbug:

--
Arraylist sort wrong:


Arraylist Sort Code:

if (font.isEnabled())
MenuClient.drawStringWithShadow(watermark, 3f, 3, colorWaterMark);
else
getMc().fontRendererObj.drawStringWithShadow(watermark, 3f, 3, colorWaterMark);
if (!animations.isEnabled()) {
float posY = 3;
final ArrayList<Module> mods = new ArrayList<>(Client.INSTANCE.getModuleManager().getModuleMap().values());
mods.sort(Comparator.comparingDouble(module -> -(font.isEnabled() ? MenuClient.getStringWidth(getModuleRenderString(module)) : MenuClient.getStringWidth(getModuleRenderString(module)))));
for (Module module : mods) {
if (!module.isEnabled() || module.isHidden()) {
if (MODECOLORS.getValue() == HUD.colors.RANDOM) {
if (modColors.get(module) != null) {
modColors.remove(module);
}
}

i guess that was all
 
FontCode:

public static FontUtils MenuXentura = new FontUtils("Comfortaa", Font.PLAIN, 17);
----
Arraylist Font Added:

if (hud.font.isEnabled())
hud.MenuClient.drawStringWithShadow(getModuleRenderString(module), finishedX - (hud.BORDERMODE.getValue() == HUD.bordermode.RIGHT ? hud.borderWidth.getValue() - 2 : 0), finishedY - 3, color);
else
mc.fontRendererObj.drawStringWithShadow(getModuleRenderString(module), finishedX - (hud.BORDERMODE.getValue() == HUD.bordermode.RIGHT ? hud.borderWidth.getValue() - 2 : 0), finishedY - 1, color);
if (delete()) {
if (hud.MODECOLORS.getValue() == HUD.colors.RANDOM) {
if (hud.modColors.get(module) != null) {
hud.modColors.remove(module);
}
}
Client.INSTANCE.getArraylistManager (). GetArrayMembers (). Remove (this);
}
-
Fontbug:

[URL unfurl = "true"] https://prnt.sc/108rvfh [/ URL]
-
Arraylist sort wrong:

[URL unfurl = "true"] https://prnt.sc/108ryym [/ URL]

Arraylist Sort Code:

if (font.isEnabled ())
MenuClient.drawStringWithShadow (watermark, 3f, 3, colorWaterMark);
else
getMc (). fontRendererObj.drawStringWithShadow (watermark, 3f, 3, colorWaterMark);
if (! animations.isEnabled ()) {
float posY = 3;
final ArrayList <Module> mods = new ArrayList <> (Client.INSTANCE.getModuleManager (). getModuleMap (). values ());
mods.sort (Comparator.comparingDouble (module -> - (font.isEnabled ()? MenuClient.getStringWidth (getModuleRenderString (module)): MenuClient.getStringWidth (getModuleRenderString (module)))));
for (Module module: mods) {
if (! module.isEnabled () || module.isHidden ()) {
if (MODECOLORS.getValue () == HUD.colors.RANDOM) {
if (modColors.get (module)! = null) {
modColors.remove (module);
}
}

i guess that was all
[/ QUOTE]
the sort was correct but idk why does the font does that
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top