public class TrueTypeFontProvider extends java.lang.Object implements FontProvider
FontProvider implementation that uses fonts
with the True Type Font format| Modifier and Type | Class and Description |
|---|---|
static class |
TrueTypeFontProvider.Builder
Mutable and fluent-style builder for
TrueTypeFontProvider
instances |
| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_OVERSAMPLE |
static float |
DEFAULT_SIZE |
| Modifier | Constructor and Description |
|---|---|
protected |
TrueTypeFontProvider(net.kyori.adventure.key.Key file,
Vector2Float shift,
float size,
float oversample,
java.util.List<java.lang.String> skip) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
@NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> |
examinableProperties() |
net.kyori.adventure.key.Key |
file()
Returns the resource location of the TrueType font
file within assets/<namespace>/font
|
int |
hashCode() |
float |
oversample()
Returns the resolution to render at
|
Vector2Float |
shift()
Returns the distance by which the characters of this
provider are shifted.
|
float |
size()
Returns the font size to render at
|
@Unmodifiable java.util.List<java.lang.String> |
skip()
Returns an unmodifiable list of strings
to exclude
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final float DEFAULT_SIZE
public static final float DEFAULT_OVERSAMPLE
protected TrueTypeFontProvider(net.kyori.adventure.key.Key file,
Vector2Float shift,
float size,
float oversample,
java.util.List<java.lang.String> skip)
public net.kyori.adventure.key.Key file()
public Vector2Float shift()
public float size()
public float oversample()
public @Unmodifiable java.util.List<java.lang.String> skip()
@NotNull public @NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
examinableProperties in interface net.kyori.examination.Examinablepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object