aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-07-05 16:16:23 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-07-05 16:16:23 +0200
commit6cafd268d486a930c7e8bec229c30eb6a50fe436 (patch)
tree1dc3467b8ec6057c2c55ed1372d4ded7afc7ac9a /src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java
parentab85af58303956e5f4436911ab9f301a215cfc15 (diff)
downloadOneConfig-6cafd268d486a930c7e8bec229c30eb6a50fe436.tar.gz
OneConfig-6cafd268d486a930c7e8bec229c30eb6a50fe436.tar.bz2
OneConfig-6cafd268d486a930c7e8bec229c30eb6a50fe436.zip
start on new font thingies
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java b/src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java
index 51b42d8..265e2f4 100644
--- a/src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java
+++ b/src/main/java/cc/polyfrost/oneconfig/utils/TextUtils.java
@@ -21,20 +21,6 @@ public final class TextUtils {
* @param font The font to use.
* @return The array of lines.
*/
- public static ArrayList<String> wrapText(long vg, String text, float maxWidth, float fontSize, Fonts font) {
- return wrapText(vg, text, maxWidth, fontSize, font.font);
- }
-
- /**
- * Wraps a string into an array of lines.
- *
- * @param vg The NanoVG context.
- * @param text The text to wrap.
- * @param maxWidth The maximum width of each line.
- * @param fontSize The font size.
- * @param font The font to use.
- * @return The array of lines.
- */
public static ArrayList<String> wrapText(long vg, String text, float maxWidth, float fontSize, Font font) {
ArrayList<String> wrappedText = new ArrayList<>();
text += " ";