brechtm / rinohtype

The Python document processor
http://www.mos6581.org/rinohtype
GNU Affero General Public License v3.0
506 stars 61 forks source link

Repetition of words when using the fallback font #423

Open th0mr opened 1 year ago

th0mr commented 1 year ago

Is there an existing issue for this?

Sphinx or rinoh output

Whenever something like this occurs:

TeX Gyre Pagella does not include a normal medium upright font. Falling back to normal regular upright
TeXGyrePagella-Regular does not contain glyph for unicode index 0x2308 (⌈)

Source files

Hi, I have ran into an issue when using symbols that are not in the primary font.

When I ran into this "in the wild" it was causing the last word on the previous line to be repeated as the first word of the next line. However, when producing a minimal example this issue can cause multiple words to be repeated, even multiple times over multiple lines. (See example)

I dont quite know what is causing this, but I thought it may be worth bringing it to your attention

Zip file: minimal_fallback_issue.zip

RST input: "When a symbol that is not in the main font such as this one ⌈ is present and the line spans over to the next line causes words to be repeated"

Creates: image

As you can see parts of the line are being repeated, where they should not.

Versions

rinoh 0.5.5 (in development)
sphinx-build 5.3.0
Python 3.8.10
Windows-10-10.0.19045-SP0