-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1804 from Prototik/font
Add true support for unicode fonts
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
patches/minecraft/net/minecraft/client/gui/FontRenderer.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- ../src-base/minecraft/net/minecraft/client/gui/FontRenderer.java | ||
+++ ../src-work/minecraft/net/minecraft/client/gui/FontRenderer.java | ||
@@ -97,6 +97,7 @@ | ||
public void func_110549_a(IResourceManager p_110549_1_) | ||
{ | ||
this.func_111272_d(); | ||
+ this.func_98306_d(); | ||
} | ||
|
||
private void func_111272_d() | ||
@@ -390,7 +391,7 @@ | ||
j = k; | ||
} | ||
|
||
- float f1 = this.field_78293_l ? 0.5F : 1.0F; | ||
+ float f1 = func_78263_a(c0) / 32f; | ||
boolean flag1 = (c0 == 0 || j == -1 || this.field_78293_l) && p_78255_2_; | ||
|
||
if (flag1) | ||
@@ -583,11 +584,6 @@ | ||
int j = this.field_78287_e[p_78263_1_] >>> 4; | ||
int k = this.field_78287_e[p_78263_1_] & 15; | ||
|
||
- if (k > 7) | ||
- { | ||
- k = 15; | ||
- j = 0; | ||
- } | ||
|
||
++k; | ||
return (k - j) / 2 + 1; |