sp614x / optifine

1.81k stars 418 forks source link

[1.7.2 ~ 1.12.2] Unicode Font Character width #5140

Open sawalk opened 3 years ago

sawalk commented 3 years ago

Description of Issue

Unlike Vanilla Minecraft, in Minecraft with Optifine, the character width of the Unicode font used when Unicode is forced is slightly different. (https://i.ibb.co/8YqsHhJ/Optfine-Unicode-font-character-width.png)

Steps to Reproduce

After applying Optifine, run the game.

OptiFine Version

ALL Optifine 1.7.2 ~ 1.12.2 (Some old versions are like this too.)

Installation Method

Entered the Optifine site and downloaded it.

Fabric/Forge Version

Forge (or Badlion/Lunar Client)

Other Installed Mods

Forge - CheatBreakerHUD V3 b79_189f (Korean chating mod) BetterFPS-1.3.0 Blur-MC1.8.9-1.0.4-2 MemoryFix-0.3 ctjs-1.3.0-1.8.9 MinecraftCapes+Forge_1.8.9-v10 MouseDelayFix-1.0 OldAnimationsMod-Animations & Cosmetics_2.6.4-mc_Forge1.8.9 Orange's+Simple+Mods-1.2 preview_OptiFine_1.8.9_HD_U_M5_pre2 smoothFont-1.8.9-1.15.2 TcpNoDelayMod-2.0-1.8.9

Badlion Client (1.8.9) - 1.7 animations chat cps enchantglint togglesprint scoreboard

Lunar Client (1.8.9) - 1.7 motion cps toggle sprint/sneak scoreboard

Log Files/Crash Reports

None

F3 Debug Screenshot

https://i.ibb.co/X85mwsn/2020-12-26-15-08-57.png

If you've installed using Forge/Fabric:

Additional Information

This Unicode font character width problem only occurs when using OptiFine, and because of this problem, the item name sometimes goes out of the box when the cursor is over it. (And as a design person, I'm very annoyed.)

Characters in bold also have different widths, but it is difficult to investigate any more, so I will only talk about them in text.

I couldn't speak English very well, so I used a translator. You may not understand because the translation quality is poor.

sawalk commented 3 years ago

2021-08-13_23 27 31

The letter spacing is fixed at 4 pixels, so the letters go over the book background. 글자 간격이 4 픽셀로 고정되어서 글자가 책 배경을 넘어갑니다.

This is a problem with HD fonts. 이는 HD fonts의 문제점입니다.

Fixed width of HD fonts causes this problem. HD fonts의 고정 너비 기능으로 인해 문제가 발생합니다.