aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/lwjgl/font/Font.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-07 13:50:37 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-07 13:50:37 +0200
commit80e344c9506749e5ed3960a102cee1c1ec32a60f (patch)
tree332938ce953491f770b23faaecb6f472021b304d /src/main/java/cc/polyfrost/oneconfig/lwjgl/font/Font.java
parent28eb14969329b0cbf6e97c9d62917b17078bba0b (diff)
downloadOneConfig-80e344c9506749e5ed3960a102cee1c1ec32a60f.tar.gz
OneConfig-80e344c9506749e5ed3960a102cee1c1ec32a60f.tar.bz2
OneConfig-80e344c9506749e5ed3960a102cee1c1ec32a60f.zip
<@266571433663135744> reducing the amount of brain cells I have one at a time
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/lwjgl/font/Font.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/lwjgl/font/Font.java22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/lwjgl/font/Font.java b/src/main/java/cc/polyfrost/oneconfig/lwjgl/font/Font.java
index 649252b..a369f26 100644
--- a/src/main/java/cc/polyfrost/oneconfig/lwjgl/font/Font.java
+++ b/src/main/java/cc/polyfrost/oneconfig/lwjgl/font/Font.java
@@ -1,5 +1,7 @@
package cc.polyfrost.oneconfig.lwjgl.font;
+import org.lwjgl.nanovg.NanoVG;
+
import java.nio.ByteBuffer;
public class Font {
@@ -7,16 +9,10 @@ public class Font {
private final String name;
private boolean loaded = false;
private ByteBuffer buffer = null;
- private final int unitsPerEm;
- private final int ascender;
- private final int descender;
- public Font(String name, String fileName, int unitsPerEm, int ascender, int descender) {
+ public Font(String name, String fileName) {
this.name = name;
this.fileName = fileName;
- this.unitsPerEm = unitsPerEm;
- this.ascender = ascender;
- this.descender = descender;
}
public String getName() {
@@ -43,15 +39,5 @@ public class Font {
this.buffer = buffer;
}
- public int getUnitsPerEm() {
- return unitsPerEm;
- }
-
- public int getAscender() {
- return ascender;
- }
-
- public int getDescender() {
- return descender;
- }
}
+