diff --git a/src/utilities/fontContext.ts b/src/utilities/fontContext.ts index a1561e4338..a150b74c77 100644 --- a/src/utilities/fontContext.ts +++ b/src/utilities/fontContext.ts @@ -26,9 +26,9 @@ export class ProjectFonts { return; } - proj.analysisWritingSystems.reverse().forEach((ws) => { + proj.analysisWritingSystems.forEach((ws) => { const font = ws.font.replaceAll(" ", ""); - if (font) { + if (font && !(ws.bcp47 in this.langMap)) { this.langMap[ws.bcp47] = font; if (ws.rtl) { this.rtlLangs[ws.bcp47] = true;