Disable ligatures when fontLigatures is an empty string (#200333)

Disable ligatures when `fontLigatures` is an empty string (#198517)
This commit is contained in:
Alexandru Dima 2023-12-08 12:43:55 +01:00 committed by GitHub
parent 62a957135b
commit 745cb55422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1714,7 +1714,7 @@ export class EditorFontLigatures extends BaseEditorOption<EditorOption.fontLigat
return this.defaultValue;
}
if (typeof input === 'string') {
if (input === 'false') {
if (input === 'false' || input.length === 0) {
return EditorFontLigatures.OFF;
}
if (input === 'true') {