rinohtype icon indicating copy to clipboard operation
rinohtype copied to clipboard

Repetition of words when using the fallback font

Open th0mr opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

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

th0mr avatar Nov 09 '23 14:11 th0mr