Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DownLoude opened this issue Sep 20, 2022 · 12 comments
Open

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

DownLoude opened this issue Sep 20, 2022 · 12 comments

Comments

@DownLoude
Copy link

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 dscorbett transferred this issue from dscorbett/duployan-test Sep 20, 2022
@dscorbett
Copy link
Owner

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
Copy link
Author

DownLoude commented Sep 20, 2022

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

@khaledhosny
Copy link

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

@khaledhosny
Copy link

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

@dscorbett
Copy link
Owner

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
Copy link
Owner

Anyway, @khaledhosny, thank you for testing.

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

@khaledhosny
Copy link

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
Copy link

khaledhosny commented Sep 24, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants