81 lines
4.7 KiB
TOML
81 lines
4.7 KiB
TOML
|
|
#Text Engine Config
|
|
[text]
|
|
#Allow text layout to be computed from background threads, which may lead to inconsistency issues.
|
|
#Otherwise, block the current thread and wait for main thread.
|
|
allowAsyncLayout = true
|
|
#Control base font size, in GUI scaled pixels. The default and vanilla value is 8.
|
|
#For bitmap fonts, 8 represents a glyph size of 8x or 16x if fixed resolution.
|
|
#This option only applies to TrueType fonts.
|
|
#Range: 6.5 ~ 9.5
|
|
baseFontSize = 8.0
|
|
#Used when defaultFontBehavior is either ONLY_INCLUDE or ONLY_EXCLUDE.
|
|
#This specifies a set of regular expressions to match the glyph provider name.
|
|
#For bitmap providers, this is the texture path without 'textures/'.
|
|
#For TTF providers, this is the TTF file path without 'font/'.
|
|
#For space providers, this is "font_name / minecraft:space",
|
|
#where font_name is font definition path without 'font/'.
|
|
defaultFontRuleSet = ["^minecraft:font\\/(nonlatin_european|accented|ascii|element_ideographs|cjk_punctuations|ellipsis|2em_dash)\\.png$", "^minecraft:include\\/space \\/ minecraft:space$"]
|
|
#Control vertical baseline for vanilla text layout, in GUI scaled pixels.
|
|
#The vanilla default value is 7.
|
|
#Range: 4.0 ~ 10.0
|
|
baselineShift = 7.0
|
|
#Whether to use Modern UI text rendering pipeline in 3D world.
|
|
#Disabling this means that SDF text and rendering optimization are no longer effective.
|
|
#But text rendering can be compatible with OptiFine Shaders and Iris Shaders.
|
|
#This does not affect text rendering in GUI.
|
|
#This option only applies to TrueType fonts.
|
|
useTextShadersInWorld = true
|
|
#Fix resolution level at 2. When the GUI scale increases, the resolution level remains.
|
|
#Then GUI scale should be even numbers (2, 4, 6...), based on Minecraft GUI system.
|
|
#If your fonts are not bitmap fonts, then you should keep this setting false.
|
|
fixedResolution = false
|
|
#When rendering in 2D, this option allows Modern UI to exactly compute font size in device-space from the current coordinate transform matrix.
|
|
#This provides perfect text rendering for scaling-down texts in vanilla, but may increase GPU memory usage.
|
|
#When disabled, Modern UI will use SDF text rendering if appropriate.
|
|
#This option only applies to TrueType fonts.
|
|
computeDeviceFontSize = true
|
|
#The bidirectional text heuristic algorithm.
|
|
#This will affect which BiDi algorithm to use during text layout.
|
|
#Allowed Values: FIRST_STRONG, ANY_RTL, LTR, RTL, LOCALE, FIRST_STRONG_LTR, FIRST_STRONG_RTL
|
|
textDirection = "FIRST_STRONG"
|
|
#Control the text outline offset for vanilla text rendering, in GUI scaled pixels.
|
|
#Range: 0.20000000298023224 ~ 2.0
|
|
outlineOffset = 0.5
|
|
#Set the recycle time of layout cache in seconds, using least recently used algorithm.
|
|
#Range: 2 ~ 15
|
|
cacheLifespan = 6
|
|
#When enabled, Modern UI will compute texel density in device-space to determine whether to use SDF text or bilinear sampling.
|
|
#This feature requires GLSL 400 or has no effect.
|
|
#This generally decreases performance but provides better rendering quality.
|
|
#This option only applies to TrueType fonts. May not be compatible with OptiFine.
|
|
smartSDFShaders = true
|
|
#Whether to use text component object as hash key to lookup in layout cache.
|
|
#If you find that Modern UI text rendering is not compatible with some mods,
|
|
#you can disable this option for compatibility, but this will decrease performance a bit.
|
|
#Modern UI will use another cache strategy if this is disabled.
|
|
useComponentCache = true
|
|
#Allowed Values: AUTO, PHRASE
|
|
lineBreakWordStyle = "AUTO"
|
|
#Allow text renderer to drop shadow, setting to false can improve performance.
|
|
allowShadow = true
|
|
#Control the text shadow offset for vanilla text rendering, in GUI scaled pixels.
|
|
#Range: 0.20000000298023224 ~ 2.0
|
|
shadowOffset = 0.8
|
|
#For "minecraft:default" font, should we keep some glyph providers of them?
|
|
#Ignore All: Only use Modern UI typeface list.
|
|
#Keep ASCII: Include minecraft:font/ascii.png, minecraft:font/accented.png, minecraft:font/nonlatin_european.png
|
|
#Keep Other: Include providers other than ASCII and Unicode font.
|
|
#Keep All: Include all except Unicode font.
|
|
#Only Include: Only include providers that specified by defaultFontRuleSet.
|
|
#Only Exclude: Only exclude providers that specified by defaultFontRuleSet.
|
|
#Allowed Values: IGNORE_ALL, KEEP_ASCII, KEEP_OTHER, KEEP_ALL, ONLY_INCLUDE, ONLY_EXCLUDE
|
|
defaultFontBehavior = "KEEP_ALL"
|
|
#When enabled, Modern UI will use SDF text rendering if appropriate.
|
|
#Otherwise, it uses nearest-neighbor or bilinear sampling based on texel density.
|
|
#This option only applies to TrueType fonts.
|
|
allowSDFTextIn2D = true
|
|
#See CSS line-break property, https://developer.mozilla.org/en-US/docs/Web/CSS/line-break
|
|
#Allowed Values: AUTO, LOOSE, NORMAL, STRICT
|
|
lineBreakStyle = "AUTO"
|
|
|