BenTalagan / glaemscribe

Glaemscribe, the tolkienian languages/writings transcription engine.
https://glaemscrafu.jrrvf.com/english/glaemscribe.html
Other
44 stars 8 forks source link

Unable to use a font in the mode editor #37

Open ganlhi opened 1 day ago

ganlhi commented 1 day ago

When using the Glaemscribe Editor, I'm unable to render the transcribed text in tengwar, although I have Tengwar Annatar GlaemUnicode installed on my system (I use it without problem in Wordpad).

image

BenTalagan commented 1 day ago

Salut! Thanks for the screenshot as it is really helpful. Beware, you're trying to use a GlaemUnicode font with a Dan Smith charset (tengwar_ds_sindarin). They don't have the same mapping, so you should use a compliant charset instead (tengwar_guni_annatar). It should be loaded with the arrow button (purple) in the charset box.

ganlhi commented 1 day ago

Oh OK! There is some progress with the correct charset: image

Forgot to mention, I tried this in Chrome and Arc browsers.

ganlhi commented 1 day ago

Ah ! Actually using Tengwar Sindarin GlaemUnicode works in Chrome (not in Arc), but not Tengwar Annatar GlaemUnicode... Looks like my mode works well with this font anyway.

BenTalagan commented 1 day ago

I'm using Vivaldi which is a Chromium based navigator (on MacOS), so there should be no problem. You can check if the right font is well loaded by using the navigator dev tools and by inspecting the widget that contains the translation :

Capture d’écran 2024-09-17 à 18 37 39

In the Computed > Rendered Fonts panel, you should see something like

Family name: Tengwar Annatar GlaemUnicode
PostScript name: TengwarAnnatarGlaemUnicodeItalic
Font origin: Local file(1 glyph)

If it's the case, then it's not a font problem but something linked to the transcription.

BenTalagan commented 1 day ago

Ah ! Actually using Tengwar Sindarin GlaemUnicode works in Chrome (not in Arc), but not Tengwar Annatar GlaemUnicode... Looks like my mode works well with this font anyway.

Might just be a refresh problem between the widgets of the editor and the navigator ... which is far from being bug proof ^^ Just in case, you may also check in the js console in the browser, as their could be some errors. The fact that it is working with one font and not the other is quite funny indeed.