ChatUI icon indicating copy to clipboard operation
ChatUI copied to clipboard

[Optifine] Problem with font

Open carelionCanem opened this issue 5 years ago • 1 comments

Optifine calculates width of chars with floating point values and because of that users which installed optifine and have alternative font textures have gui incorrectly displayed. Can you add option in settings to select alternative way of width calculation(Optifine way)?

carelionCanem avatar Apr 24 '19 17:04 carelionCanem

Is this only an issue when you override the defaults with optifine installed? According to the font documentation (https://github.com/sp614x/optifine/blob/master/OptiFineDoc/doc/hd_fonts.txt) optifine will look for an ascii.png file. This is no different from when a resource pack is used in vanilla, I have addressed this in the documentation: https://ore.spongepowered.org/simon816/Chat-UI-Library#font-data

Optifine also has overrides in ascii.properties, this could be added, mind you it'd be tedious to keep the properties synchronised between a player's overrides and Chat UI's counterpart config.

simon816 avatar Apr 27 '19 00:04 simon816