9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-30 12:29:20 +00:00

Font render correction

This commit is contained in:
Daniel Mills
2020-08-31 16:48:12 -04:00
parent 8c0cbfe93a
commit 683becabda
15 changed files with 14414 additions and 14777 deletions

View File

@@ -79,6 +79,7 @@ public class IrisTextPlacement
p.setOnwater(isOnwater());
p.setUnderwater(isUnderwater());
p.setWaterloggable(isWaterloggable());
p.setMode(getMode());
return p;
});

View File

@@ -13,6 +13,7 @@ import com.volmit.iris.util.KList;
import com.volmit.iris.util.MaxNumber;
import com.volmit.iris.util.MinNumber;
import com.volmit.iris.util.RNG;
import com.volmit.iris.util.RegistryListFont;
import com.volmit.iris.util.Required;
import lombok.Data;
@@ -21,6 +22,7 @@ import lombok.Data;
@Data
public class IrisTextRenderer
{
@RegistryListFont
@Required
@DontObfuscate
@Desc("The font to use for this renderer")
@@ -45,7 +47,7 @@ public class IrisTextRenderer
@Required
@DontObfuscate
@Desc("The palette of blocks to use when drawing text")
private IrisMaterialPalette palette = new IrisMaterialPalette();
private IrisMaterialPalette blockPalette = new IrisMaterialPalette();
@DontObfuscate
@Desc("Use a generator to shuffle the surface field of coordinates. Using simplex for example would make the text rendered wavy. Use the multiplier to stretch further.")
@@ -70,7 +72,7 @@ public class IrisTextRenderer
for(String i : text)
{
o.add(g.getGlText().createTextObject(rng, i, (int) getLength(i), getFontData(), getPalette()));
o.add(g.getGlText().createTextObject(rng, i, (int) getLength(i), getFontData(), getBlockPalette()));
}
return o;