26 lines
499 B
Java
26 lines
499 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package com.mojang.blaze3d.font;
|
|
|
|
public interface GlyphInfo {
|
|
public float getAdvance();
|
|
|
|
default public float getAdvance(boolean bold) {
|
|
return this.getAdvance() + (bold ? this.getBoldOffset() : 0.0f);
|
|
}
|
|
|
|
default public float getBoldOffset() {
|
|
return 1.0f;
|
|
}
|
|
|
|
default public float getShadowOffset() {
|
|
return 1.0f;
|
|
}
|
|
|
|
public static GlyphInfo simple(float advance) {
|
|
return () -> advance;
|
|
}
|
|
}
|
|
|