Skip to content

Commit

Permalink
Merge pull request #1804 from Prototik/font
Browse files Browse the repository at this point in the history
Add true support for unicode fonts
  • Loading branch information
LexManos committed May 21, 2015
2 parents 61b2929 + 2798fc4 commit 8d7b999
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions patches/minecraft/net/minecraft/client/gui/FontRenderer.java.patch
@@ -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;

0 comments on commit 8d7b999

Please sign in to comment.