Class GuiFontPolicy
java.lang.Object
com.render.api.gui.GuiFontPolicy
Per-view authorization and resource policy for external font sources.
System and remote fonts are denied by default. Enabling remote fonts still requires an explicit host allowlist; enabling HTTP is a separate opt-in from HTTPS.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanstatic GuiFontPolicy.Builderbuilder()booleanpermits(GuiFontSource source) Tests whether this policy authorizes a source.
-
Field Details
-
MAX_SOURCE_BYTES
public static final long MAX_SOURCE_BYTES- See Also:
-
MAX_DISK_CACHE_BYTES
public static final long MAX_DISK_CACHE_BYTES- See Also:
-
RESOURCE_ONLY
-
-
Method Details
-
builder
-
allowsSystemFonts
public boolean allowsSystemFonts() -
allowsRemoteFonts
public boolean allowsRemoteFonts() -
allowsInsecureHttp
public boolean allowsInsecureHttp() -
allowedHosts
-
systemRoots
-
connectTimeout
-
readTimeout
-
permits
Tests whether this policy authorizes a source.- Parameters:
source- font source- Returns:
- authorization result
-