Skip to content

Commit 06ca8c2

Browse files
authored
impr(ligatures): always enable in Zen and Custom modes for always correct script rendering (@byseif21) (monkeytypegame#6694)
### Description fixes broken ligature rendering in zen mode by always enabling ligatures, ensuring that scripts like Arabic etc .. display correctly and words connect as expected in any scenario or direction!.
1 parent de25417 commit 06ca8c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/ts/test/test-ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ export function setRightToLeft(isEnabled: boolean): void {
11861186
}
11871187

11881188
export function setLigatures(isEnabled: boolean): void {
1189-
if (isEnabled) {
1189+
if (isEnabled || Config.mode === "custom" || Config.mode === "zen") {
11901190
$("#words").addClass("withLigatures");
11911191
$("#resultWordsHistory .words").addClass("withLigatures");
11921192
$("#resultReplay .words").addClass("withLigatures");

0 commit comments

Comments
 (0)