Fix char width for bold text
This commit is contained in:
parent
fa708f4f12
commit
62f5034ca0
@ -418,7 +418,7 @@ public class ChatUtil {
|
||||
public static int charW(char c, boolean console, boolean bold) {
|
||||
if (console)
|
||||
return (c == '§') ? -1 : 1;
|
||||
return CHAR_SIZES.getOrDefault(c, DEFAULT_CHAR_SIZE);
|
||||
return CHAR_SIZES.getOrDefault(c, DEFAULT_CHAR_SIZE) + (bold ? 1 : 0);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user