dscorbett / duployan-font

A Duployan Unicode font
Other
14 stars 2 forks source link

Crashes Word and WordPad when trying to set the font #4

Open DownLoude opened 2 years ago

DownLoude commented 2 years ago

I tried to use the font to write π›°œπ›°ƒπ›±‡π›°šβ€Œπ›°ƒπ›±„ΝΝΝβ€Œπ›°Šπ›°‹π›±‚β€Œπ›°„π›±† in Word and WordPad and they both crashed. WordPad works for small glyphs but crashes for longer sentences, Word crashes every time. WordPad also does not render the the glyphs properly.

dscorbett commented 2 years ago

This font was designed to work with HarfBuzz. I’m not surprised that it doesn’t work in Microsoft’s shaping engine. With that said, it is a long-term goal for the font to support all shaping engines, even if some are not as well-supported as HarfBuzz. For example, it might fall back to showing each letter separately, as in β€œπ›°œβ€Œπ›°ƒβ€Œπ›±‡β€Œπ›°šβ€Œπ›±„β€Œπ›°Šβ€Œπ›°‹β€Œπ›±β€Œπ›°„β€Œπ›±†β€, or it might look mostly right but with adjacent words sometimes overlapping each other.

Please post a screenshot of the bad rendering in WordPad.

What kind of Duployan text do you want to write? Isolated short words and phrases, or full paragraphs? Any particular language? Would showing each letter separately be good enough or do you need proper cursive connections?

DownLoude commented 2 years ago

I've looked at HarfBuzz, but I'm not really sure what I'm doing with it, the documentation is so technical. It doesn't seem like a standalone application so I assume it is implemented somewhere? I saw something with LibreOffice, but that doesn't display it right either (I'm probably missing something). (LibreOffice) image

I have an interest for obscure writing systems, and Duployan is one I've stumbled upon while researching the script just before it in Unicode, NΓΌshu. I want to use it to write words for presentation, but also to transcribe documents (what I do for most scripts I document). I saw Noto Sans Duployan but it wasn't a joining font and doesn't reflect the beauty of Duployan. This is the first writing system that I've really looked into that isn't just character by character, but rather joined in a systematic way, so I'm not sure what I'm doing.

The font in WordPad image Same thing in Noto Sans Duployan image

dscorbett commented 2 years ago

HarfBuzz is a library used within applications. Most browsers use it, which is why the demo keyboard works. LibreOffice also uses it, but for some reason the font doesn’t work there. Your original string, β€œπ›°œπ›°ƒπ›±‡π›°šβ€Œπ›°ƒπ›±„ΝΝΝβ€Œπ›°Šπ›°‹π›±‚β€Œπ›°„π›±†β€, looks like this in LibreOffice:

π›°œπ›°ƒπ›±‡π›°šβ€Œπ›°ƒπ›±„ΝΝΝβ€Œπ›°Šπ›°‹π›±‚β€Œπ›°„π›±†

Every glyph is contextualized and oriented correctly, but they are positioned incorrectly.

According to your screenshots, WordPad doesn’t even do orientation correctly. It doesn’t seem to do anything. WordPad might be a lost cause. The best I can do is showing each glyph separately like Noto Sans Duployan does. That is low priority.

For now, the most practical way to use the font is in a browser, and the most practical way to share Duployan text is take screenshots of the rendering in your browser.

If you are planning to transcribe documents, be warned that the encoding implemented by this font is subject to change. Texts that look correct with the current version may look different in later versions. I am specifically thinking of vowel sequences. For example, β€œπ›°ƒπ›±π›±†β€ <U+1BC03, U+1BC41, U+1BC46> looks like this now: 𛰃𛱁𛱆 but may soon look like this: 𛰃𛱁𛱆

DownLoude commented 2 years ago

Yeah, I've been using the demo keyboard for most of my exploration so far, with the rest on paper. But just for ease of use, is there any text editor that can produce pdfs or something similar that works with this font that you know of? Is there something for TeX? I've only ever used TeXworks so idk if that works.

If not then thanks, you've been super helpful.

dscorbett commented 2 years ago

XeTeX uses HarfBuzz. There are probably other TeXs that do too.

khaledhosny commented 2 years ago

Where do I get the font, I see no downloads. I’d like to at least check what is going on with LibreOffice.

dscorbett commented 2 years ago

https://github.com/dscorbett/duployan-test/blob/gh-pages/assets/fonts/Duployan-Regular.otf

khaledhosny commented 2 years ago

I get the same output from LibreOffice and hb-view:

image
dscorbett commented 2 years ago

That string is the one I posted to simulate a fallback rendering with separated letters. How does this issue’s original string, β€œπ›°œπ›°ƒπ›±‡π›°šβ€Œπ›°ƒπ›±„ΝΝΝβ€Œπ›°Šπ›°‹π›±‚β€Œπ›°„π›±†β€, look? I just upgraded to LibreOffice 7.4.1.2 and it is now rendered thus for me:

π›°œπ›°ƒπ›±‡π›°šβ€Œπ›°ƒπ›±„ΝΝΝβ€Œπ›°Šπ›°‹π›±‚β€Œπ›°„π›±†

That is nearly right, but the cursive anchor points seem to be slightly offset. The problem disappears at font sizes, or if I zoom in. My former version of LibreOffice must have been using a too old HarfBuzz.

dscorbett commented 2 years ago

Anyway, @khaledhosny, thank you for testing.

@DownLoude, you could try exporting PDFs with a recent version of LibreOffice.

khaledhosny commented 2 years ago

That is nearly right, but the cursive anchor points seem to be slightly offset. The problem disappears at font sizes, or if I zoom in.

Yes, this is a general issue due to aggressive rounding of glyph positions. It might get better in later 7.4 releases or may be in 7.5 (there have been some recent work in this area but I haven’t been paying close attention).

khaledhosny commented 2 years ago

How does this issue’s original string, β€œπ›°œπ›°ƒπ›±‡π›°šβ€Œπ›°ƒπ›±„ΝΝΝβ€Œπ›°Šπ›°‹π›±‚β€Œπ›°„π›±†β€, look?

image

(this is from LibreOffice 7.5 built locally, and I see that the anchor issue still persists at 100% zoom)